Materialize cross-domain links in committed datasets#15
Merged
Conversation
Commit c95f02d added the cross-domain mapping code (MP -> electoral constituency, legal entity -> registered admin unit) but shipped pipeline code only, without regenerating datasets/current/. The committed snapshots therefore lacked the links, and the two example queries that rely on them returned nothing. Regenerate the affected domains (make -C etl/seimas all, make -C etl/legal-entities all) so the snapshots include: - persons.trig: ltlod:electoralDistrict from each single-member seat tenure to constituencies/ (74 links across 71 districts); plus fresh members-feed data (a membership end date, new tenure records). - constituencies/constituencies.trig: 71 single-member electoral districts (apygardos) parsed from the members feed (new container). - institutions.trig: the SEMIC registered-office chain org:hasRegisteredSite -> org:Site -> org:siteAddress -> locn:Address -> locn:adminUnit into the admin-units hierarchy (2507 offices resolved). - EXAMPLES.md: the previously-empty "Seimo nariai pagal apygardą" and "Įstaigos pagal savivaldybę" result tables, re-rendered. Both datasets validate (riot + SHACL). The large TriG line churn is arq CONSTRUCT output reordering, not semantic change (persons.trig delta is +78/-1 quads by sorted N-Quads). Co-Authored-By: Claude Opus 4.8 (1M context) <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.
Problem
Commit
c95f02d("Add deterministic cross-domain links") added the mapping code for two cross-domain links but shipped pipeline code only — its message notesdatasets/current/snapshots were not regenerated. As a result the committed data lacked the links, and two example queries returned empty result tables:ltlod:electoralDistrict+ theconstituencies/container, neither present.org:hasRegisteredSite → locn:adminUnitchain, not present.Fix
Regenerated the affected domains from the live sources (
make -C etl/seimas all,make -C etl/legal-entities all,BASE=https://linkeddata.lt/) and re-rendered the examples:datasets/current/seimas/persons.trigltlod:electoralDistrictlinks (71 districts) + minor fresh members-feed datadatasets/current/constituencies/constituencies.trigdatasets/current/legal-entities/institutions.triglocn:adminUnitlinks (6,025 graphs)etl/queries/EXAMPLES.mdValidation
riot --validate+ SHACL (seimas.ttl,constituencies.ttl,legal-entities.ttl).arqCONSTRUCT output reordering, not semantic change —persons.trigreal delta is +78 / −1 quads by sorted N-Quads.🤖 Generated with Claude Code