Hi Tobias

You need to use the fully-qualified name; namespace-prefixed names won't
work correctly in the relationships methods.

So your predicate

fedora:hasDerivation

Should instead be

info:fedora/fedora-system:def/relations-external#hasDerivation

Steve

> -----Original Message-----
> From: Tobias Schmidt [mailto:tobias.schm...@kit.edu] 
> Sent: 08 September 2011 08:21
> To: fedora-commons-users@lists.sourceforge.net
> Subject: [fcrepo-user] Fedora namespace in addRelationship
> 
> 
> Hi,
> 
> I,m trying to add a relationship with predicate e.g 
> "fedora:hasDerivation", where namespace "fedora" should reference to 
> internal scheme "info:fedora/fedora-system:def/relations-external#". 
> Please find below there is the definition of namespace 
> "fedora" but no 
> scheme reference! What I'm doing wrong?!
> 
> _Requested resource:_ 
> http://localhost:8080/fedora/objects/TestIngest:testSubject/re
lationships/new?subject=info:fedora/TestIngest:testSubject&predicate=fedora:
hasDerivation&object=info:fedora/TestIngest:testObject

_Result of RELS-EXT after request_:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>

<rdf:Description rdf:about="info:fedora/TestIngest:testSubject">
        <hasDerivation xmlns="fedora:" 
rdf:resource="info:fedora/TestIngest:testObject"></hasDerivation>
</rdf:Description>

</rdf:RDF>

Regards,
Tobias Schmidt



------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to