You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Ankur Padia <pa...@gmail.com> on 2014/04/24 10:26:08 UTC
ARQ SPARQL multiple select variable
Hello everyone,
I am trying to execute a query (below)
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT distinct ?s ?p ?o WHERE {
?p rdfs:domain ?s.
?p rdfs:range ?o.
}
It execute without giving any error using ARQ but does not return any
result. I am trying to fetch values from the resultset using get method. I
tried the same query on ontology built using Protege 4.x and I was able to
see answer.
Can any one let me know what is the issue.
Regards,
Ankur Padia.
Re: ARQ SPARQL multiple select variable
Posted by Andy Seaborne <an...@apache.org>.
On 24/04/14 09:26, Ankur Padia wrote:
> Hello everyone,
>
> I am trying to execute a query (below)
>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>
> SELECT distinct ?s ?p ?o WHERE {
> ?p rdfs:domain ?s.
> ?p rdfs:range ?o.
> }
>
> It execute without giving any error using ARQ but does not return any
> result. I am trying to fetch values from the resultset using get method. I
> tried the same query on ontology built using Protege 4.x and I was able to
> see answer.
>
> Can any one let me know what is the issue.
Probably in the data.
Try
SELECT * { ?s ?p ?o } LIMIT 10
>
> Regards,
> Ankur Padia.
>