From 3298dde44681de68c48693cf117ffe1a8e3e1587 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 28 Sep 2023 12:08:27 +0300 Subject: Update auto-generated docs. Signed-off-by: Munyoki Kilyungi --- rdf-documentation/genbank-metadata.md | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 rdf-documentation/genbank-metadata.md (limited to 'rdf-documentation/genbank-metadata.md') diff --git a/rdf-documentation/genbank-metadata.md b/rdf-documentation/genbank-metadata.md new file mode 100644 index 0000000..7e519fd --- /dev/null +++ b/rdf-documentation/genbank-metadata.md @@ -0,0 +1,50 @@ +# Genebank Metadata +## 'genbank' + +## Generated Triples: + +The following SQL query was executed: + +```sql +SELECT Genbank.Id, Genbank.Sequence, Species.Fullname FROM Genbank LEFT JOIN Species USING (SpeciesId) +``` + +The above query results to triples that have the form: + +```text +genbank:Genbank(Id) -> gnt:hasSequence -> Genbank(Sequence) +genbank:Genbank(Id) -> xkos:classifiedUnder -> gn:Species_fullname +``` +Here's an example query: + +```sparql +PREFIX rdf: +PREFIX rdfs: +PREFIX skos: +PREFIX xkos: +PREFIX gn: +PREFIX gnc: +PREFIX gnt: +PREFIX dct: +PREFIX foaf: +PREFIX pubmed: +PREFIX ncbiTaxon: +PREFIX generif: +PREFIX xsd: +PREFIX genbank: +PREFIX owl: + +SELECT * WHERE { + ?s gnt:hasSequence "GAAAAGGACGAGAGAAAATTATTTTTAAGATAATTAAACATAAAAACCCTGGTGCTTATTACATTATAAAGTACGTTTTTAAAAACCCACAAACTATTATACATACGTTTATGAATCAATTAAATACTCTGCACTTGTTAGGAACACGCATATCCCTTCTTTGTTGAGTTTAACGGAACGGGACAGCGGCGTGCGCCCGCGGCTGGGCTGCTCTGGCCGCGGGTCTCCCCAGGCG" . + ?s xkos:classifiedUnder gn:Mus_musculus . + ?s ?p ?o . +} +``` + +Expected Result: + +```rdf +genbank:AA002843 gnt:hasSequence "GAAAAGGACGAGAGAAAATTATTTTTAAGATAATTAAACATAAAAACCCTGGTGCTTATTACATTATAAAGTACGTTTTTAAAAACCCACAAACTATTATACATACGTTTATGAATCAATTAAATACTCTGCACTTGTTAGGAACACGCATATCCCTTCTTTGTTGAGTTTAACGGAACGGGACAGCGGCGTGCGCCCGCGGCTGGGCTGCTCTGGCCGCGGGTCTCCCCAGGCG" . +genbank:AA002843 xkos:classifiedUnder gn:Mus_musculus . +``` + -- cgit v1.2.3