Sorry for posting in the wrong place, I was so concerned about asking, that
I didn't realize.

Thank you very much for the help.


2013/11/8 Joshua TAYLOR <joshuaaa...@gmail.com>

> On Fri, Nov 8, 2013 at 7:50 AM, Luciane Monteiro <luciane....@gmail.com>
> wrote:
> > Model model = ModelFactory.createDefaultModel();
> > model.read( "http://dbpedia.org/resource/Google"; );
>
> I doubt a Jena question really belongs on the DBpedia mailing list.
> This question doesn't essentially depend on DBpedia at all;  it's just
> about retrieving some data using Jena and then querying a Jena model.
> It would be more appropriate to ask on the Jena users mailing list.
>
> At any rate, Once you have the model, and since you know that the
> resource is http://dbpedia.org/resource/Google, you'd do something
> like this (untested):
>
> Resource google = model.createResource( "
> http://dbpedia.org/resource/Google"; );
> StmtIterator stmts = google.listProperties( RDFS.comment );
> while ( stmts.hasNext() ) {
>   Statement stmt = stmts.next();
>   RDFNode comment = stmt.getObject();
>   /* do something with the comment */
> }
>
> //JT
>
> --
> Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
>
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to