Skip to content

Commit

Permalink
adapted script with new w3id URI
Browse files Browse the repository at this point in the history
  • Loading branch information
gatemezing committed Oct 23, 2024
1 parent ebd888b commit a6e2e0d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/srsbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
}

g = Graph()
g.bind("geosrs", "http://www.opengis.net/ont/srs/")
g.bind("geosrs", "https://w3id.org/geosrs#")
g.bind("skos","http://www.w3.org/2004/02/skos/core#")

g.add((URIRef("http://www.opengis.net/ont/srs/geosrs"),RDF.type,OWL.Ontology))
g.add((URIRef("http://www.opengis.net/ont/srs/geosrs"),RDFS.label,Literal("SRS Ontology",lang="en")))
g.add((URIRef("http://www.opengis.net/ont/srs/geosrs"),VANN.preferredNamespacePrefix,Literal("geosrs",datatype=XSD.string)))
g.add((URIRef("http://www.opengis.net/ont/srs/geosrs"),VANN.preferredNamespaceUri,Literal("http://www.opengis.net/ont/srs/",datatype=XSD.anyURI)))
g.add((URIRef("https://w3id.org/geosrs"),RDF.type,OWL.Ontology))
g.add((URIRef("https://w3id.org/geosrs"),RDFS.label,Literal("SRS Ontology",lang="en")))
g.add((URIRef("https://w3id.org/geosrs"),VANN.preferredNamespacePrefix,Literal("geosrs",datatype=XSD.string)))
g.add((URIRef("https://w3id.org/geosrs"),VANN.preferredNamespaceUri,Literal("https://w3id.org/geosrs#",datatype=XSD.anyURI)))

geocrsNS="http://www.opengis.net/ont/srs/"
geocrsNS="https://w3id.org/geosrs#"

dirname = os.path.dirname(__file__)
abspath = os.path.join(dirname, '../csv/class/')
Expand Down Expand Up @@ -79,7 +79,7 @@
g=Graph()
g.bind("ign","http://data.ign.fr/def/ignf#")
g.bind("iso19112","http://def.isotc211.org/iso19112/2019/SpatialReferencingByGeographicIdentifier#")
g.bind("geosrs", "http://www.opengis.net/ont/srs/")
g.bind("geosrs", "https://w3id.org/geosrs#")
dirname = os.path.dirname(__file__)
abspath = os.path.join(dirname, '../csv/alignment/')
directory = os.fsencode(abspath)
Expand Down

0 comments on commit a6e2e0d

Please sign in to comment.