Hi Alistair
A couple of points that may help (and I think the examples on that page
won't work):
- The relationship to a content model object is not an rdf:type relationship
(in fact it is a property)
-- so I think instead $object <fedora-model:hasModel>
<info:fedora/fedora-system:FedoraObject-3.0> for the part of the where
clause dealing with content models
- There's no entailment/inferencing so I wouldn't expect to see <rdf:type>
where it is used in the query currently
A query that does get the results that seem to be indicated by the query
below is:
- for all types of object:
select $object $modified $title $type
from <#ri>
where $object <fedora-model:hasModel> $type
and $object <fedora-view:lastModifiedDate> $modified
and $object <dc:title> $title
order by $title $object
- for data objects:
select $object $modified $title $type
from <#ri>
where $object <fedora-model:hasModel> $type
and $type <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0>
and $object <fedora-view:lastModifiedDate> $modified
and $object <dc:title> $title
order by $title $object
Regards
Steve
-----Original Message-----
From: Alistair Young [mailto:alistair.yo...@uhi.ac.uk]
Sent: 06 September 2011 09:07
To: Support and info exchange list for Fedora users.
Subject: Re: [fcrepo-user] findObjects via RELS-EXT
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"
Alistair
--
mov eax,1
mov ebx,0
int 80h
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
On 6 Sep 2011, at 08:02, Alistair Young wrote:
As there doesn't seem to be any api for RI search does that mean it's not
possible to search Fedora at all using RELS-EXT? Must I use GSearch instead?
Alistair
--
mov eax,1
mov ebx,0
int 80h
On 5 Sep 2011, at 21:19, Aaron Birkland wrote:
Does anyone know if it's possible to use API-A findObjects to search via
RELS-EXT?
It is not. findObjects queries against the fields table in Fedora's
database. This table is populated in a rather specific manner using
values found throughout a fedora object. The RI search uses the triple
store (NOT the fields table), and is populated in a different manner.
While some values may happen to be indexed in both services, you cannot
use one service to query the contents of the other.
-Aaron
----------------------------------------------------------------------------
--
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
----------------------------------------------------------------------------
--
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