Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
owl_reasoners_via_owlapi [2013/02/04 12:20] – tenorth | owl_reasoners_via_owlapi [2014/08/08 09:35] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Integration of OWL reasoners via OWLAPI ====== | ====== Integration of OWL reasoners via OWLAPI ====== | ||
+ | \\ | ||
+ | **Note: This page describes experimental code that has not been used in a while. Please try it at your own risk.** | ||
+ | \\ | ||
- | Conventional OWL reasoners like Pellet or HermiT are interfaced via the OWL API. The interface currently supports reasoning about the class ontology, especially the computation of inferred subclasses. The interface code is contained in the package knowrob_common in the module knowrob_owlapi | + | Conventional OWL reasoners like Pellet or HermiT are interfaced via the OWL API. The interface currently supports reasoning about the class ontology, especially the computation of inferred subclasses. The interface code is contained in the package |
- | + | ||
- | There is a convenience predicate for calling the subclass-of relation which initializes the OWLAPI interface, copies the current class taxonomy from KnowRob, instantiates the reasoners and returns the inferred subclasses: | + | |
?- owlapi_subclass_of(Sub, | ?- owlapi_subclass_of(Sub, | ||
Line 13: | Line 14: | ||
| | ||
% create OWLAPI interfaces: ontology manager, data factory, create empty ontology | % create OWLAPI interfaces: ontology manager, data factory, create empty ontology | ||
- | owlapi_manager(OWLManager), | + | owlapi_manager(OWLManager), |
+ | | ||
+ | | ||
% copy class taxonomy to the OWLAPI ontology | % copy class taxonomy to the OWLAPI ontology | ||
Line 27: | Line 30: | ||
owl_parse(' | owl_parse(' | ||
- | owlapi_manager(OWLManager), | + | owlapi_manager(OWLManager), |
+ | | ||
+ | | ||
| | ||
findall(Res, | findall(Res, |