Skip to content

Tabular Query Parser

scampi edited this page Dec 12, 2011 · 9 revisions

Tabular Query Parser

Tabular queries are supported in SIREn-0.2.3

The tabular query syntax is used to query data indexed using the tabular input format. It differentiates from the N-Triple query since it allows any number cells, each being associated to a specific position. Also, it does not support the wildcard symbol "*" in a query. With this syntax, you must specify in which cell an expression has to be evaluated. This is done thanks to the cell position operator "[x]", where x is the cell position (starting at 0). The cell position operator always precedes the cell query.

Below are tabular queries examples on the tabular data sample.

  • Find rows where the field type is a heliport:
[2]"heliport"
  • Find rows where the field elevation_ft as a value between 1000 and 2000:
[6]'[1000 TO 2000]'^^<xsd:integer>
  • Find rows where the field type is either "small_airport" or "heliport", with the term "airport" in the wikipedia_link field:
[2]'heliport OR small_airport' [16]<airport>