Skip to content

Latest commit

 

History

History
92 lines (67 loc) · 4.99 KB

File metadata and controls

92 lines (67 loc) · 4.99 KB

Patent Document

Invention Title: Unified Configuration Query Language (TCL/TQL) and Data Operation Methods

Technical Field

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.

Background Art

Traditional data operations suffer from the following problems:

  1. Language fragmentation: Different domains use different query languages (SQL/JSONPath/XPath/TCL), increasing learning and maintenance costs.
  2. Inconsistent operations: Query, modify, delete, and batch operations use different syntax, increasing cognitive burden.
  3. Lack of dimension awareness: Traditional query languages do not understand multi-dimensional data structure.
  4. Difficult batch operations: Traditional methods require loop traversal, making batch operations inefficient.
  5. Non-unified path expressions: Different systems use different path notations (dot/slash/bracket), incompatible with each other.

Summary of Invention

The present invention proposes a Unified Configuration Query Language (TCL/TQL) that achieves unified operation on N-dimensional data through path expressions.

Core Innovations

  1. Unified path expressions: A unified path syntax (module.element.attribute[index) locates any data point in any dimension.
  2. Unified operation types: Query (get), modify (set), add (add), delete (del), and broadcast (broadcast) use the same syntax.
  3. Dimension awareness: Path expressions directly map to NDData dimension structure.
  4. Batch operations: Wildcards (*) and dimension broadcast enable single-statement multi-data-point operations.
  5. Penetration drilling: Support for multi-level data queries from summary dimensions to detail dimensions.

Technical Solution

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

Beneficial Effects

  1. Unified operation interface: One language covers query, modify, add, delete, and batch operations.
  2. Dimension awareness: Path expressions directly map NDData dimension structure.
  3. Efficient batch: Wildcard + dimension broadcast enable single-statement operations on thousands of data points.
  4. Precise control: Path expressions can precisely locate any data point in any dimension.
  5. Cross-domain universal: Same TCL/TQL syntax applies to office documents, print design, animation creation, print standards, etc.
  6. AI-friendly: TCL syntax is close to natural language, easily parsed and generated by AI.

Detailed Description

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 = 3mm

Embodiment 3: Animation Operations

objects[*].relation=sine(amplitude=50, frequency=1, phase=${index}*0.3)
objects[*].color=hsl(${index}*36, 70%, 50%)

License and Authorization

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:

  1. Attribution Required: Anyone using or referencing this patent document must clearly cite the source, including the inventor's name, affiliation, and original document link.
  2. 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.
  3. Non-Commercial Free Use: Non-commercial use is free of charge, including personal learning, academic research, scientific research projects, open source community contributions, etc.
  4. 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.
  5. Legal Protection: This product is protected by international law. Infringement will be prosecuted to the fullest extent of the law.
  6. 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