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