Re: Making querying of annotations optional

> On 8. Aug 2024, at 18:38, Peter F. Patel-Schneider <pfpschneider@gmail.com> wrote:
> 
> 
> 
> On 8/8/24 12:02, Thomas Lörtsch wrote:
>> tl;dr
>> =====
>> Querying annotated triples seems to always require its own BGP expression, no matter if the triple so annotated exists in the graph or not. It seems like the annotation can never be just an option, added to a query for simple triples.
>> Asked concretely: is there a way to make the ?src information optional in the query using annotation syntax? E.g. something like
>>  SELECT ?x ?age ?src
>>  WHERE { ?x foaf:age ?age  OPTIONAL {| :src ?src |} . }
> 
> But this has two BGPs so an extra BGP is included here.  So what is your point?

If you know of an implementation that supports this syntax, then please provide a pointer.

Thomas

> peter

Received on Friday, 9 August 2024 08:34:29 UTC