# baseURI: http://example.org/time
# imports: http://www.w3.org/2006/time

@prefix : <http://www.w3.org/2006/time#> .
@prefix ex: <http://example.org/time/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix tzont: <http://www.w3.org/2006/timezone#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/time>
  rdf:type owl:Ontology ;
  owl:imports <http://www.w3.org/2006/time> ;
.
ex:AbbyBirthday
  rdf:type :Instant ;
  rdfs:label "Abby's birthdate"^^xsd:string ;
  :inDateTime ex:AbbyBirthdayGregorian ;
  :inDateTime ex:AbbyBirthdayHebrew ;
  :inTimePosition ex:AbbyBirthdayUnix ;
  :inXSDDateTime "2001-05-23T08:20:00+08:00"^^xsd:dateTime ;
.
ex:AbbyBirthdayGregorian
  rdf:type :DateTimeDescription ;
  :day "---23"^^xsd:gDay ;
  :dayOfWeek :Wednesday ;
  :hour "8"^^xsd:nonNegativeInteger ;
  :minute "20"^^xsd:nonNegativeInteger ;
  :month "--05"^^xsd:gMonth ;
  :timeZone [
      rdf:type tzont:TimeZone ;
      tzont:GMToffset "+8" ;
      tzont:name "AWST" ;
    ] ;
  :unitType :unitMinute ;
  :year "2001"^^xsd:gYear ;
.
ex:AbbyBirthdayHebrew
  rdf:type :GeneralDateTimeDescription ;
  :day "---01"^^:genDay ;
  :hasTRS <http://dbpedia.org/resource/Hebrew_calendar> ;
  :month "--03"^^:genMonth ;
  :unitType :unitDay ;
  :year "5761"^^:genYear ;
.
ex:AbbyBirthdayUnix
  rdf:type :TimePosition ;
  rdfs:label "Abby's birthdate in Unix time"^^xsd:string ;
  :hasTRS <http://dbpedia.org/resource/Unix_time> ;
  :numericPosition "990577200"^^:Number ;
.
ex:Year
  rdf:type owl:Class ;
  rdfs:label "Years duration"^^xsd:string ;
  rdfs:subClassOf :DurationDescription ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "0"^^xsd:nonNegativeInteger ;
      owl:onProperty :days ;
    ] ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "0"^^xsd:nonNegativeInteger ;
      owl:onProperty :hours ;
    ] ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "0"^^xsd:nonNegativeInteger ;
      owl:onProperty :minutes ;
    ] ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "0"^^xsd:nonNegativeInteger ;
      owl:onProperty :months ;
    ] ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "0"^^xsd:nonNegativeInteger ;
      owl:onProperty :seconds ;
    ] ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "0"^^xsd:nonNegativeInteger ;
      owl:onProperty :weeks ;
    ] ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "1"^^xsd:nonNegativeInteger ;
      owl:onProperty :years ;
    ] ;
.
<http://www.w3.org/2006/time>
  rdf:type owl:Ontology ;
.
