-
Notifications
You must be signed in to change notification settings - Fork 74
Description
Hi,
I try to follow the exem-ont example and to create a similar view for cityrdf repo.
I created pylode-config.ttl and pylode.ttl (although its name can be changed not to interfere with pylode ontology) and run a command like
python pylode -p supermodel pylode-config.ttl
It correctly reads the file and fails with ValueError:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/nata/work/pyLODE/pylode/main.py", line 6, in
main()
File "/home/nata/work/pyLODE/pylode/cli.py", line 66, in main
html = Supermodel(args.input, sort_subjects = sort_subjects)
File "/home/nata/work/pyLODE/pylode/profiles/supermodel/html.py", line 103, in init
self.query = QueryClass(self.ont)
File "/home/nata/work/pyLODE/pylode/profiles/supermodel/query/init.py", line 413, in init
self.ns = self.get_ns()
File "/home/nata/work/pyLODE/pylode/profiles/supermodel/query/init.py", line 666, in get_ns
prefix = ont.compute_qname(default_iri, True)[0]
File "/usr/local/lib/python3.10/dist-packages/rdflib/graph.py", line 1186, in compute_qname
return self.namespace_manager.compute_qname(uri, generate)
File "/usr/local/lib/python3.10/dist-packages/rdflib/namespace/init.py", line 571, in compute_qname
raise e
File "/usr/local/lib/python3.10/dist-packages/rdflib/namespace/init.py", line 565, in compute_qname
namespace, name = split_uri(uri)
File "/usr/local/lib/python3.10/dist-packages/rdflib/namespace/init.py", line 872, in split_uri
raise ValueError("Can't split '{}'".format(uri))
ValueError: Can't split 'https://www.opengis.net/ont/citygml/'
Any idea of what to do with this?