I'm trying to understand blank nodes in turtle correctly, and I need to know if I have understood them correctly.
Suppose we had a turtle file:
@prefix sn: <....some uri...> .
_:a sn:name "person1";
sn:email "email1@test.com" .
_:b sn:name "person2";
sn:email "email2@test.com" .
_:c sn:name "person3" .
and we have SPARQL query:
PREFIX sn: <...some uri...>
SELECT ?email WHERE {
?x sn:name "person1" .
?x sn:email ?email .
}
This would only return the email of person 1, because ?x
binds to the blank node label _:a
... So my question is if an undefined variable ?x
can still bind to a blank node that has a label, just like it would if it was not blank... So in this example, return will be:
email
--------------------------
<mailto:email1@test.com> |
Would that be correct? Thanks.