Commit fac37c7a authored by Maria Poveda's avatar Maria Poveda
Browse files

Merge branch 'issue-36' into 'master'

solves issue #36

See merge request SAREF/saref-core!15
parents 45a60f0d 0db8e513
Loading
Loading
Loading
Loading

examples/time.ttl

0 → 100644
+15 −0
Original line number Diff line number Diff line
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix saref: <https://w3id.org/saref#> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<https://saref.etsi.org/saref/latest/example/time>
  rdf:type owl:Ontology ;
  owl:imports <https://saref.etsi.org/saref#> .

###  http://www.w3.org/2006/time#TemporalUnit
time:TemporalUnit rdfs:subClassOf saref:UnitOfMeasure ;
                  rdfs:comment "The unit of measure for time"^^xsd:string .
+1 −12
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix saref: <https://saref.etsi.org/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix vann: <http://purl.org/vocab/vann/> .
@@ -260,10 +259,6 @@ saref:hasValue rdf:type owl:DatatypeProperty ;
#    Classes
#################################################################

###  http://www.w3.org/2006/time#TemporalUnit
time:TemporalUnit rdfs:subClassOf saref:UnitOfMeasure ;
                  rdfs:comment "The unit of measure for time"^^xsd:string .


###  https://saref.etsi.org/ActuatingFunction
saref:ActuatingFunction rdf:type owl:Class ;
@@ -1201,15 +1196,9 @@ saref:TemperatureUnit rdf:type owl:Class ;
                      rdfs:comment "The unit of measure for temperature"^^xsd:string ;
                      rdfs:label "Temperature unit"^^xsd:string .


###  https://saref.etsi.org/Time
saref:Time rdf:type owl:Class ;
           rdfs:subClassOf saref:Property ,
                           [ rdf:type owl:Restriction ;
                             owl:onProperty saref:consistsOf ;
                             owl:someValuesFrom time:TemporalEntity
                           ] ;
           rdfs:comment "A saref:Property that allows to specify the time concept in terms of instants or intervals according to the imported W3C Time ontology."^^xsd:string ;
           rdfs:comment "A class that allows to specify the time concept."^^xsd:string ;
           rdfs:label "Time"^^xsd:string .