Skip to content

Commit

Permalink
Merge pull request #10 from dice-group/versioning
Browse files Browse the repository at this point in the history
Versioning
  • Loading branch information
Demirrr authored Mar 29, 2024
2 parents 9682754 + 2901c30 commit 512e489
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion owlapy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.2'
__version__ = '0.1.3'
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)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
name="owlapy",
description="Owlapy is loosely based on owlapi - the java counterpart, "
"successfully representing the main owl objects in python.",
version="0.1.2",
version="0.1.3",
packages=find_packages(),
install_requires=[
"pandas>=1.5.0",
Expand Down

0 comments on commit 512e489

Please sign in to comment.