Dear everybody, I’m learning to use Jena ARQ, and I stumbled upon the following.
I’m trying to re-create query q-ds-4.rq at http://jena.apache.org/tutorials/sparql_datasets.html programmatically using Sparql algebra, but I can’t find any clue in the documentation about how to add the GRAPH parte of the query. As of now, my code looks like this https://gist.github.com/stemar87/c3e8cb6dfee92cd5f7ec8e304823e61f and obviously doesn’t work. Output should be ---------------------------------------------------------------------------------------------------------------------- | date | title | g | ====================================================================================================================== | "2005-09-22T05:53:05+01:00"^^xsd:dateTime | "Harry Potter and the Chamber of Secrets" | :dataset-named-graph-2.ttl | | "2005-09-22T05:53:05+01:00"^^xsd:dateTime | "Harry Potter and the Sorcerer's Stone" | :dataset-named-graph-2.ttl | ---------------------------------------------------------------------------------------------------------------------- But is ---------------------------------------------------------------------------------- | date | title | g | ================================================================================== | "2005-09-22T05:53:05+01:00"^^xsd:dateTime | | :dataset-named-graph-2.ttl | ---------------------------------------------------------------------------------- Any help would be appreciated. I’m also on IRC channel as sm_more. -------------------------------------------------------------------------------------------------------------------- Stefano Mariani, PhD Fixed-term research assistant (post-doc) @ Department of Sciences and Methods for Engineering – University of Modena and Reggio Emilia > [email protected] > http://personale.unimore.it/AddressBook/Home/s.mariani --------------------------------------------------------------------------------------------------------------------
