You can use CONSTRUCT as well [1]
e.g.
construct {?s foaf:name ?o}
where { ?s foaf:name ?o . }
Best,
Dimitris
[1] http://www.w3.org/TR/2013/REC-sparql11-query-20130321/#construct
On Mon, Mar 3, 2014 at 4:35 AM, Joshua TAYLOR wrote:
> On Sun, Mar 2, 2014 at 8:42 PM, Kingsley Idehen
> wrote:
On Sun, Mar 2, 2014 at 8:42 PM, Kingsley Idehen wrote:
> When we write a query like:
>
> select ?s,?p,?o where {
> ?s ?p ?o. filter (?p = foaf:name).
> }
>
> Is there a way to write query like following, but still l get ?p or the
> relations connecting the two:
>
> select ?s,?o where
> {
> ?s
On 3/2/14 3:13 AM, Abhishek Gupta wrote:
When we write a query like:
select ?s,?p,?o where {
?s ?p ?o. filter (?p = foaf:name).
}
Is there a way to write query like following, but still l get ?p or
the relations connecting the two:
select ?s,?o where
{
?s foaf:name ?o.
}
select * where
When we write a query like:
select ?s,?p,?o where {
?s ?p ?o. filter (?p = foaf:name).
}
Is there a way to write query like following, but still l get ?p or the
relations connecting the two:
select ?s,?o where
{
?s foaf:name ?o.
}
Motivation is to avoid filters to decrease query times, and