query-83f665198b024f15361e11db33c9326d
TODO
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?genreLabel
WHERE
{
?item p:P136 ?genredeclaration.
?genredeclaration ps:P136 ?genre.
?genre wdt:P31 wd:Q968159.
MINUS {?genre wdt:P31 wd:Q1792379.}
?genredeclaration prov:wasDerivedFrom ?ref.
?ref pr:P854 ?URLref.
FILTER regex(str(?URLref), "beckchris.wordpress.com")
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?URLref")
v4("?genre")
v3("?genredeclaration")
v2("?item"):::projected
v5("?ref")
c10(["bd:serviceParam"]):::iri
c6(["wd:Q1792379"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q968159"]):::iri
f0[["regex(str(?URLref),'beckchris.wordpress.com')"]]
f0 --> v1
v2 --"p:P136"--> v3
v3 --"p:statement/P136"--> v4
v4 --"p:direct/P31"--> c5
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v4 --"p:direct/P31"--> c6
end
v3 --"prov:wasDerivedFrom"--> v5
v5 --"p:reference/P854"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end