README Oracc Home SEARCH DOCUMENTATION

Creative Commons License

ORACC Home


Introduction


xse.rnc


Resources

XSE: XML Search Expressions

(http://oracc.org/ns/xse/1.0)

Steve Tinney
Version of 2019-10-13

Introduction

XSE is a schema for expressing the search expressions that are understood by the Oracc native search engine.

xse.rnc

default namespace = "http://oracc.org/ns/xse/1.0"

start = xse

xse    = element xse { search* }

search = (project , index , expr* , result)*

project = element  project { text }

index   = element   index   { attribute n { text }}

result  = element   result  { location } ?

expr    = (key | binop)

binop   = (key , and , key)

and     = (invert? , type , near , expr)

group   = element group { invert? , (expr | term)* , result? }

term    = filter* , key , (op , key)*

filter  = (field | lang | prop)

near	= element near { where , scope , level }

where   = attribute where { "before" | "after" | "around" }

scope   = attribute scope { text }

level   = attribute level { "record" | "field" 
			    | "text" | "word" | "line" }

location = element l { text }

invert  = attribute invert { "yes" | "no" }

type    = attribute type { "and" | "or" }

key     = element key { text }

op      = element op  { attribute n { "-" | "_" | "~" | "x" } }

field   = element field { text }

lang    = element lang { text }

prop    = element prop { text }

Resources


Questions about this document may be directed to the Oracc Steering Committee (osc at oracc dot org).