Child pages
  • Fedora Resource Index

Versions Compared


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


Select objects, modification dates, and titles. Start with the 50th Fedora object, and get the next 25 objects:

No Format

select     $object $modified $title $type
from       <#ri>
where      $object <rdf:type> $type
and        $object <rdf:type> <fedora-model:FedoraObject>
and        $object <fedora-view:lastModifiedDate> $modified
and        $object <dc:title> $title
order by   $title $object
limit      25
offset     50

Count all objects that are members of the collection object iudl:10:

No Format

select count(
  select  $object
  from    <#ri>
  where   $object
from <#ri>
where $a $b $c

Get all collection objects:

No Format

select  $object
from    <#ri>
where   $object

Get the status of the OVERVIEW datastream:

No Format

select  $state
from    <#ri>
where   <info:fedora/iudl:99732/OVERVIEW>

Find all inactive items:

No Format

select  $object
from    <#ri>
where   $object

Find the OwnerID for an item:

No Format

select  $ownerId
from    <#ri>
where   <info:fedora/iudl:200332>

Encoding queries as URLs

All RI queries must be URL-encoded (with a tool like this one) before being added to a behavior mechanism. To manually encode a query, make the following substitutions:



















<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e14bc280b202a17e-a156571c-4fce4774-9ba681bd-56b12bc692a592af8ef4e0e6"><ac:plain-text-body><![CDATA[




Do not encode the parentheses around any parameters that you want Fedora to pass in. The encoded query should be placed after a suitable base URL like

No Format

If no datastream parameters are being passed, remember to include a "nullbind" parameter (see Behavior Mechanisms for more detail on this). Here is a completed query that searches for the pages of a given object (linebreaks added for readability):

No Format