query-8707f4f2002f952396f48e61452639ba
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
prefix schema: <http://schema.org/>
Select distinct ?sujet ?sujetLabel ?articleja ?articlefr ?badgeLabel {
?articleja schema:about ?sujet .
?articleja schema:inLanguage "ja" .
?articleja wikibase:badge ?badge .
?articlefr rdf:type schema:Article .
?articlefr schema:about ?sujet .
?articlefr schema:inLanguage "fr" .
filter not exists {
?articlefr wikibase:badge wd:Q17437796 .
}
filter regex(str(?articlefr), "wikipedia") .
filter regex(str(?articleja), "wikipedia") .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "fr,ja" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?articlefr"):::projected
v1("?articleja"):::projected
v4("?badge")
v3("?sujet"):::projected
c8(["schema:Article"]):::iri
c13(["fr,ja"]):::literal
c9(["fr"]):::literal
c11(["bd:serviceParam"]):::iri
c6(["ja"]):::literal
c3(["wd:Q17437796"]):::iri
f0[["regex(str(?articleja),'wikipedia')"]]
f0 --> v1
f1[["regex(str(?articlefr),'wikipedia')"]]
f1 --> v2
f2[["not "]]
subgraph f2e0["Exists Clause"]
e0v1 --"wikibase:badge"--> e0c2
e0v1("?articlefr"):::projected
e0c2(["wd:Q17437796"]):::iri
end
f2--EXISTS--> f2e0
f2 --> v2
f2 --> c2
f2 --> c3
v2 --"wikibase:badge"--> c3
v1 --"schema:about"--> v3
v1 --"schema:inLanguage"--> c6
v1 --"wikibase:badge"--> v4
v2 --"a"--> c8
v2 --"schema:about"--> v3
v2 --"schema:inLanguage"--> c9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end