@@ -19,12 +19,12 @@ def createSolidSettings(graph,outpath,deploypath,publisher,datasetname,classtree
19
19
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" )))
20
20
preferencesgraph = Graph ()
21
21
preferencesgraph .serialize (destination = outpath + "/settings/prefs.ttl" , format = "ttl" )
22
- publisheruri = publisher
22
+ publisheruri = publisher . replace ( " " , "_" )
23
23
if not publisher .startswith ("http" ):
24
- publisheruri = deploypath + "/profile/card#" + str (publisher )
24
+ publisheruri = deploypath + "/profile/card#" + str (publisher ). replace ( " " , "_" )
25
25
webidprofilegraph .add ((URIRef (outpath + "/profile/card" ), URIRef ("http://xmlns.com/foaf/0.1/primaryTopic" ), URIRef (str (publisheruri ))))
26
26
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 ( " " , "_" ) )))
28
28
webidprofilegraph .add ((URIRef (str (publisheruri )), URIRef ("http://www.w3.org/ns/solid/terms#publicTypeIndex" ), URIRef (deploypath + "/settings/publicTypeIndex.ttl" )))
29
29
webidprofilegraph .add ((URIRef (str (publisheruri )), URIRef ("http://www.w3.org/ns/solid/terms#privateTypeIndex" ), URIRef (deploypath + "/settings/privateTypeIndex.ttl" )))
30
30
webidprofilegraph .serialize (destination = outpath + "/profile/card.ttl" , format = "ttl" )
@@ -74,4 +74,4 @@ def addSolidContainer(graph,deploypath,datasetname,collections):
74
74
graph .add ((URIRef (coll ), URIRef ("http://www.w3.org/1999/02/22-rdf-syntax-ns#type" ),
75
75
URIRef ("http://www.w3.org/ns/ldp#Container" )))
76
76
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