On 22/04/14 02:23, ameni ameni wrote:
I create an ontology using Protégé 3.4.8 and also i create some SWRL rules.
Now i'am using Jena API to manipulate the ontology and i use the reasoner
Pellet in order to support this rules.
For example, one of my a rule said :
person(x) and hasAge (x,y) and Age(y) and greaterThan (y,16) and
lessThan(60)
--> Adult(x)

Now i need to construct a SPARQL query that can return the set of users who
are adult.

What I'am asking for is how  can i define SPARQL queries based  on SWRL
Rules?

Presumably that isn't literally your rule but there is some namespace (call it "ns") associated with "Adult" in which case you just query for things of type ns:Adult.

For the specifics of using Pellet and SWRL you may need to ask on the Pellet list.

Dave

Reply via email to