query-ed7a5b40924f5397e2473c887108c945

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX gvp: <http://vocab.getty.edu/ontology#>

SELECT
?institutionURL ?wdSearchURL ?name ?id ?count
  WHERE {
  SERVICE <http://vocab.getty.edu/sparql.json> {
    { SELECT ?institution ?name ?id (COUNT(?institution) as ?count) {
      ?agent (gvp:ulan2828_student_at|gvp:ulan1322_school_was) ?institution .
      ?institution gvp:prefLabelGVP/gvp:term ?name .
      ?institution dc:identifier ?id .
      }
      GROUP BY ?institution ?name ?id
    }
  }
  MINUS { ?item wdt:P245 ?id . }
  BIND(URI(CONCAT("http://vocab.getty.edu/page/ulan/", ?id)) AS ?institutionURL)
  BIND(URI(CONCAT("https://www.wikidata.org/wiki/Special:Search/", ?name)) AS ?wdSearchURL)
}
ORDER BY DESC(?count)
LIMIT 30

Query found at