0

I am currently fetching and creating rules in Apache Jena Fuseki for a project.

The things is that for the moment I am only able to get and post information via SPARQL which is great for fetching triplets, but very complicated to write and to read for creating rules.

Does anyone knows if Fuseki can accept Turtle or SWRL languages (much easier to understand)?

Thank you!

2
  • You can send Turtle by POSTing it with MIME type text/turtle. This is the SPARQL Graph Store protocol : w3.org/TR/sparql11-http-rdf-update/It does not use the SPARQL Update language. Client code: GSP or operations on an RDFConnection.
    – AndyS
    Commented Apr 26, 2022 at 18:04
  • SWRL is a rule language, what should Fuseki do with it? Also, you would have to use an SWLR capable reasoner in Jena (e.g. Pellet) as the the Jena built-in rule language and SWRL are clearly not the same Commented Apr 27, 2022 at 3:06

1 Answer 1

0

you have two easy way of requesting an Apache Jena-Fuseki server, either by using HTTP over SPARQL requests (What you are doing) or using triples requesting (turtle) with the python library "rdflib" which enables you to load your ontology or rdf triples into python and request jena with its SPARQL store plugin.

for SWRL rules it's a bit different since, like mentionned @UninformedUser you would need to configure your Jena with a Reasoner like Pellet/Openllet.

here are some links you can check :

Not the answer you're looking for? Browse other questions tagged or ask your own question.