Skip to content

Commit

Permalink
default params added in owl_expression_to_sparql
Browse files Browse the repository at this point in the history
  • Loading branch information
Demirrr committed Mar 29, 2024
1 parent c41d93c commit 2901c30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions owlapy/owl2sparql/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,10 @@ def as_query(self,
converter = Owl2SparqlConverter()


def owl_expression_to_sparql(root_variable: str,
ce: OWLClassExpression,
def owl_expression_to_sparql(root_variable: str = "?x",
ce: OWLClassExpression = None,
count: bool = False,
values: Optional[Iterable[OWLNamedIndividual]] = None,
named_individuals: bool = False):
named_individuals: bool = False)->str:
"""Convert an OWL Class Expression (https://www.w3.org/TR/owl2-syntax/#Class_Expressions) into a SPARQL query"""
return converter.as_query(root_variable, ce, count, values, named_individuals)

0 comments on commit 2901c30

Please sign in to comment.