Provinces: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
=== Province de Namur Test avec beaucoup de données et colonnes === | |||
<div class="table-container"> | <div class="table-container"> | ||
{{#sparql: | {{#sparql: | ||
SELECT DISTINCT ? | SELECT DISTINCT (?person AS ?link) (?lastName AS ?lastName) (?firstName AS ?firstName) (?middleNames AS ?middleNames) ?genderLabel ?residenceLabel | ||
? | (CONCAT(SUBSTR(STR(?birthDate), 1, 4), "-", SUBSTR(STR(?birthDate), 6, 2), "-", SUBSTR(STR(?birthDate), 9, 2)) AS ?birthDateFormatted) | ||
? | (CONCAT(SUBSTR(STR(?deathDate), 1, 4), "-", SUBSTR(STR(?deathDate), 6, 2), "-", SUBSTR(STR(?deathDate), 9, 2)) AS ?deathDateFormatted) | ||
(GROUP_CONCAT(DISTINCT ? | ?profession ?birthPlaceLabel ?civilStatusLabel ?motherTongueLabel ?nationalityCountryLabel | ||
?requestStatusLabel ?decisionStatusLabel ?archivesCollectionLabel ?inventoryNumber ?wikidataIdentifier | |||
(GROUP_CONCAT(DISTINCT ?affiliationLabel; SEPARATOR = " ; ") AS ?affiliations) | |||
WHERE { | WHERE { | ||
? | ?person wdt:P7 ?residence . | ||
? | ?residence wdt:P14* wd:Q53 . # Province of Namur | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P2 ?firstName } | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P42 ?middleNames } | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P3 ?lastName } | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P4 ?gender } | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P67 ?birthDate } | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P68 ?deathDate } | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P13 ?profession } | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P46 ?birthPlace } | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P50 ?civilStatus } | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P44 ?motherTongue } | ||
OPTIONAL { ? | OPTIONAL { ?person wdt:P45 ?nationalityCountry } | ||
OPTIONAL { ?person wdt:P54 ?requestStatus } | |||
OPTIONAL { ? | OPTIONAL { ?person wdt:P55 ?decisionStatus } | ||
OPTIONAL { ? | |||
?person p:P34 ?archives_statement . | |||
? | ?archives_statement ps:P34 ?archivesCollection . | ||
?archives_statement ps:P34 ? | ?archives_statement pq:P35 ?inventoryNumber . | ||
?archives_statement pq:P35 ? | |||
OPTIONAL { ? | OPTIONAL { ?person wdt:P15 ?wikidataIdentifier } | ||
OPTIONAL { | OPTIONAL { | ||
? | ?person wdt:P52 ?affiliation . | ||
? | ?affiliation rdfs:label ?affiliationLabel . | ||
FILTER(lang(? | FILTER(lang(?affiliationLabel) = 'en') | ||
} | } | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | ||
} | } | ||
GROUP BY ? | GROUP BY ?person ?lastName ?firstName ?middleNames ?genderLabel ?residenceLabel ?birthDate ?deathDate ?profession | ||
? | ?birthPlaceLabel ?civilStatusLabel ?motherTongueLabel ?nationalityCountryLabel ?requestStatusLabel ?decisionStatusLabel | ||
? | ?archivesCollectionLabel ?inventoryNumber ?wikidataIdentifier | ||
ORDER BY ASC(?lastName) ASC(?firstName) | |||
LIMIT 40 | LIMIT 40 | ||
| chart=bordercloud.visualization.DataTable | | chart=bordercloud.visualization.DataTable | ||
| class=my-table-class sortable | | class=my-table-class sortable |
Revision as of 10:21, 17 September 2024