Skip to content

Commit 49c39f2

Browse files
authored
Update solidexporter.py
1 parent 522f582 commit 49c39f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sparqlunicorn_ontdoc/export/api/solidexporter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ def createSolidSettings(graph,outpath,deploypath,publisher,datasetname,classtree
1919
webidprofilegraph.add((URIRef(outpath+"/profile/card"), URIRef("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), URIRef("http://xmlns.com/foaf/0.1/PersonalProfileDocument")))
2020
preferencesgraph=Graph()
2121
preferencesgraph.serialize(destination=outpath+"/settings/prefs.ttl", format="ttl")
22-
publisheruri=publisher
22+
publisheruri=publisher.replace(" ","_")
2323
if not publisher.startswith("http"):
24-
publisheruri=deploypath+"/profile/card#"+str(publisher)
24+
publisheruri=deploypath+"/profile/card#"+str(publisher).replace(" ","_")
2525
webidprofilegraph.add((URIRef(outpath + "/profile/card"), URIRef("http://xmlns.com/foaf/0.1/primaryTopic"), URIRef(str(publisheruri))))
2626
webidprofilegraph.add((URIRef(str(publisheruri)), URIRef("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), URIRef("http://xmlns.com/foaf/0.1/Person")))
27-
webidprofilegraph.add((URIRef(str(publisheruri)), URIRef("http://www.w3.org/ns/pim/space#storage"), URIRef(str(deploypath) + str(datasetname))))
27+
webidprofilegraph.add((URIRef(str(publisheruri)), URIRef("http://www.w3.org/ns/pim/space#storage"), URIRef(str(deploypath) + str(datasetname).replace(" ","_"))))
2828
webidprofilegraph.add((URIRef(str(publisheruri)), URIRef("http://www.w3.org/ns/solid/terms#publicTypeIndex"), URIRef(deploypath + "/settings/publicTypeIndex.ttl")))
2929
webidprofilegraph.add((URIRef(str(publisheruri)), URIRef("http://www.w3.org/ns/solid/terms#privateTypeIndex"), URIRef(deploypath + "/settings/privateTypeIndex.ttl")))
3030
webidprofilegraph.serialize(destination=outpath+"/profile/card.ttl", format="ttl")
@@ -74,4 +74,4 @@ def addSolidContainer(graph,deploypath,datasetname,collections):
7474
graph.add((URIRef(coll), URIRef("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
7575
URIRef("http://www.w3.org/ns/ldp#Container")))
7676
graph.add((URIRef(coll), URIRef("http://www.w3.org/ns/pim/space#storage"),
77-
URIRef(str(deploypath) + str(datasetname))))
77+
URIRef(str(deploypath) + str(datasetname))))

0 commit comments

Comments
 (0)