Eddie,

That works ! Thanks a lot.

Yatish
________________________________________
From: Edwin Shin [ed...@fedora-commons.org]
Sent: Monday, April 02, 2012 9:34 PM
To: Support and info exchange list for Fedora users.
Subject: Re: [fcrepo-user] How to construct ITQL query on custom relation in    
RELS-EXT datastream

Yatish,

The following should work:

select $object $title from <#ri>
where $object <dc:title> $title
and $object <http://www.myproject.org/relationships#isMyRelationOf> 
<info:fedora/test:1>

If you want to use the shorter, myns:isMyRelationOf, you'll need to declare 
myns as an alias in the ResourceIndex module in fedora.fcfg

Best,
Eddie

On 3 Apr 2012, at 8:59 AM, Yatish Hegde wrote:

> Hi,
>
> I am not sure if it has been already discussed before.
>
> I have a case where I use a custom relation (e.g. <myns:isMyRelationOf 
> rdf:resource="info:fedora/test:1"/>) in the RELS-EXT  datastreams of some 
> objects (with declaration of custom namespace namespace 
> myns=http://www.myproject.org/relationships#). I am not sure how to construct 
> an itql query to get objects on that relation.
>
> I have tried the following queries but failed to get results.
>
> select $object $title from <#ri>
> where $object <dc:title> $title
> and $object <myns:isMyRelationOf> <info:fedora/test:1>
>
> select $object $title from <#ri>
> where $object <dc:title> $title
> and $object <fedora-rels-ext:isMyRelationOf> <info:fedora/test:1>
>
> select $object $title from <#ri>
> where $object <dc:title> $title
> and $object <{ http://www.myproject.org/relationships#}:isMyRelationOf> 
> <info:fedora/test:1>
> (with and without curly braces)
>
> I would appreciate if someone can help me with this.
>
> Thanks,
> Yatish
>
>
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev_______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users



------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to