G'day,
I've been experimenting with iTQL in FedoraCommons 3.1 and have some
questions about queries involving PIDs.
(1) The query:
select $object from <#ri> where $object <mulgara:is> 'demo'
returns a single element:
<result>
<object>demo</object>
</result>
even though there is no object in the repository with this PID.
I'd like to be able to issue queries like:
select $object $label $identifier $state
from <#ri>
where $object <fedora-model:label> $label
and $object <dc:identifier> $identifier
and $object <fedora-model:state> $state
and $object <mulgara:is> 'demo:10'
This query returns no results even though the PID 'demo:10' exists.
What am I doing wrong?
(2) I'd also like to perform wild-card searches on PIDs; for example
select $object, $label, $identifier
from <#ri>
where $object <fedora-model:label> $label
and $object <dc:identifier> $identifier
and $object <has_pid> 'demo*' in <#ri-fullText>
How does one specify the <has_pid> predicate/property in this query?
The following works quite happily but I'd not like to assume that the DC
identifier always matched the PID.
select $object $label $identifier
from <#ri>
where $object <fedora-model:label> $label
and $object <fedora-model:ownerId> $ownerId
and $object <dc:identifier> $identifier
and $object <dc:identifier> 'demo*' in <#ri-fullText>
TIA muchly!
Janna
------------------------------------------------------------------------------
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users