Commit 75230068 authored by Niklas Baumbach's avatar Niklas Baumbach Committed by Philipp Matthias Schäfer

Updated documentation of Query

parent 69920f5c
......@@ -5,6 +5,8 @@ OnToCode's queries specify SPARQL_\\-queries that are run by
:ref:`instantiations<instantiations>` against
:ref:`loaded ontologies<ontology-locators>`. A query returns a list of
dictionaries with variable names as keys and Owlready2_ objects as values.
XML Schema datatypes are represented by their IRIs as strings instead of as
Owlready2_ objects.
.. _SPARQL: https://www.w3.org/TR/rdf-sparql-query/
.. _Owlready2: https://pypi.org/project/Owlready2/
......@@ -29,7 +31,9 @@ class Query():
:param owlready2.namespace.World world: an world object
:return: a list of dictionaries with variable names as keys and
Owlready2_ objects as values
Owlready2_ objects as values. XML Schema datatypes are
represented by their IRIs as strings instead of as Owlready2_
objects.
:rtype: list
"""
graph = world.as_rdflib_graph()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment