Skip to content

Instantly share code, notes, and snippets.

@kozo2
Last active July 16, 2023 07:59
Show Gist options
  • Save kozo2/0dcb2670510a1ec2b211 to your computer and use it in GitHub Desktop.
Save kozo2/0dcb2670510a1ec2b211 to your computer and use it in GitHub Desktop.
PREFIX up:<http://purl.uniprot.org/core/>
PREFIX taxon:<http://purl.uniprot.org/taxonomy/>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
SELECT *
WHERE
{
?protein a up:Protein .
?protein up:organism ?organism .
{
?protein up:organism taxon:83333 .
} UNION {
?protein up:organism ?organism .
?organism rdfs:subClassOf+ taxon:83333 .
}
?protein up:annotation ?annotation .
?annotation a up:Kinetics_Annotation .
?annotation rdfs:comment ?comment.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment