Skip to content

Instantly share code, notes, and snippets.

@adamml
Created June 11, 2014 18:51
Show Gist options
  • Save adamml/caccaca1825eb256f0ec to your computer and use it in GitHub Desktop.
Save adamml/caccaca1825eb256f0ec to your computer and use it in GitHub Desktop.
Time Entity Example
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:geo="http://www.opengis.net/ont/geosparql#" xmlns:op="http://environment.data.gov.au/def/op#" xmlns:om="http://def.seegrid.csiro.au/isotc211/iso19156/2011/observation#" xmlns:prov="http://www.w3.org/ns/prov#" xmlns:qudt="http://qudt.org/schema/qudt#" xmlns:sf="http://www.opengis.net/ont/sf#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:time="http://www.w3.org/2006/time#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<rdf:Description rdf:about="http://linked.bodc.ac.uk/series/952050">
<time:TemporalEntity rdf:resource="http://linked.bodc.ac.uk/series/952050#time"></time:TemporalEntity>
</rdf:Description>
<time:TemporalEntity rdf:about="http://linked.bodc.ac.uk/series/952050#time">
<time:hasBeginning rdf:resource="http://linked.bodc.ac.uk/series/952050#timeBegins"></time:hasBeginning>
<time:hasEnd rdf:resource="http://linked.bodc.ac.uk/series/952050#timeEnds"></time:hasEnd>
</time:TemporalEntity>
<time:instance rdf:about="http://linked.bodc.ac.uk/series/952050#timeBegins">
<time:inXSDDateTime rdf:datatype="http://www.w3.org/2001/XMLSchema#datetime">1994-10-31T03:00:00Z</time:inXSDDateTime>
<time:inDateTime rdf:resource="http://linked.bodc.ac.uk/series/952050#timeBeginsDescription"></time:inDateTime>
</time:instance>
<time:DateTimeDescription rdf:about="http://linked.bodc.ac.uk/series/952050#timeBeginsDescription">
<time:unitType rdf:resource="http://www.w3.org/2006/time#unitSecond"></time:unitType>
<time:second>00</time:second>
<time:dayOfWeek rdf:resource="http://www.w3.org/2006/time#Tuesday"></time:dayOfWeek>
<time:minute>00</time:minute>
<time:hour>03</time:hour>
<time:day>18</time:day>
<time:month>10</time:month>
<time:year>1994</time:year>
<time:dayOfYear>291</time:dayOfYear>
<time:timeZone rdf:resource="http://www.w3.org/2006/timezone-world#ZTZ"></time:timeZone>
</time:DateTimeDescription>
<time:instance rdf:about="http://linked.bodc.ac.uk/series/952050#timeEnds">
<time:inXSDDateTime rdf:datatype="http://www.w3.org/2001/XMLSchema#datetime">1994-10-31T11:02:00Z</time:inXSDDateTime>
<time:inDateTime rdf:resource="http://linked.bodc.ac.uk/series/952050#timeEndsDescription"></time:inDateTime>
</time:instance>
<time:DateTimeDescription rdf:about="http://linked.bodc.ac.uk/series/952050#timeEndsDescription">
<time:unitType rdf:resource="http://www.w3.org/2006/time#unitSecond"></time:unitType>
<time:second>00</time:second>
<time:dayOfWeek rdf:resource="http://www.w3.org/2006/time#Monday"></time:dayOfWeek>
<time:minute>02</time:minute>
<time:hour>11</time:hour>
<time:day>31</time:day>
<time:month>10</time:month>
<time:year>1994</time:year>
<time:dayOfYear>304</time:dayOfYear>
<time:timeZone rdf:resource="http://www.w3.org/2006/timezone-world#ZTZ"></time:timeZone>
</time:DateTimeDescription>
<time:DateTimeDescription rdf:about="http://linked.bodc.ac.uk/series/952050#timeBeginsDescription">
<time:timeZone rdf:resource="http://www.w3.org/2006/timezone-world#ZTZ"></time:timeZone>
</time:DateTimeDescription>
</rdf:RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment