query-de25d6472e0f4ee539a34e560f712ec1
Limiting results based on number of itemsI have my query to select properties and values
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?art ?wdLabel ?ps_Label {
VALUES (?art) {(wd:Q3947822)}
?art ?p ?statement .
?statement ?ps ?ps_ .
?wd wikibase:claim ?p.
?wd wikibase:statementProperty ?ps.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?art"):::projected
v2("?p")
v4("?ps")
v5("?ps_")
v3("?statement")
v6("?wd")
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
bind0[/VALUES ?art/]
bind0-->v1
bind00(["wd:Q3947822"])
bind00 --> bind0
v1 -->v2--> v3
v3 -->v4--> v5
v6 --"wikibase:claim"--> v2
v6 --"wikibase:statementProperty"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end