Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Sep 22, 2024
1 parent bb5c170 commit 85485ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sparqlunicorn_ontdoc/export/api/solidexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def createSolidSettings(graph,outpath,deploypath,publisher,datasetname,classtree
preferencesgraph.serialize(destination=outpath+"/settings/prefs.ttl", format="ttl")
publisheruri=publisher.replace(" ","_")
if not publisher.startswith("http"):
publisheruri=deploypath+"/profile/card#"+str(publisher)
publisheruri=deploypath+"/profile/card#"+str(publisher).replace(" ","_")
webidprofilegraph.add((URIRef(outpath + "/profile/card"), URIRef("http://xmlns.com/foaf/0.1/primaryTopic"), URIRef(str(publisheruri))))
webidprofilegraph.add((URIRef(str(publisheruri)), RDF.type, FOAF.Person))
webidprofilegraph.add((URIRef(str(publisheruri)), URIRef("http://www.w3.org/ns/pim/space#storage"), URIRef(str(deploypath) + str(datasetname))))
webidprofilegraph.add((URIRef(str(publisheruri)), URIRef("http://www.w3.org/ns/pim/space#storage"), URIRef(str(deploypath) + str(datasetname).replace(" ","_"))))
webidprofilegraph.add((URIRef(str(publisheruri)), URIRef("http://www.w3.org/ns/solid/terms#publicTypeIndex"), URIRef(deploypath + "/settings/publicTypeIndex.ttl")))
webidprofilegraph.add((URIRef(str(publisheruri)), URIRef("http://www.w3.org/ns/solid/terms#privateTypeIndex"), URIRef(deploypath + "/settings/privateTypeIndex.ttl")))
webidprofilegraph.serialize(destination=outpath+"/profile/card.ttl", format="ttl")
Expand Down

0 comments on commit 85485ec

Please sign in to comment.