query-bd008f9b0789b3d8b8b8a5daadaae861
Propertiessource code repository URL (P1324)programmed in (P277)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?property ?propertyLabel ?items ?statements
WHERE {
{
SELECT DISTINCT ?property (COUNT(DISTINCT ?item) AS ?items) (COUNT(*) AS ?statements) WHERE {
{
SELECT DISTINCT ?item WHERE {
{ ?item wdt:P1324 ?sourcecode . }
UNION
{ ?item wdt:P277 ?proglang . }
}
LIMIT 200000
}
?item ?p [ ] .
?property a wikibase:Property;
wikibase:claim ?p.
}
GROUP BY ?property
}
FILTER (?statements > 50)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?statements)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item")
v7("?items"):::projected
v5("?p")
v4("?proglang")
v6("?property"):::projected
v3("?sourcecode")
v8("?statements"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c5(["wikibase:Property"]):::iri
c10(["en"]):::literal
f0[["?statements > '50^^xsd:integer'"]]
f0 --> v8
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P277"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1324"--> v3
end
union0r <== or ==> union0l
end
v2 -->v5--> a1
v6 --"a"--> c5
v6 --"wikibase:claim"--> v5
bind3[/"count(?item)"/]
v2 --o bind3
bind3 --as--o v7
bind4[/"count(*)"/]
bind4 --as--o v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end