Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 23, 2024
1 parent ce8aaa2 commit c1196ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sparqlunicorn_ontdoc/export/data/voidexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def createVoidDataset(dsname,prefixnamespace,deploypath,outpath,licenseuri,modti
URIRef("http://rdfs.org/ns/void#Dataset")))
g.add((URIRef(cururi),URIRef("http://rdfs.org/ns/void#property"),URIRef(pred)))
g.add((URIRef(cururi),URIRef("http://rdfs.org/ns/void#triples"),Literal(str(propstats[pred]["triples"]),datatype="http://www.w3.org/2001/XMLSchema#integer")))
subjects.add(cururi)
subjects.add(URIRef(cururi))
for item in classtree["core"]["data"]:
if item["type"]=="class":
cururi = voidds +"_"+ DocUtils.shortenURI(item["id"])
Expand All @@ -66,7 +66,7 @@ def createVoidDataset(dsname,prefixnamespace,deploypath,outpath,licenseuri,modti
g.add((URIRef(cururi), URIRef("http://rdfs.org/ns/void#class"), URIRef(item["id"])))
if item["id"] in objectmap:
g.add((URIRef(cururi), URIRef("http://rdfs.org/ns/void#entities"),Literal(str(objectmap[item["id"]]), datatype="http://www.w3.org/2001/XMLSchema#integer")))
subjects.add(cururi)
subjects.add(URIRef(cururi))
for prop in nonnscount:
for ns in nonnscount[prop]:
cururi=voidds+"_"+DocUtils.shortenURI(ns)
Expand All @@ -75,7 +75,7 @@ def createVoidDataset(dsname,prefixnamespace,deploypath,outpath,licenseuri,modti
g.add((URIRef(cururi), URIRef("http://rdfs.org/ns/void#objectsTarget"),URIRef(ns)))
g.add((URIRef(cururi), URIRef("http://rdfs.org/ns/void#linkPredicate"),URIRef(prop)))
g.add((URIRef(cururi), URIRef("http://rdfs.org/ns/void#triples"),Literal(str(nonnscount[prop][ns]),datatype="http://www.w3.org/2001/XMLSchema#integer")))
subjects.add(cururi)
subjects.add(URIRef(cururi))
g.serialize(outpath+"/void.ttl", encoding="utf-8")
return {"graph":g,"subjects":subjects}

Expand Down

0 comments on commit c1196ea

Please sign in to comment.