ontolearn.owl_neural_reasoner

Classes

TripleStoreNeuralReasoner

OWL Neural Reasoner uses a neural link predictor to retrieve instances of an OWL Class Expression

Functions

is_valid_entity(text_input)

Module Contents

ontolearn.owl_neural_reasoner.is_valid_entity(text_input: str)[source]
class ontolearn.owl_neural_reasoner.TripleStoreNeuralReasoner(path_of_kb: str = None, path_neural_embedding: str = None, gamma: float = 0.25, max_cache_size: int = 2**20)[source]

OWL Neural Reasoner uses a neural link predictor to retrieve instances of an OWL Class Expression

gamma
str_iri_subclassof = 'http://www.w3.org/2000/01/rdf-schema#subClassOf'
str_iri_type = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'
str_iri_owl_class = 'http://www.w3.org/2002/07/owl#Class'
str_iri_object_property = 'http://www.w3.org/2002/07/owl#ObjectProperty'
str_iri_range = 'http://www.w3.org/2000/01/rdf-schema#range'
str_iri_double = 'http://www.w3.org/2001/XMLSchema#double'
str_iri_boolean = 'http://www.w3.org/2001/XMLSchema#boolean'
str_iri_data_property = 'http://www.w3.org/2002/07/owl#DatatypeProperty'
inferred_object_properties = None
inferred_named_owl_classes = None
__str__()[source]
property set_inferred_object_properties
property set_inferred_owl_classes
predict(h: str = None, r: str = None, t: str = None) List[Tuple[str, float]][source]
predict_individuals_of_owl_class(owl_class: owlapy.class_expression.OWLClass) List[owlapy.owl_individual.OWLNamedIndividual][source]
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][source]
classes_in_signature() List[owlapy.class_expression.OWLClass][source]
direct_subconcepts(named_concept: owlapy.class_expression.OWLClass) List[owlapy.class_expression.OWLClass][source]
subconcepts(named_concept: owlapy.class_expression.OWLClass, visited=None) List[owlapy.class_expression.OWLClass][source]
most_general_classes() List[owlapy.class_expression.OWLClass][source]

At least it has single subclass and there is no superclass

least_general_named_concepts() Generator[owlapy.class_expression.OWLClass, None, None][source]

At least it has single superclass and there is no subclass

get_direct_parents(named_concept: owlapy.class_expression.OWLClass) List[owlapy.class_expression.OWLClass][source]
get_type_individuals(individual: str) List[owlapy.class_expression.OWLClass][source]
individuals_in_signature() List[owlapy.owl_individual.OWLNamedIndividual][source]
data_properties_in_signature() List[owlapy.owl_property.OWLDataProperty][source]
object_properties_in_signature() List[owlapy.owl_property.OWLObjectProperty][source]
boolean_data_properties() Generator[owlapy.owl_property.OWLDataProperty, None, None][source]
double_data_properties() List[owlapy.owl_property.OWLDataProperty][source]
individuals(expression: owlapy.class_expression.OWLClassExpression = None, named_individuals: bool = False) Generator[owlapy.owl_individual.OWLNamedIndividual, None, None][source]
instances(expression: owlapy.class_expression.OWLClassExpression, named_individuals=False) Generator[owlapy.owl_individual.OWLNamedIndividual, None, None][source]
get_object_property_values(subject: str, object_property: owlapy.owl_property.OWLObjectProperty = None) List[owlapy.owl_individual.OWLNamedIndividual][source]
get_data_property_values(subject: str, data_property: owlapy.owl_property.OWLDataProperty) Generator[owlapy.owl_literal.OWLLiteral, None, None][source]
get_individuals_with_object_property(object_property: owlapy.owl_property.OWLObjectProperty, obj: owlapy.class_expression.OWLClass) Generator[owlapy.owl_individual.OWLNamedIndividual, None, None][source]