From 85485ec309de2415642688c9433798bae926d6b5 Mon Sep 17 00:00:00 2001 From: Timo Date: Sun, 22 Sep 2024 16:57:23 +0200 Subject: [PATCH] fixes --- src/sparqlunicorn_ontdoc/export/api/solidexporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sparqlunicorn_ontdoc/export/api/solidexporter.py b/src/sparqlunicorn_ontdoc/export/api/solidexporter.py index f2b9efb1..f4ab4375 100644 --- a/src/sparqlunicorn_ontdoc/export/api/solidexporter.py +++ b/src/sparqlunicorn_ontdoc/export/api/solidexporter.py @@ -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")