Repl and documentation functions for OWL objects
Repl and documentation functions for OWL objects
The last change that an on-change listener saw.
The last change that an on-change listener saw.
(auto-save filename format)
(auto-save filename format nosave)
Autosave the current ontology everytime any change happens.
Autosave the current ontology everytime any change happens.
The current listener for handling auto-saves or nil.
The current listener for handling auto-saves or nil.
(auto-save-off)
Stop autosaving ontologies.
Stop autosaving ontologies.
(fetch-doc ontology owlobject)
Given an owlobject and potentially ontology, return documentation. The documentation is generated over the live object (owlobjects are mutable). It includes all labels, comments and a rendered version of the owlobject.
Given an owlobject and potentially ontology, return documentation. The documentation is generated over the live object (owlobjects are mutable). It includes all labels, comments and a rendered version of the owlobject.
(load-ontology iri)
(load-ontology iri manager)
Loads and returns an ontology directly through the OWL API. This is function is meant for usage at the REPL; see 'tawny.read' for more integrated solution. If an manager is passed in, it should not already have loaded an ontology with the same name.
Loads and returns an ontology directly through the OWL API. This is function is meant for usage at the REPL; see 'tawny.read' for more integrated solution. If an manager is passed in, it should not already have loaded an ontology with the same name.
(make-no-name)
(make-no-name o)
Remove name annotations from current and future entities in the current ontology. This is not quite the same as setting :noname at the beginning, but it useful at the REPL where these annotations can just hinder the reading of the ontology. There is no way to reverse this function, so use with care.
Remove name annotations from current and future entities in the current ontology. This is not quite the same as setting :noname at the beginning, but it useful at the REPL where these annotations can just hinder the reading of the ontology. There is no way to reverse this function, so use with care.
(materialize-ontology iri)
(materialize-ontology iri root)
Loads an ontology, attempts to resolve all of its imports, then saves the import clojure to the resources directory. Returns a map of IRI to file names. Save ontologies in 'root' or the resources directory.
Loads an ontology, attempts to resolve all of its imports, then saves the import clojure to the resources directory. Returns a map of IRI to file names. Save ontologies in 'root' or the resources directory.
(name-annotations)
(name-annotations o)
(new-manager)
Returns a new OWLOntologyManager.
Returns a new OWLOntologyManager.
(on-change f)
Evaluate F everytime an ontology change happens
Evaluate F everytime an ontology change happens
(print-doc owlobject)
(print-doc owlobject ontology)
Print the documentation for the owlobject. See fetch-doc for more on how this documentation is generated.
Print the documentation for the owlobject. See fetch-doc for more on how this documentation is generated.
(print-ns-doc)
(print-ns-doc ns)
Print the documentation for all owlobjects stored in vars within a given namespace.
Print the documentation for all owlobjects stored in vars within a given namespace.
(println-load-listener)
Returns a OWLOntologyLoaderListener that logs to println.
Returns a OWLOntologyLoaderListener that logs to println.
(render-iri iri file)
(render-ontology o file)
(render-ontology o file options)
(update-doc name)
Updates the documentation on a symbol containing an OWLObject.
Updates the documentation on a symbol containing an OWLObject.
(update-ns-doc)
(update-ns-doc ns)
Updates the documentation for all vars in a namespace.
Updates the documentation for all vars in a namespace.
(update-var-doc var)
Updates the documentation on a var containing a OWLObject. This updates the documentation based on the state of the OWLObject at the current time. See also update-ns-doc which is more efficient for updating multiple vars at once.
Updates the documentation on a var containing a OWLObject. This updates the documentation based on the state of the OWLObject at the current time. See also update-ns-doc which is more efficient for updating multiple vars at once.
(use-tawny)
Use key tawny namespaces. This is designed for repl uses with lein-shorthand.
Use key tawny namespaces. This is designed for repl uses with lein-shorthand.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close