This discussion is archived
13 Replies Latest reply: Oct 24, 2013 4:38 PM by user571093 RSS

number comparision in sem_match filter clause failed in Jena

user571093 Newbie
Currently Being Moderated


I have the following sem_match query which has a filter clause to compare a variable with a number. It runs in oracle very well; but , it failed in jena.

select interval_length

     from table(sem_match('{ ?dose_interval rdf:type :Dose_Interval. ?dose_interval :dose_interval_hourly ?interval_length.

     filter (?interval_length < "6.0"^^xsd:decimal) }', 


     sem_rulebases('owl2rl', 'testRules'),

     sem_aliases(sem_alias('', '')), null))

I run the query in jena, but got the following error:


Exception in thread "main" java.lang.Error: Unresolved compilation problems:

The operator * is undefined for the argument type(s) java.lang.String, java.lang.String

Syntax error on token "6.0", * expected

Is it a bug or something wrong with my query? Thanks a lot in advance.




  • Correct Answers - 10 points
  • Helpful Answers - 5 points