query-2ab45c1cf81a3823895fce087a3acea5
Missing preferred source code repository URL (P1324)Software for which multiple source code repositories are listed but none of them is preferred.
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (COUNT(?value) AS ?count) (GROUP_CONCAT(?value) AS ?values)
WHERE
{
?item p:P1324 [ ps:P1324 ?value; wikibase:rank wikibase:NormalRank ].
MINUS { ?item p:P1324/wikibase:rank wikibase:PreferredRank. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?item ?itemLabel
HAVING(?count > 1)
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?item"):::projected
v2("?value"):::projected
v4("?values")
a1((" "))
a2((" "))
c8(["bd:serviceParam"]):::iri
c6(["wikibase:PreferredRank"]):::iri
c4(["wikibase:NormalRank"]):::iri
c10(["en"]):::literal
f0[["?count > '1^^xsd:integer'"]]
f0 --> v4
a1 --"p:statement/P1324"--> v2
a1 --"wikibase:rank"--> c4
v3 --"p:P1324"--> a1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:P1324"--> a2
a2 --"wikibase:rank"--> c6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind4[/"count(?value)"/]
v2 --o bind4
bind4 --as--o v4
bind5[/"?value"/]
v2 --o bind5
bind5 --as--o v4