cognipy icon indicating copy to clipboard operation
cognipy copied to clipboard

Namespace Resolution

Open ch-sander opened this issue 5 months ago • 0 comments

onto = Ontology("rdf/file","results/ontology/graceful17.ttl")

leads to

Namespace:'http://www.semanticweb.org/owl/owlapi/turtle#'.
If X "called"[grace] equal-to Y then X "<->" equal-to Y.
If X "context_explanation"[<[http://www.graceful17.org/ontolog#>](http://www.graceful17.org/ontolog#%3E)] equal-to Y then X "<->" equal-to Y.
If X "contributor_name"[<[http://www.graceful17.org/ontolog#>](http://www.graceful17.org/ontolog#%3E)] equal-to Y then X "<->" equal-to Y.
...

The ttl loaded has @prefix grace: <http://www.graceful17.org/ontology/> . However, this namespace is not correctly set in the cnl, it seems. Sometimes it correctly points to [grace], other time it uses the URI [http://www.graceful17.org/ontolog#>] that does not feature in my RDF.

The same shows in the graphviz.

For testing: https://dataria.org/file/results/ontology/graceful17.ttl

I also wondered why I cannot load via Ontology("rdf/uri","https://dataria.org/file/results/ontology/graceful17.ttl")

Thanks :-)!

ch-sander avatar Aug 30 '24 07:08 ch-sander