LLM WikiAccess-protected knowledge portal

WIKI

License Collection & Analysis

AI Summary Purpose Capture durable knowledge about the open source license data pipeline license compatibility data, license DB ization, and the AI based license analysis redesign. Key points Three evolutionary stages over time 1. 2021 Lice

경로ai/wiki/projects/license-collection.md
카테고리Project
태그#ai-review #airflow #cicd #collection #crawler #data-pipeline #license #llm #mysql #portfolio #project #projects #security #wiki

# License Collection & Analysis

AI Summary

Purpose:

compatibility data, license DB-ization, and the AI-based license analysis redesign.

Key points:

1. (2021) License DB-ization — moved text-file-based license pattern mappings into the DB as JSON for regex-based dynamic matching; split a single unified version table into per-language tables for scalability/performance; standardized bulk writes on INSERT ... ON DUPLICATE KEY UPDATE. 2. (2023) License compatibility DB — crawl an authoritative public license compatibility matrix (OSADL) and model it as (license A, license B) → compatible Yes/No/Unknown for instant pairwise lookup, to flag legal conflicts before distribution. 3. (2025) AI-based collection/analysis V3 — collect license full_text from many sources into one unified store, then have an LLM (ChatGPT API) classify license type (permissive / protective) and key permissions, with prompt engineering to sub-classify protective into Weak / Strong; emits a single refined table.

dependence on an external analysis service (operational/dependency risk) by bringing analysis in-house via LLM.

Relevant when:

classification, or the per-language version-table schema.

Do not read full document unless:

Linked documents:

ON DUPLICATE KEY UPDATE write standard)

standard; crawlers orchestrated via Airflow)

Open Questions

doc is grounded in the human/portfolio items, not in raw project notes. Detailed source notes are Needs confirmation.

schema are not documented here. Needs confirmation.

Details

Stage 1 (2021): License DB-ization & schema foundations

and management complexity as data grew; license info lived in text files, limiting dynamic matching/search against libraries.

independent management); store license pattern mappings as JSON in the DB to enable regex-based dynamic license matching; benchmark REPLACE INTO vs UPDATE vs INSERT ... ON DUPLICATE KEY UPDATE and standardize on the latter (no delete/recreate overhead) as the system-wide write query. (This same write standard later anchors the labrador-sqlmodel queue refactor.)

Stage 2 (2023): License compatibility DB

legal compatibility must be known before distribution to avoid legal risk.

develop a crawler to collect it, and structure it as license pairs indexed by (A, B) → compatible (Yes / No / Unknown) for instant lookup. Judgement is grounded in a trusted public source, not personal estimation.

Stage 3 (2025): AI-based collection/analysis (V3)

depended heavily on an external analysis service.

single full-text store → AI (LLM) classifies type and permissions → Refine into a final single table.

permissive / protective and key permissions; prompt engineering sub-divides protective into Weak / Strong.

dependency/operational risk, deeper/more accurate analysis via AI automation.

연결 문서