Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » jsbml-development » Re: jSBML & RDF
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
rodrigue


Posts: 307
Location:
Cambridge UK
Registered:
February 2005
Re: jSBML & RDF 09 Feb '12 05:14 Go to previous message

On 09/02/12 12:35, Martijn van Iersel wrote:
> Dear Nico
>
> I have a question on jSBML: is there a code example, or documentation,
> describing how to parse RDF annotations in SBML?
>
> My particular problem is that I want to extract the Kegg compound
> identifiers from QualitativeSpecies from path2models files.
>

So the offical RDF annotation is already parsed into objects.
I am not quite sure how much javadoc we put in the jsbml class but you
can anyway look at the libsbml documentation :

http://sbml.org/Software/libSBML/docs/java-api/org/sbml/libsbml/CVTerm.html

Basicaly, any SBase object can have some CVTerms. One CVTerm correspond
to one qualifier with a list of uris (called resources). These
interfaces are not really
too nice to use but we tried to stay close to the libSBML api for those.

To look for some specific annotation, you can use the filterCVTerms
methods that are available on any SBase in JSBML.

see
http://sbml.org/Special/Software/JSBML/build/apidocs/org/sbml/jsbml/SBase.html


If you want to work on some other part of the annotation, the method
SBase.getAnnotationString() will
return the complete annotation as XML, including the SBML RDF part.
If you just want anything but the RDF, use
SBase.getAnnotation().getNonRDFannotation()

Hope this make things a bit clearer,
Cheers,
Nico



____________________________________________________________
To manage your jsbml-development list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/jsbml-development

For a web interface to the jsbml-development mailing list, visit
http://sbml.org/Forums/

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

      

SubjectPosterDate
Read Message   Re: jSBML & RDF  rodrigue09 Feb '12 05:14
Read Message   Re: jSBML & RDF rodrigue10 Feb '12 03:03
Previous Topic:Extracting RDF information from annotation
Next Topic:Building jsbml src code
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.