A set of SPARQL examples that are used in different SIB resources
Find UniParc records whose sequence point to the most database entries
PREFIX up: <http://purl.uniprot.org/core/>
SELECT ?sequence ?entries
WHERE
{
SELECT
?sequence
(COUNT(?entry) AS ?entries)
WHERE
{
GRAPH <http://sparql.uniprot.org/uniparc> {
?sequence up:sequenceFor ?entry .
}
} GROUP BY ?sequence
} ORDER BY DESC(?entries)