Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 21, 2024
1 parent 38d4268 commit 0f8e1e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/sparqlunicorn_ontdoc/doc/docconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ class DocConfig:
"prop": "http://www.w3.org/2006/vcard/ns#hasMember"},
"http://xmlns.com/foaf/0.1/Person": {"class": "http://www.w3.org/2006/vcard/ns#Group",
"prop": "http://www.w3.org/2006/vcard/ns#hasMember"},
"http://xmlns.com/foaf/0.1/OnlineAccount": {"class": "http://rdfs.org/sioc/ns#Usergroup",
"prop": "http://rdfs.org/sioc/ns#has_member"},
"http://rdfs.org/sioc/ns#User": {"class": "http://rdfs.org/sioc/ns#Usergroup",
"prop": "http://rdfs.org/sioc/ns#has_member"},
"https://dblp.org/rdf/schema/Person": {"class": "http://www.w3.org/2006/vcard/ns#Group",
"prop": "http://www.w3.org/2006/vcard/ns#hasMember"},

Expand Down Expand Up @@ -359,6 +363,7 @@ class DocConfig:
"http://purl.org/dc/terms/spatial": ["http://www.wikidata.org/entity/Q121810372","http://dbpedia.org/resource/Location"],
"http://www.w3.org/2006/vcard/ns#":["http://xmlns.com/foaf/0.1/Person"],
"http://xmlns.com/foaf/0.1/": ["http://xmlns.com/foaf/0.1/Person"],
"http://rdfs.org/sioc/ns#": ["http://xmlns.com/foaf/0.1/OnlineAccount"],
}


Expand Down
2 changes: 1 addition & 1 deletion src/sparqlunicorn_ontdoc/export/data/voidexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ def toHTML(stats,deploypath):
result="<details><summary>Dataset Statistics <a href=\""+str(deploypath)+"/void.ttl"+"\" target=\"_blank\">[VOID]</a></summary>"
result+="<table border=\"1\"><thead><th>Property</th><th>Value</th></thead><tbody>"
for stat in stats:
result+="<tr><td><a href=\""+str(stat)+"\" target=\"_blank\">"+str(DocUtils.shortenURI(stat))+"</a></td><td>"+str(stats[stat])+"<a href=\"http://www.w3.org/2001/XMLSchema#integer\" style=\"color:#666;\">(xsd:integer)</a></td></tr>"
result+="<tr><td><a href=\""+str(stat)+"\" target=\"_blank\">"+str(DocUtils.shortenURI(stat))+"</a></td><td>"+str(stats[stat])+"<a href=\"http://www.w3.org/2001/XMLSchema#integer\" style=\"color:#666;\"><pre>(xsd:integer)</pre></a></td></tr>"
result+="</tbody></table></details>"
return result

0 comments on commit 0f8e1e4

Please sign in to comment.