...
Find objects directly or indirectly attached (recursive retrieval along the rels:hasPart chain):. Applications developed using Fedora 3 may use Mulgara's walk() function for queries that navigate a hierarchy. That functionality is now part of standard SPARQL 1.1 (Jena's property paths documentation provides some good examples).
Code Block | ||||
---|---|---|---|---|
| ||||
prefix rels: <http://fedora.info/definitions/v4/rels-ext#> select ?obj where { { ?obj rels:isMemberOfCollection <http://localhost:8080/rest/objects/col1> } UNION { <http://localhost:8080/rest/objects/col1> rels:hasPart+ ?col . ?obj rels:isMemberOfCollection ?col } } |
...