views:

128

answers:

2

i'm new to jena and protege.i did some stuff with these. i have some problems::

1) Do i need to use sparql query to get the ontology classes,subclasses,property and values? or can do it with owl-api? can u show me the way? 2) how to get the data property values? 3) how to i load the ontology that define in my local machine and access the classes ?

thanks:::

A: 

The Jena Ontology API is great for getting individual classes, properties, and their details and relationships.

SPARQL queries are great for querying a large number of instances and filter out only the bits of information (including their property values) that you need.

For your other questions, reading a bit of the documentation might help! The answers are in here:

cygri
thanks for your reply:::i do some stuff with protege and got the RDFS file, not owl file.. which file will be best for query with sparql.how do i read the property values? i faced lot of problems with getting the property values... can u show me the way::in my rdf file there is no URI...how can i query with it or are there any way to get the URI ?thanks
A: 

you can use jena