Regex-based citation edge extraction from German legal text.
Edges are typed per the Coupette/Katz/Bommarito 2021 schema.
Detected edge types in v0.1.0:
- cites "§ N Gesetz" / "Art. N Gesetz"
- verweist_iVm "i.V.m. §/Art. N"
Output is a { from: eli, citations: [{to, type, raw}] } graph
fragment. raw preserves the matched source text for diagnostics
and Juristen-review.
Pure in-WASM (regex), zero filesystem, zero network.
Reserved for next versions:
- 0.2: amends, superseded_by (requires title-line analysis)
- 0.3: transposes (requires cross-document EUR-Lex resolution —
belongs in a separate graph.resolve step rather than
here)
- 0.4: delegates_to_land / delegates_to_kommune
Signed-off-by: flemming-it <sf@flemming.it>
36 lines
965 B
YAML
36 lines
965 B
YAML
schema_version: 3
|
|
provider: chain
|
|
name: graph-citation-extract
|
|
version: 0.1.0
|
|
|
|
# Extracts typed citations from German legal text. Edges are
|
|
# tagged (`cites`, `verweist_iVm`, …) per Studie §6.2 / Coupette
|
|
# 2021 schema.
|
|
#
|
|
# Reuse-lens: citation graphs are useful for scientific papers,
|
|
# patents, court cases, technical specs — anywhere structured
|
|
# cross-references matter.
|
|
provides:
|
|
- capability: graph.citation_extract
|
|
version: 0.1.0
|
|
|
|
inputs:
|
|
norm:
|
|
type: json
|
|
description:
|
|
en: NormalizedNorm (output of text.akoma_normalize).
|
|
de: NormalizedNorm (Output von text.akoma_normalize).
|
|
|
|
outputs:
|
|
citations:
|
|
type: json
|
|
description:
|
|
en: |
|
|
{ from: eli, citations: [{to, type, raw}] }.
|
|
type ∈ { cites, verweist_iVm, transposes (if detected),
|
|
amends }. raw preserves the matched source text for
|
|
diagnostics.
|
|
de: |
|
|
{ from: eli, citations: [{to, type, raw}] }.
|
|
|
|
permissions: []
|