"Name" = 'Terminology Query Language' "Author" = 'Hugh Grady' "Version" = '1.5' "About" = 'Language for generating ref sets from terminology' "Copyright" = 'Copyright 2006-2010, Ocean Informatics Pty Ltd' "Start Symbol" = ! ------------------------------------------------- Sets {String Chars} = {Printable} + {HT} - ["\] {XML String Chars} = {Printable} - [<&"] ! ------------------------------------------------- Terminals qTransient = '"Transient"' qPermanent = '"Permanent"' qSelect = '"Select"' qNavigate = '"Navigate"' qPassthrough = '"Passthrough"' qHoistChildren = '"HoistChildren"' qExclude = '"Exclude"' qtrue = '"true"' qfalse = '"false"' qMustMatch = '"MustMatch"' qCannotMatch = '"CannotMatch"' qGt = '"' ( '>' | '>' ) '"' qLt = '"' ( '<' | '<' ) '"' qLtEq = '"' ( '<' | '<' ) ( '&eq;' | '=' ) '"' qGtEq = '"' ( '>' | '>' ) ( '&eq;' | '=' ) '"' qEq = '"' ( '&eq;' | '=' ) '"' qNeq = '"' ( '<' | '<' ) ( '>' | '>' ) '"' !qUnsignedInt = '"' {Number}+ '"' qString = '"' ({String Chars} |'\' {Printable} )* '"' {Symbol Chars} = {Printable} - {Letter} - [<>''"=] - {Whitespace} Name = {Letter}{Alphanumeric}* Symbol = {Symbol Chars} CharName = '&' {Letter}+ ';' CharNumber = '&#' {Digit}+ ';' ! ------------------------------------------------- Rules ::= ::= | BOM ::= '' ::= ' ::= '>' ''| '/>' ::= ::= 'name=' qString ::= 'terminology=' qString ::= |'language=' qString ::= |'parentQuery=' qString ::= |'description=' qString ::= |'baseQuery=' qString ::= |'cacheMode=' ::= |'pruneDeadHeads=' ::= 'xmlns:ots="urn:xmlns:oceaninformatics.biz:schema:OTSQuerySchema"' ::= ' ::= '>' ''| '/>' ::= | ::= | | | | | | | | ' '>' '' | ' '>' '' | ' '>' '' | ' '>' '' ::= ' ::= '>' ''| '/>' ::= | ::= | ' '/>' | ' '/>' ::= 'sourceSetName=' ::= qString ::= ::= |'resultSubsetId=' qString ::= |'queryId=' qString ::= |'queryName=' qString ::= ::= ' ::= '>' ''| '/>' ::= | ::= | | | ::= ::= |'terminologyRelease=' qString ::= 'text=' qString ::= ' ::= '>' ''| '/>' ::= | ::= | | | | | | | | ' '>' '' | ' '>' '' | ' '>' '' | ' '>' '' ::= ::= 'conceptId=' qString ::= |'operation=' ::= 'conceptId=' qString ::= ' ::= '>' ''| '/>' ::= | ::= | | | | | | ' '>' '' | ' '>' '' | ' '>' '' | ' '>' '' ::= |'sourceSetName=' ::= ::= ' ::= '>' ''| '/>' ::= | ::= | | | | | | ' '>' '' | ' '>' '' | ' '>' '' | ' '>' '' ::= ::= | ' ::= '>' ''| '/>' ::= | ::= | ::= | ::= | ::= | ::= 'matchRule=' ::= '' '' ::= | ' '/>' ::= ::= 'propertyName=' qString ::= 'propertyValue=' qString ::= 'relationalTest=' ::= | ' '/>' ::= ::= 'conceptId=' qString ::= 'matchRule=' ::= | ' '/>' ::= ::= |'reverseRelationship=' ::= |'conceptId=' qString ::= |'cardinality=' ::= |'useClosure=' ::= 'relationshipId=' qString ::= 'relationalTest=' ::= |'operation=' ::= ::= | ' ::= '>' ''| '/>' ::= | ::= | ::= ::= 'conceptId=' qString ::= 'rootOperation=' ::= 'treeOperation=' ::= |'maxDepth=' ::= |'treeRelationship=' qString ::= |'reverseTreeRelationship=' ::= ::= | ::= | ::= ::= |'maxDepth=' ::= |'treeRelationship=' qString ::= 'rootOperation=' ::= 'treeOperation=' ::= ::= | ::= | ::= | ::= ::= | ::= ::= |'nodeOperation=' ::= ::= ::= |'maxDepth=' ::= 'rootOperation=' ::= 'treeOperation=' ::= ::= | ::= | ::= ::= ::= ::= ::= ::= ::= ::= ::= |'outputList=' ::= ::= |'maxDepth=' ::= ' ::= '>' ''| '/>' ::= | ::= | ::= ::= |'operation=' ::= |'reverseRelationship=' ::= 'relationship=' qString ::= ::= |' ::= '>' ''| '/>' ::= | ::= | | ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= '>' ''| '/>' ::= ' ::= ' ::= '>' ''| '/>' ::= | ::= qMustMatch | qCannotMatch ::= qEq | qNeq | qGt | qGtEq | qLt | qLtEq ::= qTransient | qPermanent ::= qSelect | qNavigate | qPassthrough | qHoistChildren | qExclude ::= qTrue | qFalse ::= qString ::= | ::= Name | Symbol | '=' | CharName | CharNumber