Use Case 2:  Resource Index/Triplestore queries

Title (goal)
 Obtain filtered list of objects
Primary Actor administrator, consuming applications
Scope component
Level 
Story

An administrator or piece of software needs to get a list of all the top-level objects in a particular collection, or created under the auspices of a given project.

They run the following ITQL query against the Resource Index:

select $fco from <#ri>
where $fco <info:fedora/fedora-system:def/model#hasModel> <info:fedora/1711.dl:CModelFirstClassObject>
and $fco <http://digital.library.wisc.edu/1711.dl/rdf/1.0/relations#isMemberOfProject> <hdl:1711.dl/AfricaFocus>

where the project ID is "AfricaFocus".

Alternatively:

select $fco from <#ri>
where $fco <info:fedora/fedora-system:def/model#hasModel> <info:fedora/1711.dl:CModelFirstClassObject>
and $fco <info:fedora/fedora-system:def/relations-external#isMemberOfCollection> <info:fedora/1711.dl:CollectionHLATextile>

where the collection ID is "CollectionHLATextile".

As a variation, the actor may just retrieve count of objects that match the criteria.

5 Comments

  1. Unknown User (escowles@ucsd.edu)

    I think this use case is satisfied by the external triplestore functionality documented in SPARQL Recipes.

  2. Scott Prater can you test this out and verify whether or not this use case is satisfied as of 4.0-Alpha-4?

    1. Scott Prater have you had a chance to take a look at this one?