HSML Simple Validator

Example JSON-LD

good JSON-LD

{
  "@context": "https://www.spatialwebfoundation.org/ns/hsml/hsml-context.jsonld",
  "@id": "urn:example:entity:1234",
  "@type": "core:Entity",
  "name": "Example Entity",
  "swid": {
    "@value": "urn:swid:entity:1234",
    "@type": "xsd:anyURI"
  }
}

bad JSON-LD

{
  "@context": "https://www.spatialwebfoundation.org/ns/hsml/hsml-context.jsonld",
  "@id": "urn:example:entity:1234",
  "@type": "core:Entity",
  "name": "Invalid Entity Missing SWID"
}

Example Turtle

good Turtle

@prefix core: <https://www.spatialwebfoundation.org/ns/hsml/core#> .
@prefix schema: <https://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<urn:example:entity:1234> a core:Entity ;
    schema:name "Example Entity" ;
    core:swid "urn:swid:entity:1234"^^xsd:anyURI .

bad Turtle

@prefix core: <https://www.spatialwebfoundation.org/ns/hsml/core#> .
@prefix schema: <https://schema.org/> .

<urn:example:entity:1234> a core:Entity ;
    schema:name "Invalid Entity Missing SWID" .