The present invention relates to the fields of programming language and data operation technology, specifically to a unified configuration query language (TCL/TQL) based on path expressions for unified data manipulation across multiple domains.
Traditional data operations suffer from the following problems:
- Language fragmentation: Different domains use different query languages (SQL/JSONPath/XPath/TCL), increasing learning and maintenance costs.
- Inconsistent operations: Query, modify, delete, and batch operations use different syntax, increasing cognitive burden.
- Lack of dimension awareness: Traditional query languages do not understand multi-dimensional data structure.
- Difficult batch operations: Traditional methods require loop traversal, making batch operations inefficient.
- Non-unified path expressions: Different systems use different path notations (dot/slash/bracket), incompatible with each other.
The present invention proposes a Unified Configuration Query Language (TCL/TQL) that achieves unified operation on N-dimensional data through path expressions.
- Unified path expressions: A unified path syntax (module.element.attribute[index) locates any data point in any dimension.
- Unified operation types: Query (get), modify (set), add (add), delete (del), and broadcast (broadcast) use the same syntax.
- Dimension awareness: Path expressions directly map to NDData dimension structure.
- Batch operations: Wildcards (*) and dimension broadcast enable single-statement multi-data-point operations.
- Penetration drilling: Support for multi-level data queries from summary dimensions to detail dimensions.
TCL Path Syntax: module.element.attribute[index]
Operation Syntax:
get path // Query
set path = value // Modify
add path {data} // Add
del path[index] // Delete
broadcast path = value // Broadcast
- Unified operation interface: One language covers query, modify, add, delete, and batch operations.
- Dimension awareness: Path expressions directly map NDData dimension structure.
- Efficient batch: Wildcard + dimension broadcast enable single-statement operations on thousands of data points.
- Precise control: Path expressions can precisely locate any data point in any dimension.
- Cross-domain universal: Same TCL/TQL syntax applies to office documents, print design, animation creation, print standards, etc.
- AI-friendly: TCL syntax is close to natural language, easily parsed and generated by AI.
Embodiment 1: Office Document Operations
get wenshu.string[*].content[0]
set wenshu.string[*].style.font = "黑体"
add wenshu[0].string {content: "新段落", style: {font: "宋体"}}Embodiment 2: Print Operations
set pfd.page[*].colorplate[*].element[*].fill = "#000000"
get pfd.page[3].colorplate[*].element.count
set pfd.page[*].bleed = 3mmEmbodiment 3: Animation Operations
objects[*].relation=sine(amplitude=50, frequency=1, phase=${index}*0.3)
objects[*].color=hsl(${index}*36, 70%, 50%)Copyright Ownership: All theories and product patents/invention patents/copyrights based on this theoretical system are owned by Chen Qin of Sichuan Longying Technology Co., Ltd.
License Terms: This patent document is open-sourced under the GNU AFFERO GENERAL PUBLIC LICENSE v3.0 (AGPL-3.0), with the following additional terms:
- Attribution Required: Anyone using or referencing this patent document must clearly cite the source, including the inventor's name, affiliation, and original document link.
- Contribution Back: Improvements should be contributed back to the repository. Derivative works or enhanced versions based on this patent document must be contributed back to this repository and must not be privatized.
- Non-Commercial Free Use: Non-commercial use is free of charge, including personal learning, academic research, scientific research projects, open source community contributions, etc.
- Commercial Authorization Required: Commercial use requires written authorization and payment of licensing fees. Commercial use includes but is not limited to: using the technical solutions in commercial products, commercial services, commercial systems, commercial consulting, etc.
- Legal Protection: This product is protected by international law. Infringement will be prosecuted to the fullest extent of the law.
- No Plagiarism: Plagiarizing the content of this patent document and claiming it as one's own is prohibited. Removing or altering original copyright information is prohibited.
Inventor: 陈钦 (cq800229@qq.com)
Affiliation: 四川龙映科技有限公司
Filing Date: 2026-09-14