From e02dd0292cc9592972ca0267f77ed75794452fe8 Mon Sep 17 00:00:00 2001 From: Timo Date: Wed, 25 Sep 2024 02:36:49 +0200 Subject: [PATCH] fixes --- scripts/srsbuild.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/srsbuild.py b/scripts/srsbuild.py index 2b62c3a..fed259e 100644 --- a/scripts/srsbuild.py +++ b/scripts/srsbuild.py @@ -1,5 +1,5 @@ from rdflib import Graph, URIRef, Literal -from rdflib.namespace import RDF, RDFS, OWL, SKOS +from rdflib.namespace import RDF, RDFS, OWL, SKOS, VANN, XSD import csv import os @@ -7,7 +7,12 @@ g.bind("geosrs", "http://www.opengis.net/ont/srs/") g.bind("skos","http://www.w3.org/2004/02/skos/core#") -geocrsNS="http://www.opengis.net/ont/crs/" +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))) + +geocrsNS="http://www.opengis.net/ont/srs/" dirname = os.path.dirname(__file__) abspath = os.path.join(dirname, '../csv/class/')