Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Possible to use SQWRL in rule-body (SQWRL-QueryAPI)?

Michael Lodemann milo at
Wed Oct 15 06:51:24 PDT 2008

Is it yet possible to use SQWRL-builtIns like sqwrl:select in the body of
a rule in a java-program?

It's because the following code ...

SWRLImp imp1 = factory.createImp("test_query", "j.0:Road(?r) ->
SQWRLQueryEngine queryEngine = SQWRLQueryEngineFactory.create(owlModel);

... throws an exception at the last line.


error running SQWRL queries: Jess reported an error in routine
	while executing (invokeSWRLBuiltIn "test_query"
"" 0
false ?,0,-1))
	while executing rule LHS (Node2)
	while executing rule LHS (TECT)
	while executing (assert
(MAIN:: (name
  Message: error invoking built-in from Jess: exception thrown by built-in
'sqwrl:select' in rule 'test_query': attempt to add data beyond the end
of a row.
  Program text: ( assert ( (
name ) ) )  at line 1
in file <eval pipe>.

Can one tell me how to resolve this?


More information about the protege-owl mailing list