Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Sep 25, 2024
1 parent f8b9849 commit e02dd02
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/srsbuild.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
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

g = Graph()
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/')
Expand Down

0 comments on commit e02dd02

Please sign in to comment.