sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

31

rq turtle/ttl

Find UniParc records whose sequence point to the most database entries

Use at

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)
up:sequenceFor
as
?entries
?entry
?sequence
count(?entry)