Damned, I'm uncovered... I'm far from being an XML specialist. Moreover,
I've made some copy/paste too fast.
I'm agree with your corrections about namespaces: </cc:isNewVersionOf >
was in fact </myNS:isNewVersionOf >. But when I tried with the Fedora
Admnistrator, the syntax was correct.
My solution will be like yours. I won't be able to have in a single
relationship the version and the number of version... never mind. I will
tell that to my users and we will discuss to find a solution.
Thank you for your answers.
Pierre-Yves
PS (for Asger Blekinge-Rasmussen):
xmlns="info:fedora/fedora-system:def/relations-external#" was the rest
of an ancient copy/paste.
Gramsbergen, Egbert a écrit :
Either way in your example the RELS-EXT contains illegal RDF/XML.
It seems that you want to say two things in one statement but in rdf you
need a separate statement for each thing you want to say. So you need
something like:
<myNS:isNewVersionOf rdf:resource="info:fedora/exemple:A"/>
<myNS:version>2</myNS:version>
assuming this is all within the ref:RDF/rdf:Description element with the
proper namespace declarations.
Here 2 is the "own" version number, not that of the related object (it
is not clear from your example if this is what you mean).
Success, Egbert Gramsbergen
____________________________
Egbert F. Gramsbergen
TU Delft (Library) - Digital Product Development
[email protected] +31(0) 15 27 82922
________________________________
-----Oorspronkelijk bericht-----
Van: Pierre-Yves JALLUD [mailto:[email protected]]
Verzonden: woensdag 10 juni 2009 14:50
Aan: fedora-commons-developers
Onderwerp: [Fedora-commons-developers] Versionning managed with RDF
relations
Hi all,
I'm trying to manage relations between my objects in fedora-commons and
I'm using the RELS-EXT datastream. My problem is that the description of
the relations are very ... limited. Here is my case study:
I have an object A.
B is the new version of A.
C is the older version of the two objects A and B.
I want that all those relations appear on each objects:
- A has two newer versions B and C
- B has an older version (A) and a new version (C)
- C has two older versions (A and B)
I would like to use RELS-EXT with a relationship like:
<myNS:isNewVersionOf myNS:NumVersion="2"
xmlns="info:fedora/fedora-system:def/relations-external#"
rdf:resource="exemple:A"/>
or
<myNS:isNewVersionOf
xmlns="info:fedora/fedora-system:def/relations-external#"
rdf:resource="exemple:A">2</cc:isNewVersionOf>
But "Fedora Administrator" doesn't validate this syntax.
NOTA: I can't use the classic versioning of datastreams because the PID
of the three objects are different.
Has somebody a solution?
Pierre-Yves
begin:vcard
fn:Pierre-Yves JALLUD
n:JALLUD;Pierre-Yves
email;internet:[email protected]
tel;work:04-72-69-52-79
url:http://cc.in2p3.fr
version:2.1
end:vcard
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers