Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Adding note about Mulgara walk() and linking to SPARQL 1.1 and Jena docs

...

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
languagesql
title3f. Select Objects Directly Or Indirectly Linked To A Collection
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 }
}

...