Skip to content
Zebulun Arendsee edited this page Feb 4, 2022 · 2 revisions

The figure above shows only the "standard" connections and a subset of the links in the ontology. You can discover these on your own by querying edges (predicates/links).

Links from strain

PREFIX f: <https://flu-crew.org/term/>

SELECT DISTINCT
    ?p  
WHERE {
    ?s f:host "swine" .
    ?s ?p ?o .
}   
LIMIT 30

This query finds all predicates that link from a swine strain node. It returns the following (sorted for reproducibility):

$ octofludb query 102.rq | sort
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
https://flu-crew.org/term/barcode
https://flu-crew.org/term/collection_date
https://flu-crew.org/term/constellation
https://flu-crew.org/term/country
https://flu-crew.org/term/date
https://flu-crew.org/term/gisaid_strain_name
https://flu-crew.org/term/gisaid_subtype
https://flu-crew.org/term/has_part
https://flu-crew.org/term/has_segment
https://flu-crew.org/term/host
https://flu-crew.org/term/isolate_id
https://flu-crew.org/term/locatedIn
https://flu-crew.org/term/state
https://flu-crew.org/term/strain_name
https://flu-crew.org/term/submission_date
https://flu-crew.org/term/subtype
https://flu-crew.org/term/tag

Links from segment

This same approach can be used to find properties linking from segment nodes:

PREFIX f: <https://flu-crew.org/term/>

SELECT DISTINCT
    ?p  
WHERE {
    ?s f:host "swine" .
    ?s f:has_segment ?g .
    ?g ?p ?o .
}   
LIMIT 100

This returns:

http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#sameAs
https://flu-crew.org/term/accession_version
https://flu-crew.org/term/ca1_motif
https://flu-crew.org/term/ca2_motif
https://flu-crew.org/term/cb_motif
https://flu-crew.org/term/chksum
https://flu-crew.org/term/clade
https://flu-crew.org/term/create_date
https://flu-crew.org/term/definition
https://flu-crew.org/term/division
https://flu-crew.org/term/dnaseq
https://flu-crew.org/term/epi_id
https://flu-crew.org/term/genbank_id
https://flu-crew.org/term/gisaid_subtype
https://flu-crew.org/term/gl_clade
https://flu-crew.org/term/h3_motif
https://flu-crew.org/term/has_feature
https://flu-crew.org/term/isolate_id
https://flu-crew.org/term/lineage
https://flu-crew.org/term/locus
https://flu-crew.org/term/moltype
https://flu-crew.org/term/organism
https://flu-crew.org/term/sa_motif
https://flu-crew.org/term/sb_motif
https://flu-crew.org/term/segment_name
https://flu-crew.org/term/segment_subtype
https://flu-crew.org/term/seqid
https://flu-crew.org/term/source
https://flu-crew.org/term/strandedness
https://flu-crew.org/term/taxonomy
https://flu-crew.org/term/topology
https://flu-crew.org/term/update_date

Links from features

We can also pull out features, this is all information drawn directly from the GenBank feature tables.

PREFIX f: <https://flu-crew.org/term/>

SELECT DISTINCT
    ?p
WHERE {
    ?s f:host "swine" .
    ?s f:barcode ?barcode .
    FILTER REGEX(?barcode, "123") . # just to speed things up
    ?s f:has_segment ?g .
    ?g f:has_feature ?f .
    ?f ?p ?o .
}
LIMIT 100
$ octofludb query 10x.rq
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
https://flu-crew.org/term/chksum
https://flu-crew.org/term/clone
https://flu-crew.org/term/codon_start
https://flu-crew.org/term/db_xref
https://flu-crew.org/term/function
https://flu-crew.org/term/gene
https://flu-crew.org/term/gene_synonym
https://flu-crew.org/term/isolate
https://flu-crew.org/term/isolation_source
https://flu-crew.org/term/location
https://flu-crew.org/term/mol_type
https://flu-crew.org/term/name
https://flu-crew.org/term/note
https://flu-crew.org/term/organism
https://flu-crew.org/term/peptide
https://flu-crew.org/term/product
https://flu-crew.org/term/proseq
https://flu-crew.org/term/protein_id
https://flu-crew.org/term/segment
https://flu-crew.org/term/serotype
https://flu-crew.org/term/transl_table
Clone this wiki locally