neurolang.datalog.ontologies_parser module¶
- class neurolang.datalog.ontologies_parser.OntologyParser(paths, connector_symbol=None, load_format='xml')¶
Bases:
object
This class is in charge of generating the rules that can be derived from an ontology, both at entity and constraint levels.
Methods
Main function to be called for ontology processing.
- parse_ontology()¶
Main function to be called for ontology processing.
- Returns:
- Two dictionaries. One with contraints, for example, rules derived
- from restrictions of type someValuesFrom. The other one, with the
- implications derived from the rest of the ontological information,
- for example, the label property. Both dictionaries index lists of
- rules using the rule consequent functor.