I am quite new to Java Sesame. I am following this tutorial: http://openrdf.callimachus.net/sesame/2.7/docs/users.docbook?view . I know how to create statements and add them into the Sesame repository. At the moment, I am trying to describe classes and properties for the statements I am going to add. For example, I am having the ones below:
:Book rdf:type rdfs:Class .
:bookTitle rdf:type rdf:Property .
:bookTitle rdfs:domain :Book .
:bookTitle rdfs:range rdfs:Literal .
:MyBook rdf:type :Book .
:MyBook :bookTitle "Open RDF" .
As shown, Book
is defined as a Class
. bookTitle
is defined as a Property
. My question is: How can I do this in Java Openrdf
using org.openrdf.model.vocabulary.RDFS
. To clarify the point, Here is another example:
con.add(alice, RDF.TYPE, person);
alice
is a type of person. How can I define person
as a class using org.openrdf.model.vocabulary.RDFS
. Your assistance would be very much appreciated.