Project:SPARQL/examples

From Resistance in Belgium
Revision as of 13:31, 7 August 2024 by Adminagr (talk | contribs) (Created page with "==== Test template SPARQL ==== {{SPARQL|query= PREFIX wb: <https://data.arch.be/entity/> PREFIX wbt: <https://data.arch.be/prop/direct/> PREFIX wdq: <https://query.wikidata.org/bigdata/namespace/wdq/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?item ?label ?_image WHERE { ?item wbt:P1 wb:Q2. SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" . ?item rdfs:label ?label } } }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Test template SPARQL

PREFIX wb: <https://data.arch.be/entity/>
PREFIX wbt: <https://data.arch.be/prop/direct/>
PREFIX wdq: <https://query.wikidata.org/bigdata/namespace/wdq/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>


SELECT ?item ?label ?_image WHERE {
  ?item wbt:P1 wb:Q2.
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "fr" . 
    ?item rdfs:label ?label
  }
}

Try it!