Skip to content

Commit

Permalink
uriresource statements
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 31, 2025
1 parent 550e1af commit 92a2946
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion util/ui/uiutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,14 @@ def createTripleStoreCBox(cbox,triplestoreconf):
item += " --> "
for mandvar in triplestore["mandatoryvariables"]:
item += "?" + mandvar + " "
if "type" in triplestore and triplestore["type"] == "geosparqlendpoint":
isfile=False
if "resource" in triplestore and "type" in triplestore["resource"] and triplestore["resource"]["type"]=="file":
if triplestore["resource"]["url"].startswith("http"):
item += " [URIResource]"
else:
item += " [File]"
cbox.addItem(UIUtils.rdffileicon, item)
elif "type" in triplestore and triplestore["type"] == "geosparqlendpoint":
item += " [GeoSPARQL Endpoint]"
cbox.addItem(UIUtils.geoendpointicon, item)
elif "type" in triplestore and triplestore["type"] == "sparqlendpoint":
Expand Down

0 comments on commit 92a2946

Please sign in to comment.