Hi Gill,
You've got the right idea. Try this instead:
<rdf:RDF xmlns:rdf="
http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:fedora=
"info:fedora/fedora-system:def/relations-external#">
<rdf:Description rdf:about=
"info:fedora/[PIDofThisObject]">
<fedora:isMemberOfCollection
rdf:resource="info:fedora/nls:100"/>
<fedora:isMemberOfCollection
rdf:resource="info:fedora/nls:101"/>
</rdf:Description>
</rdf:RDF>
This is actually equivalent in meaning to the RDF you posted (which itself
is valid RDF), but RELS-EXT is more constrained than generic RDF: it only
expects a single rdf:Description element because the subject (the thing
you're making statements about) is the same for all statements expressed
within a RELS-EXT datastream.
- Chris
On Wed, Aug 4, 2010 at 12:35 PM, Hamilton, Gill <[email protected]> wrote:
> Hi there
>
>
>
> I need a wee bit of help with my RELS-EXT and RDF. I get the idea that
> RELS-EXT can be used to indicate when an object has a relationship with
> another object. Something like .. “this object” isMemberOfCollection “that
> object”. So, I have realised that sometimes an object will be a member of
> two (or more) collections but not being very experienced with FOXML or RDF I
> wasn’t sure how to encode this. Would this work (below) ?
>
>
>
> Thanks in advance for your help.
>
> Gill
>
>
>
> [to explain: The object nls:100 is the Super collection (NLS digital
> repository) everything in the repository would need to be a member of that
> collection and object nls:101 is our Scottish Govt electronic publications]
>
>
>
> <foxml:datastream ID="RELS-EXT" CONTROL_GROUP="X">
> <foxml:datastreamVersion FORMAT_URI=
> "info:fedora/fedora-system:FedoraRELSExt-1.0"
> ID="RELS-EXT.0" MIMETYPE="application/rdf+xml"
> LABEL="relationships">
> <foxml:xmlContent>
> <rdf:RDF xmlns:rdf="
> http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
> xmlns:fedora=
> "info:fedora/fedora-system:def/relations-external#">
>
>
> <rdf:Description rdf:about=
> "info:fedora/[PIDofThisObject]">
> <fedora:isMemberOfCollection
> rdf:resource="info:fedora/nls:100"/>
> </rdf:Description>
>
> <rdf:Description rdf:about=
> "info:fedora/[PIDofThisObject]">
> <fedora:isMemberOfCollection
> rdf:resource="info:fedora/nls:101"/>
> </rdf:Description>
>
> </rdf:RDF>
> </foxml:xmlContent>
> </foxml:datastreamVersion>
> </foxml:datastream>
>
>
>
> ---------------------------------------------------
> Gill Hamilton
> Systems Librarian
> National Library of Scotland
> George IV Bridge
> Edinburgh EH1 1EW
> Scotland, UK
>
> e: [email protected]
> skype: gill.hamilton.nls
> t: +44 (0)131-623 3774
> w: http://www.nls.uk
>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users