Hi,
This is my first time here, so the first question is: The open version of pellet (at GitHub) is still being developed?
I have a problem when using the latest version to create custom SWRL builtIns.
At first, I've created the custom builtins with version 2.3.1,
they all work fine with this version.
When I've changed to version 2.3.2-SNAPSHOT, the "Literal[] args" param of apply function comes with null values.
Example rule:
Thing(?t1),
Thing(?t2), hasGeometry(?t1, ?geom1), hasGeometry(?t2, ?geom2),
asWKT(?geom1, ?wkt1), asWKT(?geom2, ?wkt2), isWithinDistance(?wkt1,
?wkt2, 0.012) -> nearby(?t1, ?t2) When I print args, it's like:
args[0] = null
args[1] = null
args[2] = "0.012"^^double
I'm attaching the source codes and the example ontology, because I have no ideia what's wrong. I don't change I single line of code. Just by changing the pellet version, the problem occurs. Using Pellet 2.3.1, it infers the correct statements.
The first thougth was about the wktLiteral datatype. But I've changed the values to xsd:string and the problem remains.
Just to clarify, my intension here is to build a set of functions to operate over spatial info. Most functions are wrapping geotools geometries operations,
I've read about a
PelletSpatial plugin, but couldn't find it anywhere.
Since my code is the same, I think the problem is within pellet, or at least the way I should build custom SWRL builtins.
Can someone help me?!
Regards,
Rodrigo