From 0f9b8399afa2648274a0d1355d293c9b454a108c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa?= Date: Wed, 8 Apr 2020 12:18:05 +0200 Subject: [PATCH 1/6] updated ontology URIs in the example closes: #1 --- examples/example1ENVI-polished.ttl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/example1ENVI-polished.ttl b/examples/example1ENVI-polished.ttl index ac3e34c..b25083e 100644 --- a/examples/example1ENVI-polished.ttl +++ b/examples/example1ENVI-polished.ttl @@ -1,4 +1,4 @@ -@prefix : . +@prefix : . @prefix dc: . @prefix owl: . @prefix rdf: . @@ -7,17 +7,17 @@ @prefix prov: . @prefix rdfs: . @prefix vann: . -@prefix saref: . -@prefix s4envi: . -@prefix s4ener: . +@prefix saref: . +@prefix s4envi: . +@prefix s4ener: . @prefix dcterms: . @prefix geo: . @prefix time: . @prefix wurvoc: . -@base . +@base . - rdf:type owl:Ontology ; - owl:versionIRI ; + rdf:type owl:Ontology ; + owl:versionIRI ; dcterms:creator ; rdfs:comment "Example of use for the SAREF extension for environment"@en ; dcterms:creator ; -- GitLab From 331e4c0e314adbfed0dff1e329ac4f03b569bcde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa?= Date: Tue, 14 Apr 2020 11:39:59 +0200 Subject: [PATCH 2/6] updated geo:lat and geo:long (were latitude and longitude) --- examples/example1ENVI-polished.ttl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/example1ENVI-polished.ttl b/examples/example1ENVI-polished.ttl index b25083e..87b0aad 100644 --- a/examples/example1ENVI-polished.ttl +++ b/examples/example1ENVI-polished.ttl @@ -41,8 +41,8 @@ :LocationTESS005-UCM rdf:type owl:NamedIndividual , geo:SpatialThing ; - geo:latitude "40.451"^^xsd:float ; - geo:longitude "-3.7261"^^xsd:float ; + geo:lat "40.451"^^xsd:float ; + geo:long "-3.7261"^^xsd:float ; rdfs:label "Location of photometer TESS stars5"@en . -- GitLab From c7e08380e02271c67f17e92d1d286577f228d191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa?= Date: Tue, 14 Apr 2020 11:41:08 +0200 Subject: [PATCH 3/6] Revert "updated geo:lat and geo:long (were latitude and longitude)" This reverts commit 331e4c0e314adbfed0dff1e329ac4f03b569bcde. --- examples/example1ENVI-polished.ttl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/example1ENVI-polished.ttl b/examples/example1ENVI-polished.ttl index 87b0aad..b25083e 100644 --- a/examples/example1ENVI-polished.ttl +++ b/examples/example1ENVI-polished.ttl @@ -41,8 +41,8 @@ :LocationTESS005-UCM rdf:type owl:NamedIndividual , geo:SpatialThing ; - geo:lat "40.451"^^xsd:float ; - geo:long "-3.7261"^^xsd:float ; + geo:latitude "40.451"^^xsd:float ; + geo:longitude "-3.7261"^^xsd:float ; rdfs:label "Location of photometer TESS stars5"@en . -- GitLab From 8356f48ab97d419537abdba4ea0dfd5cf3586d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa?= Date: Tue, 14 Apr 2020 12:42:33 +0200 Subject: [PATCH 4/6] changed namespace for the example and removed the old file with the same example --- examples/example1ENVI-polished.ttl | 8 +- examples/example1ENVI.ttl | 356 ----------------------------- 2 files changed, 4 insertions(+), 360 deletions(-) delete mode 100644 examples/example1ENVI.ttl diff --git a/examples/example1ENVI-polished.ttl b/examples/example1ENVI-polished.ttl index b25083e..4ca918f 100644 --- a/examples/example1ENVI-polished.ttl +++ b/examples/example1ENVI-polished.ttl @@ -1,4 +1,4 @@ -@prefix : . +@prefix : . @prefix dc: . @prefix owl: . @prefix rdf: . @@ -14,10 +14,10 @@ @prefix geo: . @prefix time: . @prefix wurvoc: . -@base . +@base . - rdf:type owl:Ontology ; - owl:versionIRI ; + rdf:type owl:Ontology ; + owl:versionIRI ; dcterms:creator ; rdfs:comment "Example of use for the SAREF extension for environment"@en ; dcterms:creator ; diff --git a/examples/example1ENVI.ttl b/examples/example1ENVI.ttl deleted file mode 100644 index a1e402f..0000000 --- a/examples/example1ENVI.ttl +++ /dev/null @@ -1,356 +0,0 @@ -@prefix : . -@prefix dc: . -@prefix owl: . -@prefix rdf: . -@prefix xml: . -@prefix xsd: . -@prefix prov: . -@prefix rdfs: . -@prefix vann: . -@prefix saref: . -@prefix dcterms: . -@base . - - rdf:type owl:Ontology ; - owl:versionIRI ; - dcterms:creator ; - rdfs:comment "Example of use for the SAREF extension for environment"@en ; - dcterms:creator ; - dcterms:license ; - owl:versionInfo "1.0" ; - dc:publisher . - -################################################################# -# Annotation properties -################################################################# - -### http://purl.org/dc/terms/creator -dcterms:creator rdf:type owl:AnnotationProperty . - - -### http://purl.org/dc/terms/dateCopyrighted -dcterms:dateCopyrighted rdf:type owl:AnnotationProperty . - - -### http://purl.org/dc/terms/rightsHolder -dcterms:rightsHolder rdf:type owl:AnnotationProperty . - - -### http://purl.org/vocab/vann/preferredNamespacePrefix -vann:preferredNamespacePrefix rdf:type owl:AnnotationProperty . - - -### http://purl.org/vocab/vann/preferredNamespaceUri -vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . - - -### http://www.w3.org/ns/prov#hadPrimarySource -prov:hadPrimarySource rdf:type owl:AnnotationProperty . - - -################################################################# -# Datatypes -################################################################# - -### http://www.w3.org/2001/XMLSchema#duration -xsd:duration rdf:type rdfs:Datatype . - - -################################################################# -# Object Properties -################################################################# - -### http://saref.linkeddata.es/def/bldg#isContainedIn -:isContainedIn rdf:type owl:ObjectProperty , - owl:TransitiveProperty ; - rdfs:comment "A relation between an object and the physical space in which it is located."@en ; - rdfs:label "is contained in"@en . - - -### http://saref.linkeddata.es/def/envi#hasFrequencyMeasurement - rdf:type owl:ObjectProperty . - - -### http://saref.linkeddata.es/def/envi#hasTransmissionPeriod - rdf:type owl:ObjectProperty . - - -### http://saref.linkeddata.es/def/envi#makesMeasurement - rdf:type owl:ObjectProperty . - - -### http://saref.linkeddata.es/def/envi#measuresProperty - rdf:type owl:ObjectProperty . - - -### http://saref.linkeddata.es/def/envi#relatesToProperty - rdf:type owl:ObjectProperty . - - -### http://saref.linkeddata.es/def/envi#usesCommunicationInterface - rdf:type owl:ObjectProperty . - - -### http://saref.linkeddata.es/def/envi#usesCommunicationProtocol - rdf:type owl:ObjectProperty . - - -### http://www.w3.org/2003/01/geo/wgs84_pos#location - rdf:type owl:ObjectProperty ; - rdfs:comment "The relation between something and the point, or other geometrical thing in space, where it is. For example, the realtionship between a radio tower and a Point with a given lat and long. Or a relationship between a park and its outline as a closed arc of points, or a road and its location as a arc (a sequence of points). Clearly in practice there will be limit to the accuracy of any such statement, but one would expect an accuracy appropriate for the size of the object and uses such as mapping ."@en ; - rdfs:isDefinedBy ; - rdfs:label "location"@en . - - -### https://w3id.org/saref#hasConsumption -saref:hasConsumption rdf:type owl:ObjectProperty . - - -### https://w3id.org/saref#isMeasuredIn -saref:isMeasuredIn rdf:type owl:ObjectProperty ; - rdfs:comment "A relation between a measurement and the unit of measure in which the measurement value is expressed."@en ; - rdfs:label "is measured in"@en . - - -### https://w3id.org/saref4ee#exposes - rdf:type owl:ObjectProperty . - - -################################################################# -# Data properties -################################################################# - -### http://saref.linkeddata.es/def/envi#hasTimestamp - rdf:type owl:DatatypeProperty . - - -### http://saref.linkeddata.es/def/envi#hasVersion - rdf:type owl:DatatypeProperty . - - -### http://www.w3.org/2003/01/geo/wgs84_pos#latitude - rdf:type owl:DatatypeProperty . - - -### http://www.w3.org/2003/01/geo/wgs84_pos#longitude - rdf:type owl:DatatypeProperty . - - -### https://w3id.org/saref#hasManufacturer -saref:hasManufacturer rdf:type owl:DatatypeProperty . - - -### https://w3id.org/saref#hasName -saref:hasName rdf:type owl:DatatypeProperty . - - -### https://w3id.org/saref#hasValue -saref:hasValue rdf:type owl:DatatypeProperty ; - rdfs:comment "A relationship defining the value of a certain property, e.g., energy or power"@en ; - rdfs:isDefinedBy saref: ; - rdfs:label "has value"@en . - - -################################################################# -# Classes -################################################################# - -### http://saref.linkeddata.es/def/envi#CommunicationInterface - rdf:type owl:Class . - - -### http://saref.linkeddata.es/def/envi#CommunicationProtocol - rdf:type owl:Class . - - -### http://saref.linkeddata.es/def/envi#FrequencyMeasurement - rdf:type owl:Class . - - -### http://saref.linkeddata.es/def/envi#FrequencyUnit - rdf:type owl:Class . - - -### http://saref.linkeddata.es/def/envi#LightProperty - rdf:type owl:Class . - - -### http://saref.linkeddata.es/def/envi#Measurement - rdf:type owl:Class . - - -### http://saref.linkeddata.es/def/envi#PeriodMeasurement - rdf:type owl:Class . - - -### http://saref.linkeddata.es/def/envi#TESS - rdf:type owl:Class . - - -### http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing - rdf:type owl:Class ; - rdfs:comment "Anything with spatial extent, i.e. size, shape, or position. e.g. people, places, bowling balls, as well as abstract areas like cubes."@en ; - rdfs:isDefinedBy ; - rdfs:label "Spatial thing"@en . - - -### http://www.w3.org/2006/time#TemporalUnit - rdf:type owl:Class . - - -### https://w3id.org/saref#PowerUnit -saref:PowerUnit rdf:type owl:Class . - - -### https://w3id.org/saref#UnitOfMeasure -saref:UnitOfMeasure rdf:type owl:Class ; - rdfs:comment "The unit of measure is a standard for measurement of a quantity, such as a Property. For example, Power is a property and Watt is a unit of power that represents a definite predetermined power: when we say 10 Watt, we actually mean 10 times the definite predetermined power called \"watt\". Our definition is based on the definition of unit of measure in the Ontology of units of Measure (OM). We propose here a list of some units of measure that are relevant for the purpose of the Smart Appliances ontology, but this list can be extended."@en ; - rdfs:isDefinedBy saref: ; - rdfs:label "Unit of measure"@en . - - -### https://w3id.org/saref4ee#Power - rdf:type owl:Class . - - -### https://w3id.org/saref4ee#PowerProfile - rdf:type owl:Class . - - -################################################################# -# Individuals -################################################################# - -### http://saref.linkeddata.es/def/bldg#Bluettothv2-1 -:Bluettothv2-1 rdf:type owl:NamedIndividual , - ; - "v2.1"^^xsd:string ; - rdfs:label "Bluettoth v2.1"@en . - - -### http://saref.linkeddata.es/def/bldg#FequencyMeasurementTESS005-UCM -:FequencyMeasurementTESS005-UCM rdf:type owl:NamedIndividual , - ; - saref:isMeasuredIn ; - saref:hasValue "10.0"^^xsd:float ; - rdfs:label "FequencyMeasurementTESS005-UCM"@en . - - -### http://saref.linkeddata.es/def/bldg#LocationTESS005-UCM -:LocationTESS005-UCM rdf:type owl:NamedIndividual , - ; - "40.451"^^xsd:float ; - "-3.7261"^^xsd:float ; - rdfs:label "Location of photometer TESS stars5"@en . - - -### http://saref.linkeddata.es/def/bldg#MQTT-Broker -:MQTT-Broker rdf:type owl:NamedIndividual , - ; - rdfs:label "MQTT-Broker"@en . - - -### http://saref.linkeddata.es/def/bldg#PowerProfileTESS005-UCM -:PowerProfileTESS005-UCM rdf:type owl:NamedIndividual , - ; - saref:hasConsumption :PowerTESS005-UCM ; - rdfs:label "Power profile of photometer TESS stars5"@en . - - -### http://saref.linkeddata.es/def/bldg#PowerTESS005-UCM -:PowerTESS005-UCM rdf:type owl:NamedIndividual , - ; - saref:isMeasuredIn ; - saref:hasValue "20.0"^^xsd:float ; - rdfs:label "Power of photometer TESS stars5"@en . - - -### http://saref.linkeddata.es/def/bldg#RS232v24 -:RS232v24 rdf:type owl:NamedIndividual , - ; - "v24"^^xsd:string ; - rdfs:label "RS232 v24"@en . - - -### http://saref.linkeddata.es/def/bldg#TESS005-UCM -:TESS005-UCM rdf:type owl:NamedIndividual , - ; - :FequencyMeasurementTESS005-UCM ; - :TransmissionPeriodTESS005-UCM ; - :Measurement2016-10-05T08:15:30TESS005-UCM , - :Measurement2016-10-05T08:15:40TESS005-UCM ; - ; - :Bluettothv2-1 , - :RS232v24 , - :Wi-Fiv802-11ah ; - :MQTT-Broker ; - :LocationTESS005-UCM ; - :PowerProfileTESS005-UCM ; - "v1"^^xsd:string ; - saref:hasManufacturer "Universidad Complutense de Madrid"^^xsd:string ; - saref:hasName "stars5"^^xsd:string ; - rdfs:label "TESS photometer stars5"@en . - - -### http://saref.linkeddata.es/def/bldg#TransmissionPeriodTESS005-UCM -:TransmissionPeriodTESS005-UCM rdf:type owl:NamedIndividual , - ; - saref:isMeasuredIn ; - saref:hasValue "30.0"^^xsd:float ; - rdfs:label "TransmissionPeriodTESS005-UCM"@en . - - -### http://saref.linkeddata.es/def/bldg#Wi-Fiv802-11ah -:Wi-Fiv802-11ah rdf:type owl:NamedIndividual , - ; - "802.11ah"^^xsd:string ; - rdfs:label "Wi-Fi v802.11ah"@en . - - -### http://saref.linkeddata.es/def/bldg#mgPerarcsec2 -:mgPerarcsec2 rdf:type owl:NamedIndividual , - saref:UnitOfMeasure ; - rdfs:label "mgPerarcsec2"@en . - - -### http://saref.linkeddata.es/def/bldg#Measurement2016-10-05T08:15:30TESS005-UCM -:Measurement2016-10-05T08:15:30TESS005-UCM rdf:type owl:NamedIndividual , - ; - ; - saref:isMeasuredIn :mgPerarcsec2 ; - "2016-10-05T08:15:30"^^xsd:dateTime ; - saref:hasValue "0.1"^^xsd:float ; - rdfs:label "Measurement 2016-10-05T08:15:30 TESS005-UCM"@en . - - -### http://saref.linkeddata.es/def/bldg#Measurement2016-10-05T08:15:40TESS005-UCM -:Measurement2016-10-05T08:15:40TESS005-UCM rdf:type owl:NamedIndividual , - ; - ; - saref:isMeasuredIn :mgPerarcsec2 ; - "2016-10-05T08:15:40"^^xsd:dateTime ; - saref:hasValue "0.8"^^xsd:float ; - rdfs:label "Measurement 2016-10-05T08:15:40 TESS005-UCM"@en . - - -### http://saref.linkeddata.es/def/envi#LightMagnitude - rdf:type owl:NamedIndividual , - . - - -### http://www.w3.org/2006/time#unitSecond - rdf:type owl:NamedIndividual , - . - - -### http://www.wurvoc.org/vocabularies/om-1.8/reciprocal_second-time - rdf:type owl:NamedIndividual , - . - - -### http://www.wurvoc.org/vocabularies/om-1.8/watt - rdf:type owl:NamedIndividual , - saref:PowerUnit . - - -### Generated by the OWL API (version 4.2.6.20160910-2108) https://github.com/owlcs/owlapi -- GitLab From be2f1cb39fd6dc802c4d83c2511a70f1f8de552a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa?= Date: Tue, 14 Apr 2020 13:58:23 +0200 Subject: [PATCH 5/6] rename example file and change # to / --- .../{example1ENVI-polished.ttl => example1ENVI.ttl} | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) rename examples/{example1ENVI-polished.ttl => example1ENVI.ttl} (95%) diff --git a/examples/example1ENVI-polished.ttl b/examples/example1ENVI.ttl similarity index 95% rename from examples/example1ENVI-polished.ttl rename to examples/example1ENVI.ttl index 4ca918f..d4b4d87 100644 --- a/examples/example1ENVI-polished.ttl +++ b/examples/example1ENVI.ttl @@ -1,12 +1,9 @@ -@prefix : . -@prefix dc: . +@prefix : . @prefix owl: . @prefix rdf: . @prefix xml: . @prefix xsd: . -@prefix prov: . @prefix rdfs: . -@prefix vann: . @prefix saref: . @prefix s4envi: . @prefix s4ener: . @@ -14,16 +11,16 @@ @prefix geo: . @prefix time: . @prefix wurvoc: . -@base . +@base . rdf:type owl:Ontology ; - owl:versionIRI ; + owl:versionIRI ; dcterms:creator ; rdfs:comment "Example of use for the SAREF extension for environment"@en ; dcterms:creator ; dcterms:license ; owl:versionInfo "1.0" ; - dc:publisher . + dcterms:publisher . :Bluetoothv2-1 rdf:type owl:NamedIndividual , -- GitLab From c6533a28788e27e7144c9399fa422ab7b01a1394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa?= Date: Tue, 14 Apr 2020 14:09:13 +0200 Subject: [PATCH 6/6] changed saref4city by saref4envi in the URI --- examples/example1ENVI.ttl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/example1ENVI.ttl b/examples/example1ENVI.ttl index d4b4d87..2da7556 100644 --- a/examples/example1ENVI.ttl +++ b/examples/example1ENVI.ttl @@ -1,4 +1,4 @@ -@prefix : . +@prefix : . @prefix owl: . @prefix rdf: . @prefix xml: . @@ -11,10 +11,10 @@ @prefix geo: . @prefix time: . @prefix wurvoc: . -@base . +@base . - rdf:type owl:Ontology ; - owl:versionIRI ; + rdf:type owl:Ontology ; + owl:versionIRI ; dcterms:creator ; rdfs:comment "Example of use for the SAREF extension for environment"@en ; dcterms:creator ; -- GitLab