query-289031acbcce2f4286da6ea869a0e061
ā€ˇCarlobia
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?collection ?collectionLabel ?date ?number ?creator ?creatorLabel ?c WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?collection wdt:P31 wd:Q2668072. # type of
?collection p:P127 ?owner_statement.
?owner_statement a wikibase:BestRank; ps:P127 wd:Q3747226 . # is property of
OPTIONAL { ?owner_statement pq:P580 ?date . }
OPTIONAL { ?collection p:P2670 [ a wikibase:BestRank; pq:P1114 ?number ] . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?collection"):::projected
v3("?date"):::projected
v4("?number"):::projected
v2("?owner_statement")
a1((" "))
c11(["wd:Q3747226"]):::iri
c9(["wikibase:BestRank"]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q2668072"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:direct/P31"--> c6
v1 --"p:P127"--> v2
v2 --"a"--> c9
v2 --"p:statement/P127"--> c11
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P580".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
a1 -."a".-> c9
a1 --"p:qualifier/P1114"--> v4
v1 --"p:P2670"--> a1
end