-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Showing anonymous ontologies #69
base: master
Are you sure you want to change the base?
Conversation
Out of curiosity, how are you making an anonymous ontology? I don't think tawny supports it (perhaps it should). |
I've been trying to add a few ontologies to the ontology manager as follows: (.loadOntologyFromOntologyDocument
(tawny.owl/owl-ontology-manager)
(tawny.owl/iri (clojure.java.io/resource "ontology.ttl"))) ... which seems to work, but produces an anonymous ontology 😄 |
That said, I'm getting the feeling that tawny may not be the right tool for me, as I've been struggling to make it work with a combination of "external" ontologies and ontologies defined with tawny DSL... I find myself making too many raw Java method calls, not so many Clojure's. |
|
Are you sure that ontology.ttl has a declared IRI in it? That might well be the problem. Consider:
This should work if you run a repl directly in a clone of the tawny-owl repo. Still, either way, you are correct, it should print nicely. |
Yes, that might be the problem, indeed. But I have a bunch of those, and there can be a random SKOS vocabulary or some "snippets", that don't necessarily have an ontology IRI. Thanks for the hints about tawny API – I somehow missed those functions from the start. |
Hi!
I made a few adjustments to the ontology printers – specifically, I added a check for "anonymous" ontologies (w/o ontology URIs) that will make the printer output a blank string instead of crashing ;)
(Also, leiningen was complaining about non-HTTPs URI for the repo – I changed that to "https" in
project.clj
).