query-acd4565c3f1c7b8b46e0548ef310164d
TODO Városok az alapítás dátumával és annak forrásával
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?item ?itemLabel ?start ?ref ?refLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],hu". }
?item p:P31 ?statement .
?statement ps:P31 wd:Q13218690.
OPTIONAL { ?statement pq:P580 ?start. }
OPTIONAL { ?statement prov:wasDerivedFrom/pr:P248 ?ref . }
}
Query found at
- https://www.wikidata.org/wiki/User:Pallor/Lek%C3%A9rdez%C3%A9s
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2023/11
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v4("?ref"):::projected
v3("?start"):::projected
v2("?statement")
a1((" "))
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,hu"]):::literal
c7(["wd:Q13218690"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> c7
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;
v2 -."prov:wasDerivedFrom".-> a1
a1 --"p:reference/P248"--> v4
end