Skip to content

Commit

Permalink
fixe import OWL-Time for dynamizer.ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
Nataliya Keberle committed Dec 6, 2024
1 parent f16add2 commit 71ad421
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions citygml-owl/CityOWL/dynamizer.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

<https://www.opengis.net/ont/citygml/dynamizer> a owl:Ontology ;
rdfs:label "Dynamizer"@en ;
owl:imports <file:///home/nata/work/gml3/cityrdf/citygml-owl/stage-1/ACMAPPER/dynamizer/www.w3.org/2006/time>,
<http://def.isotc211.org/iso19150/-2/2012/base>,
owl:imports <http://def.isotc211.org/iso19150/-2/2012/base>,
<http://www.w3.org/2006/time>,
<http://www.opengis.net/ont/gml>,
<https://www.opengis.net/ont/citygml/core> ;
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 .
Expand Down
14 changes: 14 additions & 0 deletions citygml-owl/scripts/patch-ontologies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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: <http://www.w3.org/2002/07/owl#>
DELETE
{<https://www.opengis.net/ont/citygml/dynamizer> owl:imports ?s . }
where {
select *
where {
<https://www.opengis.net/ont/citygml/dynamizer> owl:imports ?s .
filter(strends(str(?s),"time")=true)
}};
INSERT DATA {
<https://www.opengis.net/ont/citygml/dynamizer> owl:imports <http://www.w3.org/2006/time> .
}'

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
Expand Down

0 comments on commit 71ad421

Please sign in to comment.