I can write a SPARQL query for the above graph as:
select ?a?b?c?d?e
where{
?r rdf:subject <Mr_X>.
?r rdf:predicate <isPresident>.
?r rdf:object <CountryZ>.
?r saidBy ?a.
?r saidOn ?b.
?r saidAt ?c.
?r confidence ?d.
?r comment ?e
}
Can someone please help me write the above query using named graphs in
SPARQL so that I may query over Jena?
On Thu, Oct 31, 2013 at 7:17 PM, Maria Jackson
<[email protected]>wrote:
> I think jena employs named graphs as a way to achieve reification. As
> named graphs can achieve reification by attaching only one statement with
> named graphs.
> Is it possible to express information of the following form using named
> graphs, if yes then can someone please help me write this information using
> named graphs, so that I may import the same into Jena:
>
> _:a rdf:subject "Mr X".
> _:a rdf:predicate "isPresident".
> _:a rdf:object "countryZ".
> _:a saidBy "Tia".
> _:a saidOn "29 October 2013".
> _:a saidAt "New York".
> _:a confidence 0.9.
> _:a comment "This is just a comment by Tia".
>
> Is it possible to write the corresponding query Jena using named graph
> query on the above given data?
>
>
>