Difference between revisions of "Template:Brochure year"

From wikibase-docker
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
 
PREFIX wd: <http://public-wikibase-statbel-wikibase/entity/>
 
PREFIX wd: <http://public-wikibase-statbel-wikibase/entity/>
 
PREFIX wdt: <http://public-wikibase-statbel-wikibase/prop/direct/>
 
PREFIX wdt: <http://public-wikibase-statbel-wikibase/prop/direct/>
SELECT ?ThemaLabel ?SubLabel ?DatasetLabel ?TaalLabel ?NummerLabel ?GrootteLabel ?Link ?OpmLabel
+
SELECT ?ThemaLabel ?SubLabel ?DatasetLabel ?Deel ?TaalLabel ?NummerLabel ?GrootteLabel ?Link ?Opm
 
WHERE
 
WHERE
 
{
 
{
Line 27: Line 27:
 
     ?Dataset wdt:P311 ?Nummer .
 
     ?Dataset wdt:P311 ?Nummer .
 
     ?Dataset wdt:P305 ?Dist .
 
     ?Dataset wdt:P305 ?Dist .
 +
    OPTIONAL {?Dist wdt:P348 ?Deel . }
 
     OPTIONAL {?Dataset wdt:P326 ?Opm .
 
     OPTIONAL {?Dataset wdt:P326 ?Opm .
 
               filter (langmatches(lang(?Opm), "{{{Taal|}}}")) .
 
               filter (langmatches(lang(?Opm), "{{{Taal|}}}")) .
Line 33: Line 34:
 
     BIND(STRLEN(str(?LinkNL)) as ?Iets) .
 
     BIND(STRLEN(str(?LinkNL)) as ?Iets) .
 
     BIND( SUBSTR(str( ?LinkNL), 1,?Iets-4 ) as ?IetsAnders) .
 
     BIND( SUBSTR(str( ?LinkNL), 1,?Iets-4 ) as ?IetsAnders) .
     BIND( CONCAT( "<a target=", '"', "_blank ",'"', "href=",'"',?IetsAnders,".pdf",'"',">",?IetsAnders,".pdf </a>" ) as ?Samen) .
+
     BIND( CONCAT( "<a target=", '"', "_blank ",'"', "href=",'"',?IetsAnders,".pdf",'"',">Link</a>" ) as ?Samen) .
 
     BIND(IRI(REPLACE(?Samen, '^(.+)$', ?Samen)) AS ?Link) .
 
     BIND(IRI(REPLACE(?Samen, '^(.+)$', ?Samen)) AS ?Link) .
 
     ?Dist wdt:P308 ?Code .
 
     ?Dist wdt:P308 ?Code .
Line 40: Line 41:
 
     SERVICE wikibase:label { bd:serviceParam wikibase:language "{{{Taal|}}}". }
 
     SERVICE wikibase:label { bd:serviceParam wikibase:language "{{{Taal|}}}". }
 
}
 
}
ORDER BY ASC(?ThemaLabel) ASC(?SubLabel) ASC(?JaarLabel) ASC(?Nummer)
+
ORDER BY ASC(?ThemaLabel) ASC(?SubLabel) ASC(?DatasetLabel) ASC(?Taal) ASC(?Deel) ASC(?JaarLabel) ASC(?Nummer)
| endpoint = https://wdqs-public-wikibase-statbel.aks-prod.internal.economie.fgov.be/proxy/wdqs/bigdata/namespace/wdq/sparql |log=2 |headers={{#invoke:Wikidata label |getLabel |item=Q8241 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q9739 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q4130 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q6151 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q9487 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q9335 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q21725 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q2263 |lang={{{Taal|}}} |link=- }}}}
+
| endpoint = https://wdqs-public-wikibase-statbel.aks-prod.internal.economie.fgov.be/proxy/wdqs/bigdata/namespace/wdq/sparql |log=2 |headers={{#invoke:Wikidata label |getLabel |item=Q8241 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q9739 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q4130 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q34920 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q6151 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q9487 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q9335 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q21725 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q2263 |lang={{{Taal|}}} |link=- }}}}
  
 
{{LogoEconomie}}
 
{{LogoEconomie}}
  
 
</includeonly>
 
</includeonly>

Latest revision as of 10:23, 5 September 2024


Dit is het "Brochure_year" sjabloon. Het moet in het volgende formaat opgeroepen worden:

{{Brochure_year
|Jaar=
|Taal=
}}

Edit the page to see the template text.