query-af8732b75474851a41fe76e8fca52c64
title: items with a GitHub username AND an ORCID AND a site link in the Wikimedia platform SELECT DISTINCT ?item ?itemLabel ?github_user ?orcid ?sitelinks WITH { SELECT ?item ?github_user ?sitelinks WHERE { ?item wdt:P2037 ?github_user . ?item wikibase:sitelinks ?sitelinks . } } AS %github WHERE { INCLUDE %github ?item wdt:P496 ?orcid . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en"). FILTER(?sitelinks > 0 ) } ORDER BY DESC(?sitelinks)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#title: items with a GitHub username AND an ORCID AND a site link in the Wikimedia platform
SELECT DISTINCT ?item ?itemLabel ?github_user ?orcid ?sitelinks
WHERE {
{
SELECT ?item ?github_user ?sitelinks WHERE {
?item wdt:P2037 ?github_user .
?item wikibase:sitelinks ?sitelinks .
}
} ?item wdt:P496 ?orcid .
?item rdfs:label ?itemLabel .
FILTER(LANG(?itemLabel) = "en").
FILTER(?sitelinks > 0
)
}
ORDER BY DESC(?sitelinks)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?github_user"):::projected
v3("?item"):::projected
v2("?itemLabel"):::projected
v5("?orcid"):::projected
v1("?sitelinks"):::projected
f0[["?sitelinks > '0^^xsd:integer'"]]
f0 --> v1
f1[["?itemLabel = 'en'"]]
f1 --> v2
v3 --"wdt:P2037"--> v4
v3 --"wikibase:sitelinks"--> v1
v3 --"wdt:P496"--> v5
v3 --"rdfs:label"--> v2