contextual_expansions
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-10.)
contextual_expansions has 44 facts recorded in Dontopedia across 6 references, with 8 live disagreements.
Mostly:rdf:type(6), contains(4), has mapping(2)
Maturity scale
raw canonical shape-checked rule-derived certifiedInbound mentions (16)
Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.
hasAttributeHas Attribute(6)
- Query Rewriter
ex:query-rewriter - Query Rewriter
ex:query-rewriter - Query Rewriter
ex:query-rewriter - Query Rewriter
ex:query-rewriter - Query Rewriter Class
ex:query-rewriter-class - Query Rewriter Class
ex:query-rewriter-class
assignsToSelfAssigns to Self(1)
- Init
ex:__init__
consistsOfConsists of(1)
- All Techniques
ex:all-techniques
hasInstanceVariableHas Instance Variable(1)
- Query Rewriter Class
ex:query-rewriter-class
hasIntegrationHas Integration(1)
- Enhanced Version
ex:enhanced-version
hasMemberHas Member(1)
- Techniques
ex:techniques
isTargetedByNameIs Targeted by Name(1)
- Sql Concepts
ex:sql-concepts
iteratesIterates(1)
- Apply Contextual Expansion
ex:apply-contextual-expansion
usesUses(1)
- Query Transformation
ex:query-transformation
usesAttributeUses Attribute(1)
- Apply Contextual Expansion
ex:apply-contextual-expansion
usesVariableUses Variable(1)
- Apply Contextual Expansion
ex:apply-contextual-expansion
Other facts (41)
The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.
Timeline
Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.
References (6)
ctx:claims/beam/fe1ff925-6e8a-431d-aa01-2d4b499ae7e2ctx:claims/beam/730c48fc-40c0-4bb9-aa45-3ee6f2bdd32c- full textbeam-chunktext/plain1 KB
doc:beam/730c48fc-40c0-4bb9-aa45-3ee6f2bdd32cShow excerpt
query = self.sanitize_query(query) query = self.apply_keyword_substitution(query) query = self.apply_pattern_matching(query) query = self.apply_contextual_expansion(query) return query def saniti…
ctx:claims/beam/ea0e817a-1408-493e-bbcf-6f0c90a888ee- full textbeam-chunktext/plain1 KB
doc:beam/ea0e817a-1408-493e-bbcf-6f0c90a888eeShow excerpt
# Example usage: rewriter = QueryRewriter() query = "SELECT * FROM table WHERE condition AND column = value" rewritten_query = rewriter.rewrite_query(query) print(f"Rewritten Query: {rewritten_query}") ``` ### Explanation 1. **Keyword Sub…
ctx:claims/beam/b75dfd8f-8843-48b6-a51b-7bca94983b62ctx:claims/beam/7b4bf2e3-60c1-4558-933c-d63455859bde- full textbeam-chunktext/plain1 KB
doc:beam/7b4bf2e3-60c1-4558-933c-d63455859bdeShow excerpt
raise QueryParseError(f"Error rewriting query: {query} - {e}") def expand_query(self, query): query = self.sanitize_query(query) query = self.apply_keyword_substitution(query) query = self.apply_patt…
ctx:claims/beam/6160f680-6610-43df-b520-efa8dbd5ff46- full textbeam-chunktext/plain1 KB
doc:beam/6160f680-6610-43df-b520-efa8dbd5ff46Show excerpt
(r'\bOR\b', 'ORELSE') ] self.contextual_expansions = { 'table': 'TABLE_NAME', 'condition': 'CONDITION_VALUE' } def rewrite_query(self, query): try: expande…
See also
- Dictionary
- Mapping Table Table Name
- Mapping Condition Condition Value
- Sql Concepts
- Context
- Expansion
- Maps Context Clues to Expansions
- Apply Contextual Expansion
- String to String
- Key Value Pairs
- Table Table Name
- Condition Condition Value
- Items
- Table Keyword
- Condition Keyword
- Dictionary Type
- Table Name Placeholder
- Condition Value Placeholder
Keep researching
Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.