[Pellet-users] What are the differences in using the different interfaces (i.e. Pellet API, OWL API, Jena API) to a
Koh Shu Lin
kohshulin at hotmail.com
Tue May 27 08:18:48 UTC 2008
Hi all,
I'm very new to PELLET. Currently I'm looking into the PELLET examples, and I've found that there are many ways that one can create an instance of a reasoner (i.e. using OWL API, Pellet API, JENA API). But what I'm interested is on Pellet, but not Jena. Can anyone explain to me what are the differences in the following statements in creating reasoners? And how do I decide when to use which APIs?
Thanks alot =)
Example 1 (Pellet API):
ModelReader reader = new ModelReader(); Model model = reader.read( mindswappers );
// load the model to the reasoner OWLReasoner reasoner = new OWLReasoner();
Example 2 (OWL API):
OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); OWLDataFactory factory = manager.getOWLDataFactory(); OWLOntology ontology = manager.loadOntology( URI.create( mindswappers ) );
Reasoner reasoner = new Reasoner( manager );
Example 3 (Jena API):
import com.hp.hpl.jena.reasoner.Reasoner;
Reasoner reasoner = PelletReasonerFactory.theInstance().create();
_________________________________________________________________
Easily edit your photos like a pro with Photo Gallery.
http://get.live.com/photogallery/overview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.owldl.com/pipermail/pellet-users/attachments/20080527/a258772a/attachment.htm
More information about the Pellet-users
mailing list