I can't see a problem with that. If the triples encoding your rules are in the 
graph you should be able to send any valid SPARQL query to Fuseki and get a 
response. I suggest you set up a local Fuseki server and try it.

DM

Sent from my iPhone

> On 19 Nov 2014, at 9:00 am, Miguel Bento Alves <[email protected]> wrote:
> 
> I have a semantic environment where I have, besides ontologies and data, jena 
> rules, custom built-in functions that are called in jena rules. Can I 
> implement a Fuseki server that answer to a sparql command considering all 
> these things?
> 
> For example, I have a sparql command:
> 
> Select ?p1 ?p2
> where 
>    {
>    ?p1 exa:isGrandFather ?p2 .
>    ?p1 rdf:type exa:Adult .
>    }
> 
> I execute the command above in my semantic environment. I want to be able to 
> execute also in a Sparql endpoint. Is this possible? I didn’t figure out how 
> can I do it. 
> 
> (note: this is just an example to simplify, is not my real case)
> 
> Considering: 
> 
> I have the follow rules:
>    
> (?p1 :isGrandFather ?p2) <-
>    (p1 exa:isParent ?p3), 
>    (?p2 exa:isFatherOf ?p2). 
> 
> (?p1 rdf:type exa:Adult) <-
>    (?p1 exa:birthday ?d), 
>    getAge(?d, ?age), 
>    ge(?age, 18). 
> 
> getAge is a custom built-in function.
> 
> Miguel

Reply via email to