Repository navigation
Add company insolvency domain (bankruptcies + restructurings) - #82
Merged
Merged
Conversation
New etl/insolvency/ domain fetching three AVNT feeds from get.data.gov.lt, one
ltlod:InsolvencyProceeding per document (insolvency-cases/{imones_kodas}-{start}):
bankruptcies (avnt/imoniu_bankrotas, 2020+) and restructurings
(avnt/imoniu_restrukturizavimas, 2020+) with their full report fields, plus the
intentional-bankruptcy list (avnt/tyciniai_bankrotai, 1994+), which enriches the
2020+ bankruptcies and adds the ~624 older intentional cases as their own proceedings.
The proceeding links to legal-entities/{imones_kodas}/#this by the bare code
(ltlod:insolvent), lies in a municipality (sdmx-dimension:refArea), and carries a
lifecycle time:Interval (#start -> #end instants) on calendar days. Type (bankruptcy /
restructuring), court and bankruptcy initiator are SKOS concepts (three new taxonomies:
insolvency-types, insolvency-initiators, courts); out-of-court, simplified and
intentional bankruptcy are boolean flags with their milestone dates as literals.
ltlod-insolvency (registered uv tool) fetches all three small tables, decodes the
source's doubled-quote company names, collapses the leading-zero veiklos_kodas
duplicates, coalesces the start date (court bankroto_data / out-of-court
ne_teismo_tvarka), and crosswalks the AVNT 4-digit territory code to the AR
municipality (last two digits = sav_kodas, 2601->13 Vilnius special-cased; the
defunct 2651 Marijampolė district left unmatched). The ...Finansai financial tables
are not used — their eil_nr key joins to no company code in the report tables.
app/ns.ttl: ltlod:InsolvencyProceeding + ltlod:insolvent (with :InsolvencyProceedings
inverse view on the legal entity) and :DayInsolvencyProceedings on dct:temporal
(day -> proceedings via the instant). app/insolvency.ttl container with per-year and
per-municipality charts (no children listing for 6.4k docs). SHACL shapes in
etl/shapes/insolvency.ttl. Two cross-domain cases joined on the JAR code: public
contractors in the insolvency register, and campaign donors that later went insolvent.
Committed output (~6.4k proceedings, 12 MB); part of `make all`.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The two insolvency example queries extracted the proceeding type slug from the
concept URI with REPLACE(STR(?typeConcept), …). Match the concept's skos:prefLabel
instead (GRAPH ?typeGraph { ?typeConcept skos:prefLabel ?type FILTER lang lt }), so
the type is read as data, not parsed out of the IRI; the result column now shows the
Lithuanian label ("Bankrotas" / "Restruktūrizavimas"). EXAMPLES.md regenerated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Second Tier 1 company-data source. A new
etl/insolvency/domain that joins AVNT's insolvency register tolegal-entities/by the bare JAR code, opening cases like public contractors in the insolvency register and campaign donors that later went bankrupt.Three AVNT feeds from get.data.gov.lt, one
ltlod:InsolvencyProceedingper document (insolvency-cases/{imones_kodas}-{start}/):avnt/imoniu_bankrotas— bankruptcies, 2020+, with the full report fields.avnt/imoniu_restrukturizavimas— restructurings, 2020+.avnt/tyciniai_bankrotai— intentional bankruptcies, 1994+; enriches the 2020+ bankruptcies and adds the ~624 older intentional cases as their own proceedings.Model
ltlod:insolvent→legal-entities/{imones_kodas}/#this(bare code;ltlod:companyCode/ltlod:companyNameliterals kept).sdmx-dimension:refArea→ the municipality;dct:type→taxonomies/insolvency-types/(bankruptcy / restructuring);ltlod:court→taxonomies/courts/(5 regional courts);ltlod:initiatedBy→taxonomies/insolvency-initiators/.time:hasTime→time:Interval(#start→#endtime:Instant→ calendar day), so a day page reaches a proceeding that began or closed then.ltlod:outOfCourt/ltlod:simplified/ltlod:intentional+ the intentional / liquidation / deregistration dates as literals.Data handling (
ltlod-insolvency)"UAB ""EDROMA"""→UAB "EDROMA").veiklos_kodasduplicates; coalesces the start date (courtbankroto_data/ out-of-courtne_teismo_tvarka).teritorijos_kodas(7-digit for sub-municipal rows) maps to the ARsav_kodasby its last two digits (2611→11Alytus,2641→41Vilnius r.), with2601→13(Vilnius city) special-cased and the defunct2651(Marijampolė district, abolished 2000) left unmatched. The valid set is read live from the AR classifier....Finansaifinancial tables are not used — theireil_nrkey joins to no company code in the report tables.App / queries
app/ns.ttl:ltlod:InsolvencyProceeding+ltlod:insolventwith the:InsolvencyProceedingsinverse view (an organisation's insolvency cases), and:DayInsolvencyProceedingsondct:temporal(a day's proceedings, via the instant).app/insolvency.ttl: container with per-year and top-municipality charts (no children listing for 6.4k docs). Three SKOS taxonomies added.etl/shapes/insolvency.ttl: SHACL for the proceeding / interval / instant.contractors-in-insolvency.rq,donors-later-insolvent.rq.Verification
2026-10-25 AVNT feeds:
dct:title+foaf:primaryTopic), SHACL conforms, no blank nodes.ltlod:insolventlinks intolegal-entities/dangle for non-budget-institutions until the full JAR register is loaded — expected.queries/EXAMPLES.mdupdated with the two sections only.🤖 Generated with Claude Code