query-4eca90eff1f06b00287eb658f019c241
.on Mastodon and on TwitterOriginally posted
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?biennale ?biennaleLabel WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "Search";
mwapi:srsearch "inlabel:biennale@en";
mwapi:srlimit "max".
?biennale wikibase:apiOutputItem mwapi:title.
}
?biennale p:P2257/psv:P2257 ?interval.
?interval wikibase:quantityAmount ?intervalAmount;
wikibase:quantityUnit ?intervalUnit.
FILTER(!(?intervalAmount = 2 && ?intervalUnit IN (wd:Q577, wd:Q1092296)))
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;
v3("?biennale"):::projected
v4("?interval")
v1("?intervalAmount")
v2("?intervalUnit")
a1((" "))
c7(["www.wikidata.org"]):::literal
c11(["inlabel:biennale@en"]):::literal
c13(["max"]):::literal
c5(["bd:serviceParam"]):::iri
c9(["Search"]):::literal
c22(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c15(["mwapi:title"]):::iri
list0c1(["wd:Q577"]):::iri
list0c2(["wd:Q1092296"]):::iri
list0c1 --o f0
list0c2 --o f0
f0[["not ?intervalAmount = '2^^xsd:integer' in "]]
f0 --> v1
f0 --> v2
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c5 --"mwapi:endpoint"--> c7
c5 --"mwapi:api"--> c9
c5 --"mwapi:srsearch"--> c11
c5 --"mwapi:srlimit"--> c13
v3 --"mwapi:apiOutputItem"--> c15
end
v3 --"p:P2257"--> a1
a1 --"p:statement/value/P2257"--> v4
v4 --"mwapi:quantityAmount"--> v1
v4 --"mwapi:quantityUnit"--> v2
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c5 --"mwapi:language"--> c22
end