Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Title (goal)
 Obtain filtered list of objects
Primary Actor adminstrator 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 SPARQL 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.

Title (goal)
 Obtain list of objects that contain a given datastream
Primary Actor administrator, consuming applications
Scope component
Level 
Story

An administrator or piece of software needs to get a list of all the objects that contain a given datastream.

They run the following iTQL query against the Resource Index to find all objects that contain a MASTER datastream:

select $obj $ds from <#ri>
where $obj <info:fedora/fedora-system:def/view#disseminates> $ds
and $ds <info:fedora/fedora-system:def/view#disseminationType> <info:fedora/*/MASTER> in <#ri>

Other Use Cases of Interest

...