owlapy
Submodules
- owlapy.abstracts
- owlapy.class_expression
- owlapy.converter
- owlapy.entities
- owlapy.iri
- owlapy.meta_classes
- owlapy.namespaces
- owlapy.owl_annotation
- owlapy.owl_axiom
- owlapy.owl_data_ranges
- owlapy.owl_datatype
- owlapy.owl_hierarchy
- owlapy.owl_individual
- owlapy.owl_literal
- owlapy.owl_object
- owlapy.owl_ontology
- owlapy.owl_property
- owlapy.owl_reasoner
- owlapy.owlapi_mapper
- owlapy.parser
- owlapy.providers
- owlapy.render
- owlapy.static_funcs
- owlapy.util_owl_static_funcs
- owlapy.utils
- owlapy.vocab
Functions
|
|
|
|
|
|
|
|
|
Convert an OWL Class Expression (https://www.w3.org/TR/owl2-syntax/#Class_Expressions) into a SPARQL query |
Convert an OWL Class Expression (https://www.w3.org/TR/owl2-syntax/#Class_Expressions) into a SPARQL query |
Package Contents
- owlapy.owl_expression_to_dl(o: owlapy.owl_object.OWLObject) str [source]
- owlapy.owl_expression_to_manchester(o: owlapy.owl_object.OWLObject) str [source]
- owlapy.owl_expression_to_sparql(expression: owlapy.class_expression.OWLClassExpression = None, root_variable: str = '?x', values: Iterable[owlapy.owl_individual.OWLNamedIndividual] | None = None, for_all_de_morgan: bool = True, named_individuals: bool = False) str [source]
Convert an OWL Class Expression (https://www.w3.org/TR/owl2-syntax/#Class_Expressions) into a SPARQL query root variable: the variable that will be projected expression: the class expression to be transformed to a SPARQL query
values: positive or negative examples from a class expression problem. Unclear for_all_de_morgan: if set to True, the SPARQL mapping will use the mapping containing the nested FILTER NOT EXISTS patterns for the universal quantifier (¬(∃r.¬C)), instead of the counting query named_individuals: if set to True, the generated SPARQL query will return only entities that are instances of owl:NamedIndividual
- owlapy.owl_expression_to_sparql_with_confusion_matrix(expression: owlapy.class_expression.OWLClassExpression, positive_examples: Iterable[owlapy.owl_individual.OWLNamedIndividual] | None, negative_examples: Iterable[owlapy.owl_individual.OWLNamedIndividual] | None, root_variable: str = '?x', for_all_de_morgan: bool = True, named_individuals: bool = False) str [source]
Convert an OWL Class Expression (https://www.w3.org/TR/owl2-syntax/#Class_Expressions) into a SPARQL query root variable: the variable that will be projected expression: the class expression to be transformed to a SPARQL query positive_examples: positive examples from a class expression problem negative_examples: positive examples from a class expression problem for_all_de_morgan: if set to True, the SPARQL mapping will use the mapping containing the nested FILTER NOT EXISTS patterns for the universal quantifier (¬(∃r.¬C)), instead of the counting query named_individuals: if set to True, the generated SPARQL query will return only entities that are instances of owl:NamedIndividual