Text
PREFIX org:   <http://www.w3.org/ns/org#>
PREFIX skos:  <http://www.w3.org/2004/02/skos/core#>
PREFIX time:  <http://www.w3.org/2006/time#>

# LDH renders a view by DESCRIBE-ing the projected terms, so project a single
# entity type — the chair persons. LDH resolves each person's label, portrait
# and links from their own description. (Projecting several types, or label
# literals, produces a muddled or empty table.) The role-per-unit detail lives
# in the full query in queries/committee-chairs.rq and EXAMPLES.md.
SELECT DISTINCT ?person
WHERE
{
    GRAPH ?personGraph
    {
        ?membership a org:Membership ;
            org:member ?person ;
            org:role ?roleConcept ;
            org:memberDuring ?interval .
        FILTER NOT EXISTS { ?interval time:hasEnd ?end }
    }
    GRAPH ?roleGraph { ?roleConcept skos:prefLabel ?role }
    FILTER(LANG(?role) = "lt" &&
           (CONTAINS(LCASE(STR(?role)), "pirminink") || CONTAINS(LCASE(STR(?role)), "seniūn")))
    FILTER(!CONTAINS(LCASE(STR(?role)), "pavaduotoj"))   # skip deputies
}
ORDER BY ?person
Title
Committee and commission chairsen
Komitetų ir komisijų pirmininkailt
Text
PREFIX cv:   <http://data.europa.eu/m8g/>
PREFIX atu:  <http://publications.europa.eu/resource/authority/atu-type/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

# Top-level admin units = counties (apskritys), identified by EU ATU level LTU_APS.
# LDH DESCRIBEs each ?unit; GridMode renders it as a card with one image. The SELECT
# can't pick which (it's DESCRIBE-wrapped, and LDH's ac:image shows the single most
# representative image) — so reconciliation puts the coat of arms (P94) on foaf:img
# (which outranks foaf:depiction) and any scenery photo (P18) on foaf:depiction,
# giving every card a coat of arms deterministically. Project a single entity type.
SELECT DISTINCT ?unit
WHERE
{
    GRAPH ?graph
    {
        ?unit a cv:AdminUnit ;
            cv:level atu:LTU_APS ;
            skos:prefLabel ?label .
    }
}
ORDER BY ?label
Title
Countiesen
Apskrityslt
Category variable name
faction
Chart type
Series variable name
members
Title
Faction sizesen
Frakcijų dydžiailt
Text
PREFIX dct:  <http://purl.org/dc/terms/>
PREFIX org:  <http://www.w3.org/ns/org#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX time: <http://www.w3.org/2006/time#>

SELECT ?faction (COUNT(DISTINCT ?person) AS ?members)
WHERE
{
    GRAPH ?personGraph
    {
        ?membership org:member ?person ;
            org:organization ?org ;
            org:memberDuring ?interval .
        FILTER NOT EXISTS { ?interval time:hasEnd ?end }
    }
    GRAPH ?orgGraph
    {
        ?org dct:type ?type ;
            skos:prefLabel ?faction .
    }
    GRAPH ?typeGraph { ?type skos:prefLabel ?typeLabel }
    FILTER(CONTAINS(LCASE(STR(?typeLabel)), "frakcij"))
    FILTER(LANG(?faction) = "lt")
}
GROUP BY ?faction
ORDER BY DESC(?members)
Title
Members by factionen
Nariai pagal frakcijąlt
Category variable name
party
Chart type
Series variable name
end
seats
start
Title
Parties in the Seimasen
Partijos Seimelt
Text
PREFIX ltlod: <http://linkeddata.lt/ns#>
PREFIX skos:  <http://www.w3.org/2004/02/skos/core#>

# LDH renders a view by DESCRIBE-ing the projected terms, so project a single
# entity type — the parties. Each party's label/links come from its own
# description. (Per-party member counts are not shown — a DESCRIBE view can't
# render an aggregate; those counts stay available via SPARQL / EXAMPLES.md.)
SELECT DISTINCT ?party
WHERE
{
    GRAPH ?personGraph { ?person ltlod:nominatedBy ?party }
    GRAPH ?partyGraph { ?party skos:prefLabel ?label }
}
ORDER BY ?label
Title
Parties that nominated members of the Seimasen
Seimo narius iškėlusios partijoslt
Text
PREFIX epvoc: <https://data.europarl.europa.eu/def/epvoc#>
PREFIX org:   <http://www.w3.org/ns/org#>
PREFIX skos:  <http://www.w3.org/2004/02/skos/core#>
PREFIX time:  <http://www.w3.org/2006/time#>
PREFIX xsd:   <http://www.w3.org/2001/XMLSchema#>
PREFIX ltlod: <http://linkeddata.lt/ns#>

# Members counted per (nominating party, term) over the Seimas seat memberships, which
# carry both ltlod:nominatedBy and the term. The ongoing term has no time:hasEnd, so its
# bar ends today; every row needs both dates, typed xsd:date, for the Timeline columns.
SELECT ?party ?seats ?start ?end
WHERE
{
    {
        SELECT ?nominator ?term (COUNT(DISTINCT ?person) AS ?members)
        WHERE
        {
            GRAPH ?personGraph
            {
                ?membership ltlod:nominatedBy ?nominator ;
                    epvoc:memberDuringParliamentaryTerm ?term ;
                    org:member ?person .
            }
        }
        GROUP BY ?nominator ?term
        HAVING (COUNT(DISTINCT ?person) >= 5)
    }
    GRAPH ?partyGraph { ?nominator skos:prefLabel ?party }
    GRAPH ?termGraph
    {
        ?term time:hasTime ?interval .
        ?interval time:hasBeginning/time:inXSDDate ?start .
        OPTIONAL { ?interval time:hasEnd/time:inXSDDate ?termEnd }
    }
    BIND(COALESCE(?termEnd, STRDT(SUBSTR(STR(NOW()), 1, 10), xsd:date)) AS ?end)
    BIND(CONCAT(STR(?members), " nar.") AS ?seats)
}
ORDER BY ?start ?party
Title
Party members of the Seimas per termen
Partijų Seimo nariai pagal kadencijąlt
Text
PREFIX eli-dl: <http://data.europa.eu/eli/eli-draft-legislation-ontology#>
PREFIX schema: <https://schema.org/>

# Project a single entity type — the sittings. The ongoing session is the one
# without eli-dl:activity_end_date (sessions.rq).
SELECT DISTINCT ?sitting
WHERE
{
    GRAPH ?sessionGraph
    {
        ?session a schema:EventSeries ;
            eli-dl:activity_start_date ?sessionStart .
        FILTER NOT EXISTS { ?session eli-dl:activity_end_date ?sessionEnd }
    }
    GRAPH ?sittingGraph
    {
        ?sitting eli-dl:forms_part_of ?session ;
            eli-dl:activity_date ?date .
    }
}
ORDER BY DESC(?date) DESC(?sitting)
Title
Sittings of the current sessionen
Dabartinės sesijos posėdžiailt