On 19/07/13 09:43, Nuttapon Sanyawong wrote:
Is there a way to call function which not in built-in function from rule
like

[rdfs2:  (?x ?p ?y), (?p rdfs:domain *(new JavaForms.frmAskMethod)*)
-> (?x rdf:type ?c)]

Not directly.

It is reasonably easy to add new builtins [1]. You could package your code as builtins directly or you could create a generic builtin that dynamically calls out to other code.

Dave

[1] Brief pointers are at http://jena.apache.org/documentation/inference/#extensions

Reply via email to