Re: Create dinamically SPARQL query and work with the result as owlready object
Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Create-dinamically-SPARQL-query-and-work-with-the-result-as-owlready-object-tp863p919.html
Hi,
If you use default_world.as_rdflib_graph().query_owlready(), it returns the results as Python datatypes and/or references to Owlready objets. You can use the Owlready objects in future SPARQL query by converting thme to IRI and adding "<" and ">" at the extremities, for example "<%s>" % result.iri
Datatype values can directly be included in the request for most datatypes (strings, numbers,...).
Jiba