<https://linkeddata.lt/declarations/#chart-by-party-query>
        a                             <http://spinrdf.org/sp#Select>;
        <http://purl.org/dc/terms/title>
                "Net worth of Seimas members by nominating party"@en , "Seimo narių grynasis turtas pagal juos iškėlusią partiją"@lt;
        <http://spinrdf.org/sp#text>  "PREFIX dct:    <http://purl.org/dc/terms/>\nPREFIX org:    <http://www.w3.org/ns/org#>\nPREFIX schema: <https://schema.org/>\nPREFIX skos:   <http://www.w3.org/2004/02/skos/core#>\nPREFIX time:   <http://www.w3.org/2006/time#>\nPREFIX ltlod:  <http://linkeddata.lt/ns#>\n\n# Sitting Seimas members (open seat interval) grouped by the party that nominated them\n# this term, with the mean and the maximum net worth (as in the chart above). Grouped by\n# party, not faction: a renamed faction carries all its historical names as prefLabels.\n# Parties with fewer than 3 declaring members are left out — a mean of one is no mean.\nSELECT ?partija (ROUND(AVG(?net)) AS ?vidurkis) (MAX(?net) AS ?turtingiausias)\nWHERE\n{\n    {\n        SELECT ?person (SUM(IF(STRENDS(STR(?category), \"/pasiskolintos-lesos/#this\"), -?value, ?value)) AS ?net)\n        WHERE\n        {\n            {\n                SELECT (MAX(STR(?y)) AS ?latest)\n                WHERE { GRAPH ?g { ?d a ltlod:AssetDeclaration ; dct:temporal ?y } }\n            }\n            GRAPH ?declarationGraph\n            {\n                ?declaration a ltlod:AssetDeclaration ;\n                    dct:temporal ?year ;\n                    ltlod:declarant ?person ;\n                    ltlod:declaredValue ?amount .\n                ?amount dct:type ?category ;\n                    schema:value ?value .\n            }\n            FILTER(STR(?year) = ?latest)\n        }\n        GROUP BY ?person\n    }\n    GRAPH ?personGraph\n    {\n        ?membership org:member ?person ;\n            ltlod:nominatedBy ?party ;\n            org:memberDuring ?interval .\n        FILTER NOT EXISTS { ?interval time:hasEnd ?end }\n    }\n    GRAPH ?partyGraph { ?party skos:prefLabel ?partija }\n}\nGROUP BY ?partija\nHAVING (COUNT(?person) >= 3)\nORDER BY DESC(?vidurkis)" .

<https://linkeddata.lt/declarations/#chart-richest-query>
        a                             <http://spinrdf.org/sp#Select>;
        <http://purl.org/dc/terms/title>
                "Politicians with the largest declared net worth"@en , "Didžiausią grynąjį turtą deklaravę politikai"@lt;
        <http://spinrdf.org/sp#text>  "PREFIX dct:    <http://purl.org/dc/terms/>\nPREFIX foaf:   <http://xmlns.com/foaf/0.1/>\nPREFIX schema: <https://schema.org/>\nPREFIX ltlod:  <http://linkeddata.lt/ns#>\n\n# Net worth = every declared amount minus borrowed funds (pasiskolintos-lesos, a liability\n# per the asset-categories scheme), in the latest reporting year present. Categories\n# never overlap within a year (the parent sums before 2017, the LT/abroad split since),\n# so summing all amounts does not double count. Amounts are EUR from 2015 on.\nSELECT ?vardas (SUM(IF(?debt, -?value, ?value)) AS ?grynasis_turtas) (SUM(IF(?debt, ?value, 0)) AS ?skolos)\nWHERE\n{\n    {\n        SELECT (MAX(STR(?y)) AS ?latest)\n        WHERE { GRAPH ?g { ?d a ltlod:AssetDeclaration ; dct:temporal ?y } }\n    }\n    GRAPH ?declarationGraph\n    {\n        ?declaration a ltlod:AssetDeclaration ;\n            dct:temporal ?year ;\n            ltlod:declarant ?person ;\n            ltlod:declaredValue ?amount .\n        ?amount dct:type ?category ;\n            schema:value ?value .\n    }\n    FILTER(STR(?year) = ?latest)\n    BIND(STRENDS(STR(?category), \"/pasiskolintos-lesos/#this\") AS ?debt)\n    GRAPH ?personGraph { ?person foaf:name ?vardas }\n}\nGROUP BY ?person ?vardas\nORDER BY DESC(?grynasis_turtas)\nLIMIT 15" .

<https://linkeddata.lt/declarations/#chart-richest>
        a       <https://w3id.org/atomgraph/linkeddatahub#ResultSetChart>;
        <http://purl.org/dc/terms/title>
                "Didžiausią turtą deklaravę politikai"@lt , "Politicians with the largest declared net worth"@en;
        <http://spinrdf.org/spin#query>
                <https://linkeddata.lt/declarations/#chart-richest-query>;
        <https://w3id.org/atomgraph/linkeddatahub#categoryVarName>
                "vardas";
        <https://w3id.org/atomgraph/linkeddatahub#chartType>
                <https://w3id.org/atomgraph/client#BarChart>;
        <https://w3id.org/atomgraph/linkeddatahub#seriesVarName>
                "skolos" , "grynasis_turtas" .

<https://linkeddata.lt/declarations/#intro>
        a       <https://w3id.org/atomgraph/linkeddatahub#XHTML>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#value>
                "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n        <p class=\"lede\">Seimo narių, ministrų, Europos Parlamento narių ir Respublikos Prezidento metinės turto deklaracijos iš VMI: nekilnojamasis turtas, žemė, transportas, vertybiniai popieriai, piniginės lėšos, paskolos ir skolos. Kiekviena deklaracija susieta su deklaruotoju, jo partija ir kalendoriaus metais.</p>\n        <p>Kas deklaravo daugiausia? Grynasis turtas — visų deklaruotų turto rūšių suma, atėmus pasiskolintas ir negrąžintas lėšas, naujausių deklaracijų metais. Sumos tokios, kokias deklaravo patys politikai: turtas vertinamas deklaruotojo nurodyta verte, ne rinkos kaina.</p>\n        <p>Daugiau — istorijoje <a href=\"../stories/seimo-turtas-2024/\">„Seimo turtas 2024“</a>.</p>\n    </div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .

<https://linkeddata.lt/declarations/#chart-abroad-block>
        a       <https://w3id.org/atomgraph/linkeddatahub#Object>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#value>
                <https://linkeddata.lt/declarations/#chart-abroad> .

<https://linkeddata.lt/declarations/>
        a       <https://w3id.org/atomgraph/linkeddatahub/document-hierarchy#Container>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1>
                <https://linkeddata.lt/declarations/#intro>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2>
                <https://linkeddata.lt/declarations/#chart-richest-block>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#_3>
                <https://linkeddata.lt/declarations/#chart-by-party-block>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#_4>
                <https://linkeddata.lt/declarations/#chart-abroad-block>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#_5>
                <https://linkeddata.lt/declarations/#select-children>;
        <http://purl.org/dc/terms/created>
                "2026-10-26T11:57:54.326Z"^^<http://www.w3.org/2001/XMLSchema#dateTime>;
        <http://purl.org/dc/terms/creator>
                <https://admin.linkeddata.lt/acl/agents/31a44ec8-9df3-483f-8c96-3fbfed33fae6/#this>;
        <http://purl.org/dc/terms/modified>
                "2026-10-26T12:41:05.626Z"^^<http://www.w3.org/2001/XMLSchema#dateTime>;
        <http://purl.org/dc/terms/title>
                "Turto deklaracijos"@lt , "Property declarations"@en;
        <http://rdfs.org/sioc/ns#has_parent>
                <https://linkeddata.lt/>;
        <http://www.w3.org/ns/auth/acl#owner>
                <https://admin.linkeddata.lt/acl/agents/31a44ec8-9df3-483f-8c96-3fbfed33fae6/#this> .

<https://linkeddata.lt/declarations/#chart-by-party>
        a       <https://w3id.org/atomgraph/linkeddatahub#ResultSetChart>;
        <http://purl.org/dc/terms/title>
                "Declared net worth by party"@en , "Deklaruotas turtas pagal partiją"@lt;
        <http://spinrdf.org/spin#query>
                <https://linkeddata.lt/declarations/#chart-by-party-query>;
        <https://w3id.org/atomgraph/linkeddatahub#categoryVarName>
                "partija";
        <https://w3id.org/atomgraph/linkeddatahub#chartType>
                <https://w3id.org/atomgraph/client#BarChart>;
        <https://w3id.org/atomgraph/linkeddatahub#seriesVarName>
                "turtingiausias" , "vidurkis" .

<https://linkeddata.lt/declarations/#chart-by-party-block>
        a       <https://w3id.org/atomgraph/linkeddatahub#Object>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#value>
                <https://linkeddata.lt/declarations/#chart-by-party> .

<https://linkeddata.lt/declarations/#select-children>
        a       <https://w3id.org/atomgraph/linkeddatahub#Object>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#value>
                <https://w3id.org/atomgraph/linkeddatahub#ChildrenView> .

<https://linkeddata.lt/declarations/#chart-richest-block>
        a       <https://w3id.org/atomgraph/linkeddatahub#Object>;
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#value>
                <https://linkeddata.lt/declarations/#chart-richest> .

<https://linkeddata.lt/declarations/#chart-abroad-query>
        a                             <http://spinrdf.org/sp#Select>;
        <http://purl.org/dc/terms/title>
                "Assets abroad declared by Seimas members"@en , "Seimo narių užsienyje deklaruotas turtas"@lt;
        <http://spinrdf.org/sp#text>  "PREFIX dct:    <http://purl.org/dc/terms/>\nPREFIX epvoc:  <https://data.europarl.europa.eu/def/epvoc#>\nPREFIX foaf:   <http://xmlns.com/foaf/0.1/>\nPREFIX org:    <http://www.w3.org/ns/org#>\nPREFIX schema: <https://schema.org/>\nPREFIX skos:   <http://www.w3.org/2004/02/skos/core#>\nPREFIX time:   <http://www.w3.org/2006/time#>\nPREFIX xsd:    <http://www.w3.org/2001/XMLSchema#>\nPREFIX ltlod:  <http://linkeddata.lt/ns#>\n\n# Every amount declared in an \"-uzsienyje\" (abroad) category in the latest reporting\n# year by a sitting Seimas member (open seat interval); the long official category names\n# are shortened by slug.\nSELECT ?vardas ?turtas ?verte\nWHERE\n{\n    {\n        SELECT (MAX(STR(?y)) AS ?latest)\n        WHERE { GRAPH ?g { ?d a ltlod:AssetDeclaration ; dct:temporal ?y } }\n    }\n    VALUES (?slug ?turtas)\n    {\n        (\"butai-uzsienyje\" \"Butas\")\n        (\"namai-uzsienyje\" \"Gyvenamasis namas\")\n        (\"kiti-statiniai-uzsienyje\" \"Kiti statiniai\")\n        (\"nebaigti-statiniai-uzsienyje\" \"Nebaigti statiniai\")\n        (\"zemes-sklypai-uzsienyje\" \"Žemės sklypai\")\n        (\"pinigai-uzsienyje\" \"Piniginės lėšos\")\n    }\n    GRAPH ?declarationGraph\n    {\n        ?declaration a ltlod:AssetDeclaration ;\n            dct:temporal ?year ;\n            ltlod:declarant ?person ;\n            ltlod:declaredValue ?amount .\n        ?amount dct:type ?category ;\n            schema:value ?verte .\n    }\n    FILTER(STR(?year) = ?latest)\n    FILTER(STRENDS(STR(?category), CONCAT(\"/asset-categories/\", ?slug, \"/#this\")))\n    FILTER EXISTS\n    {\n        GRAPH ?personGraph\n        {\n            ?seat epvoc:memberDuringParliamentaryTerm ?term ;\n                org:member ?person ;\n                org:memberDuring ?interval .\n            FILTER NOT EXISTS { ?interval time:hasEnd ?seatEnd }\n        }\n    }\n    GRAPH ?nameGraph { ?person foaf:name ?vardas }\n}\nORDER BY DESC(?verte)" .

<https://linkeddata.lt/declarations/#chart-abroad>
        a       <https://w3id.org/atomgraph/linkeddatahub#ResultSetChart>;
        <http://purl.org/dc/terms/title>
                "Seimo narių turtas užsienyje"@lt , "Assets abroad declared by Seimas members"@en;
        <http://spinrdf.org/spin#query>
                <https://linkeddata.lt/declarations/#chart-abroad-query>;
        <https://w3id.org/atomgraph/linkeddatahub#categoryVarName>
                "vardas";
        <https://w3id.org/atomgraph/linkeddatahub#chartType>
                <https://w3id.org/atomgraph/client#Table>;
        <https://w3id.org/atomgraph/linkeddatahub#seriesVarName>
                "verte" , "turtas" .
