Hi Alistair,

On 8 October 2011 13:04, Alistair Young <alistair.yo...@uhi.ac.uk> wrote:
> given this:
>
> <rdf:Description 
> rdf:about="info:fedora/demo:_3e7189f7a42f4ed7be2969642e469480">
>        <isInCategory 
> xmlns="http://test/ontologies/ltk/relationships#";>demo:category_mindmapping</isInCategory>
> </rdf:Description>
>
> why wouldn't this work?
>
> select $member from <#ri> where $member 
> <http://test/ontologies/ltk/relationships#isInCategory> 
> <info:fedora/demo:category_mindmapping>

It seems that in what you have "demo:category_mindmapping" is a string
(an RDF Literal), not an RDF Resource. The < and > in your query mean
that you ask for a resource (and the URI suggests it is a Fedora
Object).

If there is a Fedora object with PID "demo:category_mindmapping", you
can point to that in the RELS-EXT datastream like this:

<rdf:Description rdf:about="info:fedora/demo:_3e7189f7a42f4ed7be2969642e469480">
       <isInCategory xmlns="http://test/ontologies/ltk/relationships#";
rdf:resource="info:fedora/demo:category_mindmapping"></isInCategory>
</rdf:Description>

I think the query should work then.

>
> thanks,
>
> Alistair
>

Regards,

Ben
> --------------
> mov eax,1
> mov ebx,0
> int 80
>
> On 8 Oct 2011, at 11:40, Alistair Young wrote:
>
>> can't seem to nail this down. This works but doesn't seem to have any way to 
>> specify multiple matches, i.e. more than one object match:
>>
>> * <http://test/ontologies/ltk/relationships#isInCategory> 
>> "demo:category_mindmapping"
>>
>> this works:
>> select $a $r $b from <#ri>
>> where  $a <fedora-model:hasModel> 
>> <info:fedora/fedora-system:FedoraObject-3.0>
>> and    $a $r $b
>>
>> so I thought perhaps this might work, but it produces nothing:
>> select $a $r $b from <#ri>
>> where  $a 
>> <info:fedora/http://test/ontologies/ltk/relationships#isInCategory> 
>> <info:fedora/demo:category_mindmapping>
>> and    $a $r $b
>>
>> this produces nothing (from the docs page):
>> select $a $r $b from <#ri>
>> where  $a <fedora-model:hasModel> 
>> <info:fedora/fedora-system:FedoraObject-3.0>
>> and    $a $r $b
>> and    $b <fedora-model:hasModel> 
>> <info:fedora/fedora-system:FedoraObject-3.0>
>>
>> help please!
>>
>> Alistair
>>
>> --------------
>> mov eax,1
>> mov ebx,0
>> int 80
>>
>> On 8 Oct 2011, at 10:54, Alistair Young wrote:
>>
>>> Is there a way to search for multiple object matches in one go with 
>>> risearch?
>>>
>>> e.g.
>>>
>>> * <http://test/ontologies/relationships#isInCategory> 
>>> "demo:category_mindmapping"
>>> * <http://test/ontologies/relationships#isInCategory> "demo:category_skills"
>>>
>>> is there any way to combine the two searches into one spo query?
>>>
>>> thanks,
>>>
>>> Alistair
>>>
>>> --------------
>>> mov eax,1
>>> mov ebx,0
>>> int 80
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> All of the data generated in your IT infrastructure is seriously valuable.
>>> Why? It contains a definitive record of application performance, security
>>> threats, fraudulent activity, and more. Splunk takes this data and makes
>>> sense of it. IT sense. And common sense.
>>> http://p.sf.net/sfu/splunk-d2dcopy2
>>> _______________________________________________
>>> Fedora-commons-users mailing list
>>> Fedora-commons-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>>
>>
>> ------------------------------------------------------------------------------
>> All of the data generated in your IT infrastructure is seriously valuable.
>> Why? It contains a definitive record of application performance, security
>> threats, fraudulent activity, and more. Splunk takes this data and makes
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2dcopy2
>> _______________________________________________
>> Fedora-commons-users mailing list
>> Fedora-commons-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to