ontolearn.learners.sparql_query_learner

Classes

SPARQLQueryLearner

Learning SPARQL queries: Given a description logic concept (potentially generated by a concept learner),

Module Contents

class ontolearn.learners.sparql_query_learner.SPARQLQueryLearner(learning_problem: PosNegLPStandard, endpoint_url: str, max_number_of_filters: int = 3, use_complex_filters: bool = True)[source]

Learning SPARQL queries: Given a description logic concept (potentially generated by a concept learner), try to improve the fittness (e.g., F1) of the corresponding SPARQL query.

Attributes:

name (str): Name of the model = ‘SPARQL Query Learner’ endpoint_url (string): The URL of the SPARQL endpoint to use max_number_of_filters (int): Limit the number of filters combined during the improvement process learning_problem (PosNegLPStandard): the learning problem (sets of positive and negative examples) uses_complex_filters (bool): Denotes whether the learner uses complex filters

(i.e., makes use of the values of data properties) to improve the quality

_root_var (str): The root variable to be used in the OWL2SPARQL conversion _possible_filters (List[str]): A list of possible FILTERs to use to improve the quality

__slots__ = ('endpoint_url', 'max_number_of_filters', 'uses_complex_filters', 'learning_problem',...
name = 'SPARQL Query Learner'
endpoint_url: str
max_number_of_filters: int
learning_problem: PosNegLPStandard
uses_complex_filters: bool
learn_sparql_query(ce: owlapy.class_expression.OWLClassExpression)[source]