Eddy Vanderlinden wrote:
> Hello,
> 
> Sorry for my 2 stupid questions which will have a sound and simple reply
> but I no-where found any answer in the documentation.
> 
> 1. A simple SPARQL select query:
> I've been running similar to the next query, in hundreds of variants
> (with parameters) but I don't get a reply in Virtuoso:
> 
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> SELECT ?s ?p ?pl ?o
> where {
> <#SdnEntry_2786786> ?p ?o .
> ?p rdfs:label ?pl .
> }
> The aim is just to get the labels of the properties in the output.
> The query runs successfully in other SPARQL engines with the same data.
> 
> When I make the union:
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> SELECT ?s ?p ?pl ?o
> where {
> {<#SdnEntry_2786786> ?p ?o}
> UNION
> {?p rdfs:label ?pl}
> }
> I get the pairs property/value and property/label separately.
> So, I can't filter the result neither.
> 
> My question: what am I missing here ?

newb myself, but looks like you've got select ?s but no ?s param in the
query(ies)

regards!

Reply via email to