Hi everyone, two SPARQL queries which I assumed are the same give different 
results in Apache Jena. The two queries are:

SELECT * WHERE {
<https://www.tno.nl/kb1/meta/knowledgeinteractions/react/changed/act/requirement>
 a  ?someClass
FILTER NOT EXISTS {
<https://www.tno.nl/kb2/meta/knowledgeinteractions/post/new/act/satisfaction> a 
 ?someClass
}
}

SELECT * WHERE
{
?req a  ?someClass
FILTER NOT EXISTS {
?sat a  ?someClass
}
}
VALUES (?req ?sat) {
(<https://www.tno.nl/kb1/meta/knowledgeinteractions/react/changed/act/requirement>
 <https://www.tno.nl/kb2/meta/knowledgeinteractions/post/new/act/satisfaction>)
}

Note that the queries are basically the same, but the second query uses the 
VALUES keyword to bind the ?req and ?sat variables, while the first query 
replaces the actual ?req and ?sat variables occurrences instead.

Does anyone know what I am missing?

Best regards,

Barry
This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. TNO accepts no liability 
for the content of this e-mail, for the manner in which you use it and for 
damage of any kind resulting from the risks inherent to the electronic 
transmission of messages.

Reply via email to