Repository navigation
Seimas members of all terms since 1990 - #32
Open
namedgraph wants to merge 3 commits into
Open
namedgraph wants to merge 3 commits into
namedgraph wants to merge 3 commits into
Conversation
LDH now prefixes its overridable top-level params with ldh:, so the unprefixed override would silently stop applying and the stock query would again exceed MAX_CONTENT_LENGTH. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The members feed returns only the current term unless kadencijos_id is
given, so every person had a single tenure and term counts were all 1.
Members are now fetched per term (fetch-xml-each.sh over the term ids):
831 persons, one #tenure-{term}-{yyyymmdd} per seat, each with its own
ltlod:nominatedBy; sitting members' term counts match the feed's
kadencijų_skaičius.
- persons.rq: member/position/group rows in independent UNION branches
(a single join would multiply term rows x positions x groups)
- nariai.xsl: contacts and bio only from the current term (older rows
carry stale lrs.lt e-mails); district parsed here, with the Nr. 100
"Vyriausioji rinkimų komisija"/"Daugiamandatėje" pseudo-district
treated as a list seat; duplicated positions deduped to the latest end;
hyphens/dashes fold into the slug separator
- constituencies: term-scoped constituencies/{term}-{nr}/, since district
numbers are reused across elections; term name in the title
- parties: one label per slug (spelling variants across terms)
- example queries take the current party from the current tenure
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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
The LDH assistant reported that every current MP had served exactly one term. That came from our data, not the query.
p2b.ad_seimo_nariaireturns only the current term unlesskadencijos_idis passed, so each person had a single#tenure-10. In reality 87 of the 148 current MPs sat in earlier terms.Change
Members are now fetched per term with
fetch-xml-each.shover the term ids, the same way sessions are fetched.#tenure-{term}-{yyyymmdd}; the start date separates a member who left and returned within a term, which happened in term 2. Each tenure carries its ownltlod:nominatedBy. The person-levelltlod:nominatedBylists every party that ever nominated them. The mapping is restructured into independent UNION branches, because a single join would multiply term rows × positions × groups.tevynes-sajunga-–-…duplicate party.constituencies/{term}-{nr}/(771). District numbers are reused for different districts across elections. The generic by-election name "Vienmandatė" yields to the district's real name.?person ltlod:nominatedBy.app/ns.ttlcomments, CLAUDE.md verification counts: updated to match.Verification
riotand SHACL.app/scaffolding).kadencijų_skaičius. Top of the list: Zingeris 9; Butkevičius, Sysas, Ažubalis, Razma 8.EXAMPLES.mdis regenerated.Notes
persons.triggrows from 2.8 MB to 22 MB.constituencies/{nr}/and#tenure-{term}are replaced. Loading is append-only, so redeploying needs a clean reload:make down && rm -rf fuseki/end-user && make up && make load, plusmake installforns.ttl.🤖 Generated with Claude Code