From 2e4b47d5cb2f145ee21b8ddf37493494fef9eb87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Lefran=C3=A7ois?= Date: Mon, 22 Jul 2019 16:19:23 +0200 Subject: [PATCH 1/2] solves issue #36 --- examples/time.ttl | 25 +++++++++++++++++++++++++ ontology/saref.ttl | 16 ---------------- 2 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 examples/time.ttl diff --git a/examples/time.ttl b/examples/time.ttl new file mode 100644 index 0000000..466cd97 --- /dev/null +++ b/examples/time.ttl @@ -0,0 +1,25 @@ +@prefix rdfs: . +@prefix saref: . +@prefix time: . +@prefix xsd: . +@prefix owl: . +@prefix rdf: . + + + rdf:type owl:Ontology ; + owl:imports . + +### 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/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:label "Time"^^xsd:string . + diff --git a/ontology/saref.ttl b/ontology/saref.ttl index 76d4985..ada5de6 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -6,7 +6,6 @@ @prefix xsd: . @prefix foaf: . @prefix rdfs: . -@prefix time: . @prefix saref: . @prefix dcterms: . @prefix 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 ; @@ -1202,17 +1197,6 @@ saref:TemperatureUnit rdf:type owl:Class ; 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:label "Time"^^xsd:string . - - ### https://saref.etsi.org/ToggleCommand saref:ToggleCommand rdf:type owl:Class ; rdfs:subClassOf saref:Command , -- GitLab From 0db8e51349804bf6227a9752b8be8e7022e0d2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Lefran=C3=A7ois?= Date: Mon, 22 Jul 2019 16:26:49 +0200 Subject: [PATCH 2/2] reinserted saref:Time --- examples/time.ttl | 10 ---------- ontology/saref.ttl | 5 +++++ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/time.ttl b/examples/time.ttl index 466cd97..9f33471 100644 --- a/examples/time.ttl +++ b/examples/time.ttl @@ -13,13 +13,3 @@ time:TemporalUnit rdfs:subClassOf saref:UnitOfMeasure ; rdfs:comment "The unit of measure for time"^^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:label "Time"^^xsd:string . - diff --git a/ontology/saref.ttl b/ontology/saref.ttl index ada5de6..a793679 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -1196,6 +1196,11 @@ 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:comment "A class that allows to specify the time concept."^^xsd:string ; + rdfs:label "Time"^^xsd:string . + ### https://saref.etsi.org/ToggleCommand saref:ToggleCommand rdf:type owl:Class ; -- GitLab