I've created an owl ontology and want to create as simple transfer format possible. To do that, I'd like to include any context (vocab) information into json-ld context. Specifically, I'd like to specify (inherent) rdf:type of a value of a particular property.
So: I have this json:
{
"@type": "Observation",
"observedProperty": "temperature"
}
I'd like to create a context, so that the expanded form looks like this:
[
{
"@type": [
"http://www.my.vocab.org/def/Observation"
],
"http://www.my.vocab.org/def/observedProperty": [
{
"@id": "http://www.my.vocab.org/temperature",
"@type": "http://www.my.vocab.org/def/Property"
}
]
}
]
Expansion using this context:
"@context": {
"@base": "http://www.my.vocab.org/",
"@vocab": "def/",
"property": "property/",
"observedProperty": {
"@type": "Property"
}
}
results in
...
"@type": "http://www.my.vocab.org/def/Property",
"@value": "temperature"
...
Expansion using
"@context": {
...
"@type": "@id"
...
}
obviously doesn't include the type. Any ideas?