Hi Barry,
On 08/05/18 16:53, Nouwt, B. (Barry) wrote:
Hello everyone,
I know Apache Jena allows a developer to access the derivation of an inferred
triple using the InfModel.getDerivation() method. Can I also access this
explanation via Apache Jena Fuseki GUI?
I have configured Apache Jena Fuseki in such a way that the GenericRuleReasoner
infers new triples based on my dataset and a few rules. I am able to fire a
SPARQL query via Fuseki GUI and the answer includes the inferred triples as
expected. For our project, we would like to access the derivation of an
inferred triple via the GUI (as is possible in, for example, Protégé).
* Is this already possible in Fuseki? If not;
* Would it be interesting if we contribute to Fuseki to add such a
feature? And if so;
* Are there any relevant pointers to get us started?
For example, I noticed (in the 3.7.0 release) the following JIRA that sounds
like a starting point:
JENA-1435: Provide extensibility of Fuseki with new services.
It is now possible to add custom services to a Fuseki service, not just
the services provided by the Fuseki distribution.
Source:
https://jena.markmail.org/search/?q=3.7.0#query:3.7.0+page:1+mid:opdcbi6qhrim4bsv+state:results
If it is indeed possible to extend Fuseki with custom services, it might be
possible to introduce a new service called 'derivation' that, given a triple,
produces the derivation log for that triple. It would produce the explanation
in some JSON format. The Apache Jena Fuseki GUI could parse this result and
show it on screen.
So, my first question is: is it already possible to retrieve the derivation log
using Apache Jena Fuseki and if so, how?
There isn't such a feature.
My follow-up question: would it be interesting if we could contribute such a
feature to Fuseki?
Yes - and it should be possible to develop such a feature without
needing to modifying the Fuseki source. That's the point of JENA-1435.
There are some tests in TestFusekiCustomOperation
It is easier to develop functionality using the programmatic, same-JVM
form of the Fuseki server because the FusekiServer.Builder.
Andy
Regards,
Barry
This message may contain information that is not intended for you. If you are
not the addressee or if this message was sent to you by mistake, you are
requested to inform the sender and delete the message. TNO accepts no liability
for the content of this e-mail, for the manner in which you use it and for
damage of any kind resulting from the risks inherent to the electronic
transmission of messages.