diff --git a/examples/UniProt/111_uniprot_make_chain_sequence_fasta.ttl b/examples/UniProt/111_uniprot_make_chain_sequence_fasta.ttl new file mode 100644 index 000000000..664fcdc23 --- /dev/null +++ b/examples/UniProt/111_uniprot_make_chain_sequence_fasta.ttl @@ -0,0 +1,25 @@ +@prefix ex: . +@prefix rdfs: . +@prefix schema: . +@prefix sh: . + +ex:111_uniprot_make_chain_sequence_fasta a sh:SPARQLExecutable, + sh:SPARQLSelectExecutable ; + rdfs:comment "Given an UniProt chain identifier, generate the matching sequence as a FASTA"@en ; + sh:prefixes _:sparql_examples_prefixes ; + sh:select """PREFIX rdf: +PREFIX up: +PREFIX faldo: + +SELECT (CONCAT('>', ?chainSeqId, '\\n', (SUBSTR(?iupacAA, ?begin, (?end-?begin+1)))) AS ?chainFasta) +WHERE { + BIND("PRO_0000268053" AS ?chainSeqId) + BIND(IRI(CONCAT("http://purl.uniprot.org/annotation/", ?chainSeqId)) AS ?annId) + ?annId up:range ?range . + ?range faldo:begin [ faldo:reference ?reference ; faldo:position ?begin ] ; + faldo:end [ faldo:position ?end ] . + ?reference rdf:value ?iupacAA . +}""" ; + schema:keywords "chain", "sequence", "fasta" ; + schema:target . +