Skip to content

Instantly share code, notes, and snippets.

@ashepherd
Created January 16, 2019 20:06
Show Gist options
  • Save ashepherd/49c9de12199df237b81b868952e17cbf to your computer and use it in GitHub Desktop.
Save ashepherd/49c9de12199df237b81b868952e17cbf to your computer and use it in GitHub Desktop.
{
"@context":{
"@vocab": "http://schema.org/",
"schema": "http://schema.org/",
"time": "http://www.w3.org/2006/time#"
},
"@graph":[
{
"@id": "time:TemporalEntity"
},
{
"@id": "schema:temporalCoverage",
"schema:rangeIncludes": [
"time:TemporalEntity"
]
}
]
}
@ashepherd
Copy link
Author

ashepherd commented Jan 16, 2019

Because time:TemporalEntity is a superclass from which all other OWL-Time Classes are dervied, we can simply add it to the range of possible types that schema:temporalCoverage can accept.

https://www.w3.org/TR/owl-time/#topology

@ashepherd
Copy link
Author

Q: How do we combine two contexts?

  • the schema.org context, and then this new context that maps OWL-Time into schema.org above.
{
  "@context": [
    {
      "@vocab": "http://schema.org/",
      "schema": "http://schema.org/",
      "time": "http://www.w3.org/2006/time#"
    }, 
    "https://gist.githubusercontent.com/ashepherd/49c9de12199df237b81b868952e17cbf/raw/5cbdcf067991dfe2fcfe9e4b9f29eb7e9bdb3e3c/owl-time-schemaorg.jsonld"
  ],
  "@type": "Dataset",
  "temporalConverage": {
    "@type": "TemporalEntity",
    "time:hasBeginning": {
      "@type": "time:Instant",
      "time:inXSDDateTimeStamp": "2015-11-01T17:58:16.102Z"
    }
  }
}

JSON-LD Playground

schemaorg/schemaorg#1186 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment