How to fill objects with RDF2Go?

16 views
Skip to first unread message

Mert Usta

unread,
Dec 4, 2012, 3:47:03 AM12/4/12
to semw...@googlegroups.com
I've been trying to make use of RDFReactor and RDF2Go together on freebase rdf results.
The thing is, I've created all the classes in freebase's schema using RDFReactor.generator and did the same for a rdf result coming from freebase.
Then I stuck, because I can't let's say create a Film class and fill the object using RDF2Go, maybe it's not even possible.
But if someone can point me a direction I would seriously appreciate it :)

Mert.

Mert Usta

unread,
Dec 4, 2012, 4:31:58 AM12/4/12
to semw...@googlegroups.com
Such as:

Film_film film1 = new Film_film(model, true);

I have a text file in rdf format --> result.rdf.
Film_film class is generated when I call RDFReactor.generator on result.rdf.

model is again read from the same result.rdf

But I can't do anything with this film1 object.


xamde

unread,
Dec 4, 2012, 4:48:57 AM12/4/12
to semw...@googlegroups.com
Did using a different constructor like new Film( model, uri) helped?

See also Film.getAllInstances() for the existing uris you can use.

Mert Usta

unread,
Dec 4, 2012, 6:48:56 AM12/4/12
to semw...@googlegroups.com
It worked, not as a whole but I think I'm getting to a point I want.
I could have obtained directors etc.

But what if I want to call all of the getters once (for a mapping lets say) is that possible?
If not, what about reflection?

4 Aralık 2012 Salı 11:48:57 UTC+2 tarihinde xamde yazdı:
Reply all
Reply to author
Forward
0 new messages