On 24/03/12 18:56, dafNi wrote:
hello everyone!
I'm a newbie in Jena API and I am dealing with this problem:
A have the class "Car", the class "Car_manufacturer" and the
property "madeBy" => ( Car, madeBy, Car_manufacturer )
I also have defined 2 instances: "car1" of class Car and
"BMW" for class Car_manufacturer.
I was wondering, if by having the individual "car1", I can get
"BMW" via property "madeBy"
Yes - use Resource.getProperty.
See the RDF tutorial
http://incubator.apache.org/jena/tutorials/
You may find it useful to start by reading in the RDF and output it as
N-triples or Turtle to see the structure as triples.
Andy
Thank you very much !