I'm embarking on a new mapping/translation project. This question assumes that SWRL is most robust/future-proof way to represent mapping rules.
I see that Pellet supports SWRL, but the sample included in the source code (RulesExample.java) uses Jena. It seems that Jena has some support for SWRL too, so does Pellet bring anything to the table, or is Jena by itself enough for maximum SWRL support?
asked 15 Feb '11, 18:22
It should first be made clear that SWRL is not a standard, and never will be. Therefore you will see spotty support for it. In terms of W3C recommendations, see the RIF Basic Logic Dialect (BLD). This is basically where the SWRL submission ended up in the standards process and implements all but different-from (http://www.w3.org/2005/rules/wiki/RIF_FAQ#How_does_RIF_differ_from_SWRL.3F).
Meanwhile, you should consider SPARQL as a mapping and translation language. This is supported by a large number of rule engines and has been a W3C recommendation since January 2008. Any SWRL rule can easily be converted to a SPARQL query, and SPARQL is more expressive than SWRL.
As an example, the oft-used uncle query in SWRL:
Can be written in SPARQL as:
You should also note that support for SWRL is removed from Top Braid Composer. The decision was made based on informal poll results.
The poll link is no longer valid but the question was along the lines of "How important is SWRL support in Top Braid products to you?"
The results were:
answered 13 Apr '11, 11:15
Jena does not offer SWRL support directly. The JenaRules language is not a standard.
There was tool called SweetRules which offered support for SWRL by translation into a number of simpler rule languages include JenaRules. However, that tool does not seem to have been actively maintained and none of the Jena team were directly involved in it.
Unless SweetRules works for you then your best option for SWRL support in Jena is Pellet.
Or, as Scott suggests, look at other options like RIF (though I would look at Core rather than BLD) or proprietary ones.
answered 13 Apr '11, 11:16