Is it OK to use a schema.org property on its own in JSON-LD? #3151
Unanswered
benfrancis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it OK to use a schema.org property on its own in a JSON-LD document, outside of a typed object?
For example, Example 43 from the draft W3C WoT Thing Description 1.1 specification has a semantic annotation
"schema:softwareVersion" : "1.0.1"at the top level of the document, rather than being inside an object with@type: "SoftwareApplication".{ "@context": [ "https://www.w3.org/2022/wot/td/v1.1", { "saref": "https://w3id.org/saref#", "om": "http://www.ontology-of-units-of-measure.org/resource/om-2/", "schema": "http://schema.org" } ], "version": { "instance": "1.2.1", "schema:softwareVersion" : "1.0.1" }, "schema:serialNumber": "4CE0460D0G", "schema:manufacturer": {"name": "CompanyName"}, ... "@type": "saref:TemperatureSensor", "properties": { "temperature": { "description": "Temperature value of the weather station", "type": "number", "minimum": -32.5, "maximum": 55.2, "unit": "om:degree_Celsius", "forms": [...] }, ... }, ... }Another example would be using
longitude,latitudeandelevationat the top level of a document, outside of aGeoCoordinatesobject.{ "@context": [ "https://www.w3.org/2022/wot/td/v1.1", { "schema": "http://schema.org#" } ], "schema:longitude": "297.83", "schema:latitude": "26.58", "schema:elevation": "5.3" }Would this be considered valid?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions