ontolearn.owl_neural_reasoner ============================= .. py:module:: ontolearn.owl_neural_reasoner Classes ------- .. autoapisummary:: ontolearn.owl_neural_reasoner.TripleStoreNeuralReasoner Functions --------- .. autoapisummary:: ontolearn.owl_neural_reasoner.is_valid_entity Module Contents --------------- .. py:function:: is_valid_entity(text_input: str) .. py:class:: TripleStoreNeuralReasoner(path_of_kb: str = None, path_neural_embedding: str = None, gamma: float = 0.25, max_cache_size: int = 2**20) OWL Neural Reasoner uses a neural link predictor to retrieve instances of an OWL Class Expression .. py:attribute:: gamma :value: 0.25 .. py:attribute:: str_iri_subclassof :value: 'http://www.w3.org/2000/01/rdf-schema#subClassOf' .. py:attribute:: str_iri_type :value: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' .. py:attribute:: str_iri_owl_class :value: 'http://www.w3.org/2002/07/owl#Class' .. py:attribute:: str_iri_object_property :value: 'http://www.w3.org/2002/07/owl#ObjectProperty' .. py:attribute:: str_iri_range :value: 'http://www.w3.org/2000/01/rdf-schema#range' .. py:attribute:: str_iri_double :value: 'http://www.w3.org/2001/XMLSchema#double' .. py:attribute:: str_iri_boolean :value: 'http://www.w3.org/2001/XMLSchema#boolean' .. py:attribute:: str_iri_data_property :value: 'http://www.w3.org/2002/07/owl#DatatypeProperty' .. py:attribute:: inferred_object_properties :value: None .. py:attribute:: inferred_named_owl_classes :value: None .. py:method:: __str__() .. py:property:: set_inferred_object_properties .. py:property:: set_inferred_owl_classes .. py:method:: predict(h: str = None, r: str = None, t: str = None) -> List[Tuple[str, float]] .. py:method:: predict_individuals_of_owl_class(owl_class: owlapy.class_expression.OWLClass) -> List[owlapy.owl_individual.OWLNamedIndividual] .. py:method:: abox(str_iri: str) -> Generator[Tuple[Tuple[owlapy.owl_individual.OWLNamedIndividual, owlapy.owl_property.OWLProperty, owlapy.class_expression.OWLClass], Tuple[owlapy.owl_property.OWLObjectProperty, owlapy.owl_property.OWLObjectProperty, owlapy.owl_individual.OWLNamedIndividual], Tuple[owlapy.owl_property.OWLObjectProperty, owlapy.owl_property.OWLDataProperty, owlapy.owl_literal.OWLLiteral]], None, None] .. py:method:: classes_in_signature() -> List[owlapy.class_expression.OWLClass] .. py:method:: direct_subconcepts(named_concept: owlapy.class_expression.OWLClass) -> List[owlapy.class_expression.OWLClass] .. py:method:: subconcepts(named_concept: owlapy.class_expression.OWLClass, visited=None) -> List[owlapy.class_expression.OWLClass] .. py:method:: most_general_classes() -> List[owlapy.class_expression.OWLClass] At least it has single subclass and there is no superclass .. py:method:: least_general_named_concepts() -> Generator[owlapy.class_expression.OWLClass, None, None] At least it has single superclass and there is no subclass .. py:method:: get_direct_parents(named_concept: owlapy.class_expression.OWLClass) -> List[owlapy.class_expression.OWLClass] .. py:method:: get_type_individuals(individual: str) -> List[owlapy.class_expression.OWLClass] .. py:method:: individuals_in_signature() -> List[owlapy.owl_individual.OWLNamedIndividual] .. py:method:: data_properties_in_signature() -> List[owlapy.owl_property.OWLDataProperty] .. py:method:: object_properties_in_signature() -> List[owlapy.owl_property.OWLObjectProperty] .. py:method:: boolean_data_properties() -> Generator[owlapy.owl_property.OWLDataProperty, None, None] .. py:method:: double_data_properties() -> List[owlapy.owl_property.OWLDataProperty] .. py:method:: individuals(expression: owlapy.class_expression.OWLClassExpression = None, named_individuals: bool = False) -> Generator[owlapy.owl_individual.OWLNamedIndividual, None, None] .. py:method:: instances(expression: owlapy.class_expression.OWLClassExpression, named_individuals=False) -> Generator[owlapy.owl_individual.OWLNamedIndividual, None, None] .. py:method:: get_object_property_values(subject: str, object_property: owlapy.owl_property.OWLObjectProperty = None) -> List[owlapy.owl_individual.OWLNamedIndividual] .. py:method:: get_data_property_values(subject: str, data_property: owlapy.owl_property.OWLDataProperty) -> Generator[owlapy.owl_literal.OWLLiteral, None, None] .. py:method:: get_individuals_with_object_property(object_property: owlapy.owl_property.OWLObjectProperty, obj: owlapy.class_expression.OWLClass) -> Generator[owlapy.owl_individual.OWLNamedIndividual, None, None]