-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Semantic Annotations to JSON Schema #5
Comments
Issueadd semantic annotations in the JSON Schema snippets that are embedded in a Thing Description, in order to perform both validation and semantic processing with the same document (TD). Proposals
DecisionBecause using hyperlinks at such a fine granularity might not meet the constraints of certain IoT devices, 1. is preferred over 2./3. Moreover, since data type modeling in the Thing Description is likely to evolve, we also exclude 1.2. that requires changes in the JSON Schema specification. We will therefore adopt 1.1. for our coming PlugFests. More precisely, JSON Schema snippets may include ExampleThe following schema describes a robot IMU and includes semantic annotations: {
"type": "object",
"properties": {
"prop1": {
"@id": "http://example.org/vocab#Acceleration",
"@type": "@id",
"$def": "#/definitions/def1"
},
"prop2": {
"@id": "http://example.org/vocab#Orientation",
"@type": "@id",
"$def": "#/definitions/def1"
}
},
"definitions": {
"def1": {
"type": "array",
"minItem": "3",
"maxItem": "3",
"items": { "type": "number" }
}
}
} The following object (extracted from above) is a valid JSON-LD context: {
"prop1": {
"@id": "http://example.org/vocab#Acceleration",
"@type": "@id",
"$def": "#/definitions/def1"
},
"prop2": {
"@id": "http://example.org/vocab#Orientation",
"@type": "@id",
"$def": "#/definitions/def1"
}
} |
Add Hitachi's Implementation Description.
This issue mirrors the one posted in the JSON Schema repository. Discussion should take place there, the present issue will just include the outcomes of it.
See json-schema-org/json-schema-spec#309.
The text was updated successfully, but these errors were encountered: