[Pellet-users] Seperating A & T boxes in Pellet
Evren Sirin
evren at clarkparsia.com
Wed Mar 14 12:04:40 UTC 2007
On 3/10/07 6:13 PM, Matt Williams wrote:
> Dear Evren,
>
> Looking at the API for the 1.4 rc2, I can see stuff relating to A and T
> boxes. I was wondering:
>
> 1: Is it's possible to split the A & T box into separate structures, to
> handle them differently.
>
>
Do you mean serialize them separately? It is possible but there is no
built-in function to do that for you.
> 2: If so, how to do it
> 3: The role of KnowledgeBase - and how you generate one from a Jena
> model (I'm guessing there's a .getKB() method somewhere I haven't seen).
>
> I'm also a bit confused about the aterm references in some of the
> methods - for example, some of the methods in
>
> org.mindswap.pellet.query.impl.QueryImpl
>
> require aterms to be passed - should I be "casting" an rdf node as an
> aterm, or is it more complex than this?
>
If you are going to use the Jena interface you don't really need to
worry about the KB or ATerms. You simply create a Jena model, set Pellet
as its reasoner and use only Jena specific functions. All the reasoning,
transformations, etc. will be done in the background for you. See the
sample programs provided in the examples directory of the distribution
package (esp. JenaReasoner.java, PelletQueryExample.java).
Cheers,
Evren
> Thanks a lot,
>
> Matt
>
>
>
More information about the Pellet-users
mailing list