-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added shapechange libraries; minor updates in README, run-workflow.sh…
…, run.sh
- Loading branch information
Nataliya Keberle
committed
Feb 10, 2025
1 parent
8ca5a47
commit 972a1be
Showing
386 changed files
with
129,869 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import rdflib | ||
from rdflib import Graph | ||
import fire | ||
|
||
def refactor(infile=None, outfile=None): | ||
g = rdflib.Graph() | ||
g.parse(infile, format='ttl') | ||
|
||
g.serialize(destination=outfile, format='xml') | ||
|
||
# print('Refactored RDF file saved to', outfile) | ||
|
||
if __name__ == '__main__': | ||
fire.Fire(refactor) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# #!/bin/sh | ||
|
||
mkdir -p ../rdfxml | ||
|
||
python converter.py ../CityRDF-strict/appearance.ttl ../rdfxml/appearance.rdf | ||
python converter.py ../CityRDF-strict/bridge.ttl ../rdfxml/bridge.rdf | ||
python converter.py ../CityRDF-strict/building.ttl ../rdfxml/building.rdf | ||
python converter.py ../CityRDF-strict/cityfurniture.ttl ../rdfxml/cityfurniture.rdf | ||
python converter.py ../CityRDF-strict/cityobjectgroup.ttl ../rdfxml/cityobjectgroup.rdf | ||
python converter.py ../CityRDF-strict/construction.ttl ../rdfxml/construction.rdf | ||
python converter.py ../CityRDF-strict/core.ttl ../rdfxml/core.rdf | ||
python converter.py ../CityRDF-strict/document.ttl ../rdfxml/document.rdf | ||
python converter.py ../CityRDF-strict/dynamizer.ttl ../rdfxml/dynamizer.rdf | ||
python converter.py ../CityRDF-strict/generics.ttl ../rdfxml/generics.rdf | ||
python converter.py ../CityRDF-strict/landuse.ttl ../rdfxml/landuse.rdf | ||
python converter.py ../CityRDF-strict/pointcloud.ttl ../rdfxml/pointcloud.rdf | ||
python converter.py ../CityRDF-strict/relief.ttl ../rdfxml/relief.rdf | ||
python converter.py ../CityRDF-strict/transportation.ttl ../rdfxml/transportation.rdf | ||
python converter.py ../CityRDF-strict/tunnel.ttl ../rdfxml/tunnel.rdf | ||
python converter.py ../CityRDF-strict/vegetation.ttl ../rdfxml/vegetation.rdf | ||
python converter.py ../CityRDF-strict/versioning.ttl ../rdfxml/versioning.rdf | ||
python converter.py ../CityRDF-strict/waterbody.ttl ../rdfxml/waterbody.rdf | ||
python converter.py ../CityRDF-strict/workspace.ttl ../rdfxml/workspace.rdf | ||
python converter.py ../CityRDF-strict/common.ttl ../rdfxml/common.rdf | ||
|
||
cat ../rdfxml/*.rdf > rdfxml.rdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
java -jar ~/prog/ShapeChange/target/ShapeChange-3.1.1-SNAPSHOT.jar -Dfile.encoding=UTF-8 -c CityGML3.0_to_OWL_ontotext_config.xml \ | ||
java -jar shapechange/ShapeChange-3.1.1-SNAPSHOT.jar -Dfile.encoding=UTF-8 -c CityGML3.0_to_OWL_ontotext_config.xml \ | ||
-x '$input$' './CityGML_3.0-workspaces-documents_shapechange-export.xml' \ | ||
-x '$output$' '../stage-1' | ||
|
||
#java -jar ~/prog/ShapeChange/target/ShapeChange-3.1.1-SNAPSHOT.jar -Dfile.encoding=UTF-8 -c CityGML3.0_to_OWL_ontotextBuilding_config.xml \ | ||
# -x '$input$' './CityGML_3.0_Building_UML1.3_XMI1.0_NoADEs.xml' \ | ||
# -x '$output$' './stage-1' | ||
|
||
#java -jar ~/prog/ShapeChange/target/ShapeChange-3.1.1-SNAPSHOT.jar -Dfile.encoding=UTF-8 -c CityGML3.0_to_OWL_ontotextBuilding_config.xml \ | ||
# -x '$input$' './CityGML_3.0_Building_UML1.3_XMI1.0_NoADEs.xml' \ | ||
# -x '$output$' './stage-1' | ||
#java -jar ~/prog/ShapeChange/target/ShapeChange-3.1.1-SNAPSHOT.jar -Dfile.encoding=UTF-8 -c CityGML3.0_to_OWL_ontotext_config.xml \ | ||
# -x '$input$' './CityGML_3.0-workspaces-documents_shapechange-export.xml' \ | ||
# -x '$output$' '../stage-1' | ||
|
Binary file added
BIN
+1.79 MB
citygml-owl/scripts/shapechange/ShapeChange-3.1.1-SNAPSHOT-sources.jar
Binary file not shown.
File renamed without changes.
Oops, something went wrong.