Re: extract query patterns

2014-08-12 Thread Andy Seaborne
On 12/08/14 11:24, Miguel Bento Alves wrote: Hi Andy, with your example I can extract the triples but I can’t extract the sub-queries. Is there a simple way to extract the sub-queries from a query pattern? Miguel The code needs to walk down the syntax tree from the top looking for ElementS

Re: extract query patterns

2014-08-12 Thread Miguel Bento Alves
Hi Andy, with your example I can extract the triples but I can’t extract the sub-queries. Is there a simple way to extract the sub-queries from a query pattern? Miguel On 08 Aug 2014, at 21:10, Andy Seaborne wrote: > On 08/08/14 10:15, Miguel Bento Alves wrote: >> Hi all, >> >> In a Sparql

Re: extract query patterns

2014-08-08 Thread Andy Seaborne
On 08/08/14 10:15, Miguel Bento Alves wrote: Hi all, In a Sparql query, we can extract the query pattern ( q.getQueryPattern() ). For instance, in the sparql command: Select ?x ?p ?z where {?x ?p ?y . ?x ?z.} we can extract: { ?x ?p ?y . ?x ?z } Is there any

extract query patterns

2014-08-08 Thread Miguel Bento Alves
Hi all, In a Sparql query, we can extract the query pattern ( q.getQueryPattern() ). For instance, in the sparql command: Select ?x ?p ?z where {?x ?p ?y . ?x ?z.} we can extract: { ?x ?p ?y . ?x ?z } Is there anyway to extract as TriplePattern? Also, we ca