From 71ad421e543aab5ff9cb0b7a4316df35aac1f53c Mon Sep 17 00:00:00 2001 From: Nataliya Keberle Date: Fri, 6 Dec 2024 12:27:23 +0200 Subject: [PATCH] fixe import OWL-Time for dynamizer.ttl --- citygml-owl/CityOWL/dynamizer.ttl | 4 ++-- citygml-owl/scripts/patch-ontologies.sh | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/citygml-owl/CityOWL/dynamizer.ttl b/citygml-owl/CityOWL/dynamizer.ttl index 23edc57..21b777e 100644 --- a/citygml-owl/CityOWL/dynamizer.ttl +++ b/citygml-owl/CityOWL/dynamizer.ttl @@ -14,8 +14,8 @@ a owl:Ontology ; rdfs:label "Dynamizer"@en ; - owl:imports , - , + owl:imports , + , , ; skos:definition "The Dynamizer module supports the injection of timeseries data for individual attributes of CityGML features. Timeseries data can either be retrieved from external Sensor APIs (e.g. OGC SensorThings API, OGC Sensor Observation Services, MQTT, proprietary platforms), external standardized timeseries files (e.g. OGC TimeseriesML or OGC Observations & Measurements), external tabulated files (e.g CSV) or can be represented inline as basic time-value pairs."@en . diff --git a/citygml-owl/scripts/patch-ontologies.sh b/citygml-owl/scripts/patch-ontologies.sh index 5aaa040..72a6fb8 100755 --- a/citygml-owl/scripts/patch-ontologies.sh +++ b/citygml-owl/scripts/patch-ontologies.sh @@ -35,6 +35,20 @@ python update_graph.py ../stage-1/ACMAPPER/document/document.ttl ../stage-1/ACMA python ontologyPatcher.py ../stage-1/ACMAPPER/document/document.ttl ../stage-2/document.ttl echo "patching dynamizer.ttl" +python update_graph.py ../stage-1/ACMAPPER/dynamizer/dynamizer.ttl ../stage-1/ACMAPPER/dynamizer/dynamizer.ttl \ + 'PREFIX owl: + DELETE + { owl:imports ?s . } + where { + select * + where { + owl:imports ?s . + filter(strends(str(?s),"time")=true) + }}; + INSERT DATA { + owl:imports . + }' + python ontologyPatcher.py ../stage-1/ACMAPPER/dynamizer/dynamizer.ttl ../stage-2/dynamizer.ttl echo "patching generics.ttl" python ontologyPatcher.py ../stage-1/ACMAPPER/generics/generics.ttl ../stage-2/generics.ttl