query-1a5b70151df21e17f3f6af2dd69ddff2
Propertiessubclass of (P279)inception (P571)official website (P856)instance of (P31)
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?inception ?official_website WHERE {
?item (p:P31/ps:P31/(wdt:P279*)) wd:Q98163019.
OPTIONAL { ?item wdt:P571 ?inception. }
OPTIONAL { ?item wdt:P856 ?official_website. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY (?inception) (?itemLabel)
Query found at
- https://www.wikidata.org/wiki/User:EmericusPetro/sandbox/List_of_OpenStreetMap_editors
- https://www.wikidata.org/wiki/User:WiK14ot0g/sandbox/test
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?inception"):::projected
v3("?item"):::projected
v2("?itemLabel"):::projected
v4("?official_website"):::projected
a1((" "))
a2((" "))
c8(["bd:serviceParam"]):::iri
c4(["wd:Q98163019"]):::iri
c10(["en"]):::literal
v3 --"p:P31"--> a1
a1 --"p:statement/P31"--> a2
a2 --"p:direct/P279"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P571".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P856".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end