stardog-union / pellet

Pellet is an OWL 2 reasoner in Java; open source (AGPL) and commercially licensed, commercial support available.
http://clarkparsia.com/pellet
Other
302 stars 153 forks source link

Add new custom SWRL Builtins in Pellet reasoner #45

Open bututoubaobei opened 5 years ago

bututoubaobei commented 5 years ago

I have added my custom SWRL builtin "customSWRL" in "om.clarkparsia.pellet.rules.builtins.BuiltInRegistry",however, the Protege said that "Builtin atoms in rules are not currently supported" when i executed my SWRL rules "customSWRL:checkLessThanThree("a"^^xsd:string, "b"^^xsd:string, "c"^^xsd:string) -> hasAge(Mary, 18)". Anyone knows how to add the custom SWRL builtin in Pellet ?