[OTDev] Java Examples

Nina Jeliazkova nina at acad.bg
Wed Dec 9 19:49:00 CET 2009


Pantelis,

Just a hint, use RDF querying to ask for feature values for particular
compound. It should not matter whether nodes are anonymous or not.  I'll
try to add more examples.

One option is
StmtIterator iter =  queryObject.listStatements(new
SimpleSelector(subject,predicate,object);

Best regards,
Nina

chung wrote:
> Dear Nina, Tobias,
>  I'm trying to get access to anonymous Resources of an RDF document
> using Jena. I want to iterate over all FeatureValue nodes and read their
> value and the URI of the corresponding compound. Do you have any idea
> how I could do that? 
>
> Is there a way to retrieve these information in a List or via an
> ExtendedIterator somehow? 
>
> Do you think that it would be more convenient if we didn't use anonymous
> nodes. For example, dataEntries could be URIs in the form
> http://opentox.org/dataEntry/xyz ... (Well I'm not either sure about
> that). 
>
> Tobias,  I believe we're also working on parsing RDF documents (i.e.
> using RDF representations to generate weka.core.Instances objects), so
> we could collaborate on that. 
>
> My source code can be found at http://github.com/sopasakis/yaqp .
>
> Best Regards,
> Pantelis
>
> _______________________________________________
> Development mailing list
> Development at opentox.org
> http://www.opentox.org/mailman/listinfo/development
>   




More information about the Development mailing list