RQL Error Messages


RDFSuite      Overview         RQL Online Demo       Download RQL      Instructions      Documentation      Manual


There are several reasons for which a query may be invalid. A query may have syntactical errors, typing errors or other errors in path expressions.

Syntactical Errors

  1. (E_Q37) -- Syntactical error on token: . (Did you use a path expression outside FROM clause?) -- RQL does not allow SQL/OQL-style paths expressions outside the from clause (i.e. select X.title from ExtResource{X})
  2. (E_Q38) -- Syntactical analysis failed: no variable defined in path expression -- Each path expression in the from clause MUST contain at least one (either node or path) variable
  3. (E_Q40) -- Syntactical error on token: X -- Wrong syntax in query. Prints the first invalid token
  4. (E_Q41) -- Invalid variable name in path component -- schema variable used in the place of data variables in path node
  5. (E_Q39) -- Syntactical analysis failed at end of text (missing part?) -- Other syntactical error that doesn't fall in the previous cases (i.e. missing from clause)

Type errors

  1. (E_Q1) -- Type error in operation: X -- Operation X in the query has operands of incompatible types
  2. (E_Q7) -- Type error in set operation (incompatible union types) -- Special case of the above: set operation between collections of incompatible union types or types that are not yet supported (see Not Implemented Features)
  3. (E_Q2) -- No resource named: X -- X, used as a schema resource in the query (i.e. class or property name) does not exist in the database
  4. (E_Q5) -- Access to sequence out of bounds - element -- Query requested an element of a sequence with index larger than the size of the sequence.
  5. (E_Q8) -- Restriction on domain/range of path is neither class nor literal type name -- The query contains an expression like {X}creates{Y:foo} in the from clause, where foo is neither a class name or a literal type name
  6. (E_Q14) -- Boolean expected in: X -- Operation X expected a boolean expression (i.e. if X is an operand of an AND operation)
  7. (E_Q15) -- Collection expected in: X -- Operation X (commonly a scan operation) can only be defined on a collection

Path expressions errors

  1. (E_Q49) -- Too many variables in bag scan expression -- Query contains a path expression on a unary collection (class or bag - i.e. nested query) and the path defines variables on two nodes (which is valid in the case of properties)
  2. (E_Q50) -- Joining paths of incompatible types -- Path expression contains an invalid (in terms of typing) path composition
  3. (E_Q51) -- Invalid use of schema variable in bag expression -- Path node contains a schema variable definition (i.e. foo{:$X}) while the path is neither a class (where $X is a scan on subclasses(foo)) or a property (where $X is a scan on subclasses(domain/range(foo)))
  4. (E_Q52) -- Invalid restriction in path node -- Path node contains a schema "restriction" (i.e. class name as in {:Painter}) that is always false (e.g. the specified class cannot appear in the range of a specific property, i.e. is not a subclass of its range)


Last modified: November 17, 2001