I am dealing with the streaming data and for that I need to apply some SPARQL type queries. For example, If I have a query like:
Select ?x,?z
FROM <http://dummyURI>
Where { ?x p1 ?y -----(t1)
?x p2 ?z -----(t2)
?z p3 o3 -----(t3)
}
As shown in the query there are three triple patterns (t1, t2, and t3). In the query I observe there are some constraints on variables, i.e., ?x in (t1) should be equal to ?x in (t2) and ?z in (t2) and (t3) should be equal. In my code I can find the triples using some pattern matching corresponding to each triple pattern in query, but how should I ensure the said constraints are satisfied?
I tried to understand how SPARQL engine handles this issue, but it is not mentioned in the following standard resources (res1,res2,res3). Can anyone help me in understanding how should I handle this issue?
Note: I have asked same related question at the link. This question is much more concise as compared to previous one.