Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-discuss » Invalid RDF annotations
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Camille Laibe


Posts: 27
Registered:
January 2008
Invalid RDF annotations 18 Jan '08 06:46 Go to previous message

Dear SBML users,

As you are perhaps aware, some annotations in SBML are not valid RDF[1].
If you look at the latest specifications (Level 2 Version 3 Release 2), specially at the page 95: the piece of RDF given as an example for the model creator(s) contains several mistakes.
Let's take the model BIOMD0000000007 (from BioModels Database, cf. http://www.ebi.ac.uk/compneur-srv/biomodels/models-main/publ/BIOMD0000000007.xml) as our example (it follows the syntax given on the page 95 of the specs).

Here is the part of the annotation about the creator(s) (we only focus on the creators' part: the only one which is invalid):

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/" xmlns:bqmodel="http://biomodels.net/model-qualifiers/" >
<rdf:Description rdf:about="#_000001">
<dc:creator rdf:parseType="Resource">
<rdf:Bag>
<rdf:li rdf:parseType="Resource">
<vCard:N rdf:parseType="Resource">
<vCard:Family>Shapiro</vCard:Family>
<vCard:Given>Bruce</vCard:Given>
</vCard:N>
<vCard:EMAIL>bshapiro@jpl.nasa.gov</vCard:EMAIL>
<vCard:ORG>
<vCard:Orgname>NASA Jet Propulsion Laboratory</vCard:Orgname>
</vCard:ORG>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<vCard:N rdf:parseType="Resource">
<vCard:Family>Le Novere</vCard:Family>
<vCard:Given>Nicolas</vCard:Given>
</vCard:N>
<vCard:EMAIL>lenov@ebi.ac.uk</vCard:EMAIL>
<vCard:ORG>
<vCard:Orgname>EMBL-EBI</vCard:Orgname>
</vCard:ORG>
</rdf:li>
</rdf:Bag>
</dc:creator>
[...]
</rdf:Description>
</rdf:RDF>

If you check the validation of these lines (without the [...]), you will notice that several elements generate errors messages by the validator.

Here are one valid syntax for this case:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/" xmlns:bqmodel="http://biomodels.net/model-qualifiers/" >
<rdf:Description rdf:about="#_000001">
<dc:creator>
<rdf:Bag>
<rdf:li rdf:parseType="Resource">
<vCard:N rdf:parseType="Resource">
<vCard:Family>Shapiro</vCard:Family>
<vCard:Given>Bruce</vCard:Given>
</vCard:N>
<vCard:EMAIL>bshapiro@jpl.nasa.gov</vCard:EMAIL>
<vCard:ORG rdf:parseType="Resource">
<vCard:Orgname>NASA Jet Propulsion Laboratory</vCard:Orgname>
</vCard:ORG>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<vCard:N rdf:parseType="Resource">
<vCard:Family>Le Novere</vCard:Family>
<vCard:Given>Nicolas</vCard:Given>
</vCard:N>
<vCard:EMAIL>lenov@ebi.ac.uk</vCard:EMAIL>
<vCard:ORG rdf:parseType="Resource">
<vCard:Orgname>EMBL-EBI</vCard:Orgname>
</vCard:ORG>
</rdf:li>
</rdf:Bag>
</dc:creator>
</rdf:Description>
</rdf:RDF>

Two things have been done:
- remove rdf:parseType="Resource" from <dc:creator>, cf. http://www.w3.org/TR/REC-rdf-syntax/#containers
- add rdf:parseType="Resource" to all the <vCard:N> (like it is done for the <vCard:N>), cf. http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-parsetype-resource


We can also separate the definition of each creator (with this solution, each creator has a URI):

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/" xmlns:bqmodel="http://biomodels.net/model-qualifiers/" >
<rdf:Description rdf:about="#_000001">
<dc:creator>
<rdf:Bag>
<rdf:li rdf:resource="Author01" />
<rdf:li rdf:resource="Author02" />
</rdf:Bag>
</dc:creator>
</rdf:Description>

<rdf:Description rdf:about="Author01">
<vCard:N rdf:parseType="Resource">
<vCard:Family>Shapiro</vCard:Family>
<vCard:Given>Bruce</vCard:Given>
</vCard:N>
<vCard:EMAIL>bshapiro@jpl.nasa.gov</vCard:EMAIL>
<vCard:ORG rdf:parseType="Resource">
<vCard:Orgname>NASA Jet Propulsion Laboratory</vCard:Orgname>
</vCard:ORG>
</rdf:Description>

<rdf:Description rdf:about="Author02">
<vCard:N rdf:parseType="Resource">
<vCard:Family>Le Novere</vCard:Family>
<vCard:Given>Nicolas</vCard:Given>
</vCard:N>
<vCard:EMAIL>lenov@ebi.ac.uk</vCard:EMAIL>
<vCard:ORG rdf:parseType="Resource">
<vCard:Orgname>EMBL-EBI</vCard:Orgname>
</vCard:ORG>
</rdf:Description>
</rdf:RDF>


There is another point (even if I don't know if SBML wants it or even needs it): with a rdf:Bag (or any other Container) you can't close the list (i.e. say "these are *all* the members of the container"), using a Collection instead of a Container would solve that (cf. http://www.w3.org/TR/rdf-primer/#collections).


Although I took time to look at the syntax and grammar of RDF, I'm not a specialist of it. Therefore some mistakes may still remain, even if these solutions are valid. I would appreciate to have your comments and corrections about this matter.
Thank you.


[1] http://www.w3.org/RDF/Validator/


P.S.
While thinking about this issue, I noticed some very small typos in the specifications:
- p. 127, l. 5: There are two consecutive 'a'.
- p. 127, l. 11: The line number indicated should be 24 (according to the SBML specs document lines) or 12 (according to the Schema document lines), but not 27.
Hope that will help.


--
Camille Laibe
Software Developer (Computational Neurobiology),
European Bioinformatics Institute, Cambridge (UK).
____________________________________________________________
To manage your sbml-discuss list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/sbml-discuss

For a web interface to the sbml-discuss mailing list, visit
http://sbml.org/forums/

For questions or feedback about the sbml-discuss list,
contact sbml-team@caltech.edu.

      

SubjectPosterDate
Read Message   Invalid RDF annotations  Camille Laibe18 Jan '08 06:46
Read Message   Re: Invalid RDF annotations Nicolas Le Novere18 Jan '08 08:46
Read Message   Re: Invalid RDF annotations Mike Hucka05 Apr '08 20:43
Read Message   Re: Invalid RDF annotations Camille Laibe07 Apr '08 08:30
Read Message   (no subject) Mickie07 Apr '08 16:41
Read Message   Re: Invalid RDF annotations Mike Hucka07 Apr '08 18:11
Previous Topic:MIRIAM URIs
Next Topic:SBW 2.7.7 released
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.