Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Oct 25, 2024
1 parent abc5c0e commit eebe236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/srsbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@
gcore.add((URIRef(row["Concept"].replace(curprefix+":",curns)),RDFS.label,Literal(row["Label"],lang="en")))
if "Definition" in row and row["Definition"]!="":
gcore.add((URIRef(row["Concept"].replace(curprefix+":",curns)),SKOS.definition,Literal(row["Definition"],lang="en")))
if "SubClass" in row and row["SubClass"]!="":
if "SubClass" in row and row["SuperClass"]!="":
gcore.add((URIRef(row["Concept"].replace(curprefix+":",curns)),RDFS.subClassOf,URIRef(row["SubClass"].replace("geosrs:",geocrsNS))))
else:
g.add((URIRef(row["Concept"].replace(curprefix+":",curns)),RDF.type,OWL.Class))
if "Label" in row and row["Label"]!="":
g.add((URIRef(row["Concept"].replace(curprefix+":",curns)),RDFS.label,Literal(row["Label"],lang="en")))
if "Definition" in row and row["Definition"]!="":
g.add((URIRef(row["Concept"].replace(curprefix+":",curns)),SKOS.definition,Literal(row["Definition"],lang="en")))
if "SubClass" in row and row["SubClass"]!="":
if "SubClass" in row and row["SuperClass"]!="":
g.add((URIRef(row["Concept"].replace(curprefix+":",curns)),RDFS.subClassOf,URIRef(row["SubClass"].replace("geosrs:",geocrsNS))))
else:
continue
Expand Down

0 comments on commit eebe236

Please sign in to comment.