문제

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ş

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top