Skip to content

Latest commit

 

History

History
106 lines (64 loc) · 2.8 KB

lexcql-contextset.adoc

File metadata and controls

106 lines (64 loc) · 2.8 KB

CQL ContextSet specification

Used identifier: http://text-plus.org/cql/lexres/1.0/ (draft)

Recommended prefix: lexres

Tip
For more examples of CQL ContextSets, see the list of Context Sets at the Library of Congress (LoC).

Indexes

Tip
For more information about CQL indexes, see The CQL Context Set, section "INDEXES".
Index title Description Details/Open questions

lemma

Lemma name

Support of multiword expressions?

pos

Part of Speech

Use of Universal POS tags. Allow custom tag sets?

def

Definition

xr$synonymy, …​

Semantic relations, analogous to types in TEI Lex0

Only Synonym, Hyponym, Hyperonym, Meronym, Antonym, or additional relations?

senseRef

Sense, Entity, …​ - URI/ID pointint to unique identifier, e.g. for disambiguation

Any URI allowed? Defined subsets (using prefixes)? Subdivision by type (e.g. synset/sense or entity, …​)?

Relations

Tip
More information about CQL relations can be found The CQL Context Set, section "RELATIONS".

Implicit Relations

  • =

    Different functions based on index. Suggested use:

    • Full match for lemma and def,

    • for other indexes (like pos) use as "contained in" (Endpoint-dependent behaviour).

Defined Relations

(potential definition of full/partial match in the future)

Booleans

Tip
For more information about Booleans in CQL, see The CQL Context Set, section "BOOLEANS".
  • AND

  • OR

  • NOT (might be unnecessary)

  • PROX (might be obsolete)

Relation Modifiers / Relation Qualifiers

Tip
For more information about relation modifiers/qualifiers, see The CQL Context Set, section "RELATION MODIFIERS".

none

  • = with /contains, /startswith, /endswith, /fullmatch, /partialmatch modifiers

Boolean Modifiers

Tip
More information about Boolean modifiers can be found The CQL Context Set, section "BOOLEAN MODIFIERS".

none

Examples

  1. cat, "cat", "United Nations"
    Searching in the default index; cql.word or lemma

  2. pos = ADJ
    Search for adjectives

  3. def = "cat"
    Search for records whose definition contains the term "cat".
    TODO: Stemming, Lower/Uppercase, Subword-Matches

  4. pos = NOUN NOT lion AND def = carnivore
    Search for nouns with "carnivore" in definition; exclusion of records with "lion"