Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 28, 2024
1 parent 3214e9e commit 217d5b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparqlunicorn_ontdoc/export/data/voidexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def createVoidDataset(dsname,prefixnamespace,deploypath,outpath,licenseuri,modti
#subjectstorender.add(URIRef(cururi))
for prop in nonnscount:
for ns in nonnscount[prop]:
cururi=voidds+"_"+ns.replace("http://","").replace("https://","").replace("/","_")
cururi=voidds+"_"+ns.replace("http://","").replace("https://","").replace("/","_").replace("#","_")
g.add((URIRef(cururi), URIRef("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),URIRef("http://rdfs.org/ns/void#Linkset")))
g.add((URIRef(cururi), URIRef("http://www.w3.org/2000/01/rdf-schema#label"),Literal("Linkset: "+str(DocUtils.shortenURI(voidds))+" - "+str(DocUtils.getLabelForObject(ns,g,prefixes)),lang="en")))
g.add((URIRef(cururi), URIRef("http://rdfs.org/ns/void#subjectsTarget"),URIRef(voidds)))
Expand Down

0 comments on commit 217d5b2

Please sign in to comment.