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 661d790 commit f17b170
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 @@ -53,7 +53,7 @@
gcore.add((URIRef(row["Concept"].replace(curprefix+":",curns)),SKOS.definition,Literal(row["Definition"],lang="en")))
if "SuperClass" in row and row["SuperClass"]!="":
if " " in row["SuperClass"]:
for spl in row["SuperClass"]:
for spl in row["SuperClass"].split(" "):
gcore.add((URIRef(row["Concept"].replace(curprefix+":",curns)),RDFS.subClassOf,URIRef(spl.replace("geosrs:",geocrsNS))))
else:
gcore.add((URIRef(row["Concept"].replace(curprefix+":",curns)),RDFS.subClassOf,URIRef(row["SuperClass"].replace("geosrs:",geocrsNS))))
Expand All @@ -64,7 +64,7 @@
if "Definition" in row and row["Definition"]!="":
g.add((URIRef(row["Concept"].replace(curprefix+":",curns)),SKOS.definition,Literal(row["Definition"],lang="en")))
if "SuperClass" in row and row["SuperClass"]!="":
if " " in row["SuperClass"]:
if " " in row["SuperClass"].split(" "):
for spl in row["SuperClass"]:
g.add((URIRef(row["Concept"].replace(curprefix+":",curns)),RDFS.subClassOf,URIRef(spl.replace(curprefix+":",curns))))
else:
Expand Down

0 comments on commit f17b170

Please sign in to comment.