{"id":2940,"date":"2017-06-09T19:10:06","date_gmt":"2017-06-09T19:10:06","guid":{"rendered":"https:\/\/notebooks.dataone.org\/?p=2940"},"modified":"2017-06-09T19:10:06","modified_gmt":"2017-06-09T19:10:06","slug":"prospective-and-retrospective-provenance-queries-week-3-sparql-recursive-queries","status":"publish","type":"post","link":"https:\/\/notebooks.dataone.org\/prov-queries\/prospective-and-retrospective-provenance-queries-week-3-sparql-recursive-queries\/","title":{"rendered":"Prospective and Retrospective Provenance Queries: Week 3 \u2013 SPARQL Recursive Queries"},"content":{"rendered":"
Hi everyone,<\/p>\n
It’s Linh Hoang from Project 3. This week, I spent most of my time to read papers and also ran some experiments to explore SPARQL recursive queries capability. The objective is to be able to run standard recursive queries in SPARQL.<\/p>\n
We found “property path” is a way to implement recursion in SPARQL and tried to test this function in some of our examples. One of the classic example is to find the\u00a0descendants of a person in a family tree (which is represented in RDF format). Recursive query will take the name of top person, run the query first time to get all of the children of that person. And then the query will recursively run again multiple times with the children as new inputs to get the grand children and so on. SPARQL query is able to execute this recursion easily with syntax look like: ?parent relationship:parent+ ?child. In conclusion, property path allows us to detect all the possible paths that connect 2 nodes in our graph, regardless what are in between the two nodes as long as the connects are there.<\/p>\n
Come back with our YesWorkflow model, after thoroughly understand how to use property path in SPARQL, we are able to run recursive queries in our YW model to retrieve provenance information. We translated previous queries done iin Prolog and Datalog into SPARQL and tested the results. We also tried with more complex queries to test property path capability and got some positive results.<\/p>\n
More exciting SPARQL experiments to come!<\/p>\n
Linh<\/p>\n","protected":false},"excerpt":{"rendered":"
Hi everyone, It’s Linh Hoang from Project 3. This week, I spent most of my time to read papers and also ran some experiments to explore SPARQL recursive queries capability. The objective is to be able to run standard recursive queries in SPARQL. We found “property path” is a way Continue reading Prospective and Retrospective Provenance Queries: Week 3 \u2013 SPARQL Recursive Queries<\/span>