13 Replies Latest reply on Oct 24, 2013 11:38 PM by user571093

    number comparision in sem_match filter clause failed in Jena

    user571093

      Hi,

      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_models('test'), 

           sem_rulebases('owl2rl', 'testRules'),

           sem_aliases(sem_alias('', 'http://www.example.com/test#')), 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.

       

      Hong