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 f17b170 commit 19e35aa
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 @@ -64,8 +64,8 @@
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"].split(" "):
for spl in row["SuperClass"]:
if " " in row["SuperClass"]:
for spl in row["SuperClass"].split(" "):
g.add((URIRef(row["Concept"].replace(curprefix+":",curns)),RDFS.subClassOf,URIRef(spl.replace(curprefix+":",curns))))
else:
g.add((URIRef(row["Concept"].replace(curprefix+":",curns)),RDFS.subClassOf,URIRef(row["SuperClass"].replace(curprefix+":",curns))))
Expand Down

0 comments on commit 19e35aa

Please sign in to comment.