query-05e0f41f0e6f81c310f01db76239c89f
Queries 18:34, 10 June 2016 (UTC)) talk (Tobias1984 that can gather interesting and useful queries about Books. Please add your examples! --Wikidata:WikiProject Books/QueriesI started a page here Your query give me an other idea fo query : !Tobias1984Great idea 10:01, 11 June 2016 (UTC)) talk (SamwilsonThat's a terrific idea. :) I'll add some snippets I've been using.
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?item ?itemLabel ?article WHERE {
?article schema:about ?item ; schema:isPartOf <https://fr.wikisource.org/>.
?item wdt:P31 wd:Q571 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?article"):::projected
v2("?item"):::projected
c7(["bd:serviceParam"]):::iri
c3([https://fr.wikisource.org/]):::iri
c9(["fr"]):::literal
c5(["wd:Q571"]):::iri
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c3
v2 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end