Print

Print


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Karen,

> <http://example.org/1>  a bf:Instance,
>      bf:publication [
>          a bf:Provider ;
>          bf:providerDate "1966" ;
>          bf:providerName [ a bf:Organization ; bf:label "Hamlyn" ] ;
>          bf:providerPlace [ a bf:Place ; bf:label "London" ]
>      ] .
> 
> The reason is that you cannot step through blank nodes to select only the
> bf:label for either bf:providerName or bf:providerPlace. This search does not
> work on triples with blank nodes:
> 
> SELECT ?subject ?label
>      WHERE { ?subject bf:providerName ?bnode .
>                   ?bnode bf:label ?label . }

But it is supposed to work by the spec (SPARQL 1.1)!


And also with blank nodes in the query:

SELECT ?subject ?label
     WHERE { ?subject bf:providerName [ bf:label ?label .] . }


and thirdly with "predicate paths":

SELECT ?subject ?label
     WHERE { ?subject bf:providerName/bf:label ?label . }


viele Gruesse
Thomas Berger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iJwEAQECAAYFAlPbt68ACgkQYhMlmJ6W47PMHAP/YQQ+WObVBDk5VP/exerBnpGL
3AOZqEb9FzvEmsD6IiZo9RnIdFkagPWg1s3r6q2mW5Ye+IvVojsucc5aZucnHy2t
NfFrHdHTKRNReaenLXnIGUe90udHynWDjy83q3u/XOR1jR6raQlyfTmnWWie1fA5
doOeWsW5xsdRgZHqQss=
=AaOY
-----END PGP SIGNATURE-----