Question

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ş

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top