Search code examples
sparqlallegrograph

pathLength and match functions in Allegrograph


I'm playing around with property paths and i'm using AllegroGraph Server Edition 4.9. I created a sparql query,

select ?y ?x (count(?x) as ?degree) 
where{ 
      {
        ?x $path ?y.
        filter(match($path,foaf:knows))
        filter(pathLength($path) <= 3)
      } 
      UNION 
      {
        ?y $path ?x.
        filter(match($path,foaf:knows))
        filter(pathLength($path) <= 3)
      } 
    } group by ?y ?x.

which i expected to see max 3rd degree relatedness with foaf:knows property. But it gives me match and pathLength functions are not recognised. I think this it is an allegrograph problem. Or maybe my query is wrong. Any one tried pathLengh and match functions on allegrograph?

Thanks

Çağdaş


Solution

  • Sparql 1.1 does not include match and pathLength functions. This is reference of property paths. So its my bad. Hope to see these features in further sparql versions.