On 09/06/2011 10:47 AM, Ben Companjen wrote:
> On 6 September 2011 10:07, Alistair Young<alistair.yo...@uhi.ac.uk>  wrote:
>> this might seem like a daft Q but how does one get the risearch to work?
>> as per:
>> https://wiki.dlib.indiana.edu/display/INF/Fedora+Resource+Index
>>
>> 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
>> produces:
>> "object","modified","title","type"
First, <rdf:type> is not supported in fedora. The query should be

select     $object $modified $title $type
from<#ri>
where      $object<fedora-model:hasModel>  $type
and        $object<fedora-model:hasModel>  <fedora:FedoraObject-3.0>
and        $object<fedora-view:lastModifiedDate>  $modified
and        $object<dc:title>  $title
order by   $title $object


Regards

> It seems that your query produces an empty resultset. The strings are
> the column headings. Have you tried the example on the RI Search page?
> https://wiki.duraspace.org/display/FEDORA35/Resource+Index+Search
>
>> Alistair
>> --
>> mov eax,1
>> mov ebx,0
>> int 80h
>>
> Regards,
>
> Ben
>
>> On 6 Sep 2011, at 08:06, Alistair Young wrote:
>>
>> sorry, scratch that. I think this is what I need:
>>
>> https://wiki.duraspace.org/display/FEDORA35/Resource+Index+Search
>>
>> ------------------------------------
>> Alistair Young
>> Àrd-Innleadair air Bathar-Bog
>> UHI@Sabhal Mòr Ostaig
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to