diff options
author | Munyoki Kilyungi | 2023-05-29 13:27:28 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2023-05-29 13:27:28 +0300 |
commit | d7d325272a7fe33f16fb3b24a81cd0fb17c918ef (patch) | |
tree | 2602cda190505074a5d097292f336773f3af1d46 | |
parent | 8e5cbef647d1c38b0be74c0c7a4b8c2e355a95a9 (diff) | |
download | gn-gemtext-d7d325272a7fe33f16fb3b24a81cd0fb17c918ef.tar.gz |
Update sparql examples
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r-- | topics/RDF/example-sparql-queries.gmi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/topics/RDF/example-sparql-queries.gmi b/topics/RDF/example-sparql-queries.gmi index ee80263..44ac046 100644 --- a/topics/RDF/example-sparql-queries.gmi +++ b/topics/RDF/example-sparql-queries.gmi @@ -13,3 +13,7 @@ => https://sparql.genenetwork.org/sparql?default-graph-uri=&qtxt=PREFIX%20chebi%3A%20%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FCHEBI_%3E%0APREFIX%20dct%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0APREFIX%20generif%3A%20%3Chttp%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fgene%3Fcmd%3DRetrieve%26dopt%3DGraphics%26list_uids%3D%3E%0APREFIX%20gn%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2F%3E%0APREFIX%20hgnc%3A%20%3Chttp%3A%2F%2Fbio2rdf.org%2Fhgnc%3A%3E%0APREFIX%20homologene%3A%20%3Chttps%3A%2F%2Fbio2rdf.org%2Fhomologene%3A%3E%0APREFIX%20kegg%3A%20%3Chttp%3A%2F%2Fbio2rdf.org%2Fns%2Fkegg%23%3E%0APREFIX%20molecularTrait%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fmolecular-trait%2F%3E%0APREFIX%20nuccore%3A%20%3Chttps%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fnuccore%2F%3E%0APREFIX%20omim%3A%20%3Chttps%3A%2F%2Fwww.omim.org%2Fentry%2F%3E%0APREFIX%20owl%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX%20phenotype%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fphenotype%2F%3E%0APREFIX%20pubchem%3A%20%3Chttps%3A%2F%2Fpubchem.ncbi.nlm.nih.gov%2F%3E%0APREFIX%20pubmed%3A%20%3Chttp%3A%2F%2Frdf.ncbi.nlm.nih.gov%2Fpubmed%2F%3E%0APREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX%20taxon%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Ftaxonomy%2F%3E%0APREFIX%20uniprot%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Funiprot%2F%3E%0APREFIX%20up%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Fcore%2F%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0A%0ACONSTRUCT%20%7B%0A%20%20%20%20%3Fs%20%3Fp%20%3Fo%0A%7D%20WHERE%20%7B%0A%20%20%20%20%3Fs%20rdf%3Atype%20gn%3Aspecies%20.%0A%20%20%20%20%3Fs%20%3Fp%20%3Fo%20.%0A%7D&format=text%2Fx-html%2Btr&timeout=0&signal_void=on Get all metadata for all species => https://sparql.genenetwork.org/sparql?default-graph-uri=&qtxt=PREFIX%20chebi%3A%20%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FCHEBI_%3E%0APREFIX%20dct%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0APREFIX%20generif%3A%20%3Chttp%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fgene%3Fcmd%3DRetrieve%26dopt%3DGraphics%26list_uids%3D%3E%0APREFIX%20gn%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2F%3E%0APREFIX%20hgnc%3A%20%3Chttp%3A%2F%2Fbio2rdf.org%2Fhgnc%3A%3E%0APREFIX%20homologene%3A%20%3Chttps%3A%2F%2Fbio2rdf.org%2Fhomologene%3A%3E%0APREFIX%20kegg%3A%20%3Chttp%3A%2F%2Fbio2rdf.org%2Fns%2Fkegg%23%3E%0APREFIX%20molecularTrait%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fmolecular-trait%2F%3E%0APREFIX%20nuccore%3A%20%3Chttps%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fnuccore%2F%3E%0APREFIX%20omim%3A%20%3Chttps%3A%2F%2Fwww.omim.org%2Fentry%2F%3E%0APREFIX%20owl%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX%20phenotype%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fphenotype%2F%3E%0APREFIX%20pubchem%3A%20%3Chttps%3A%2F%2Fpubchem.ncbi.nlm.nih.gov%2F%3E%0APREFIX%20pubmed%3A%20%3Chttp%3A%2F%2Frdf.ncbi.nlm.nih.gov%2Fpubmed%2F%3E%0APREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX%20taxon%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Ftaxonomy%2F%3E%0APREFIX%20uniprot%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Funiprot%2F%3E%0APREFIX%20up%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Fcore%2F%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0A%0ACONSTRUCT%20%7B%0A%20%20%20%20%3Fs%20%3Fp%20%3Fo%20.%0A%20%20%20%20%3Fs%20gn%3AhasInbredSet%20%3FinbredSet%20.%0A%7D%20WHERE%20%7B%0A%20%20%20%20%3Fs%20rdf%3Atype%20gn%3Aspecies%20.%0A%20%20%20%20%3Fs%20%3Fp%20%3Fo%20.%0A%20%20%20%20%3FinbredSet%20gn%3AinbredSetOfSpecies%20%3Fs%20.%0A%7D&format=text%2Fx-html%2Btr&timeout=0&signal_void=on Get all metadata for all species and include InbredSets information + +=> https://sparql.genenetwork.org/sparql?default-graph-uri=&qtxt=PREFIX%20chebi%3A%20%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FCHEBI_%3E%0APREFIX%20dct%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0APREFIX%20generif%3A%20%3Chttp%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fgene%3Fcmd%3DRetrieve%26dopt%3DGraphics%26list_uids%3D%3E%0APREFIX%20gn%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2F%3E%0APREFIX%20hgnc%3A%20%3Chttp%3A%2F%2Fbio2rdf.org%2Fhgnc%3A%3E%0APREFIX%20homologene%3A%20%3Chttps%3A%2F%2Fbio2rdf.org%2Fhomologene%3A%3E%0APREFIX%20kegg%3A%20%3Chttp%3A%2F%2Fbio2rdf.org%2Fns%2Fkegg%23%3E%0APREFIX%20molecularTrait%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fmolecular-trait%2F%3E%0APREFIX%20nuccore%3A%20%3Chttps%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fnuccore%2F%3E%0APREFIX%20omim%3A%20%3Chttps%3A%2F%2Fwww.omim.org%2Fentry%2F%3E%0APREFIX%20owl%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX%20phenotype%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fphenotype%2F%3E%0APREFIX%20pubchem%3A%20%3Chttps%3A%2F%2Fpubchem.ncbi.nlm.nih.gov%2F%3E%0APREFIX%20pubmed%3A%20%3Chttp%3A%2F%2Frdf.ncbi.nlm.nih.gov%2Fpubmed%2F%3E%0APREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX%20taxon%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Ftaxonomy%2F%3E%0APREFIX%20uniprot%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Funiprot%2F%3E%0APREFIX%20up%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Fcore%2F%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX%20dataset%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fdataset%2F%3E%20%0A%0ACONSTRUCT%20%7B%0A%20%20%20%20%3Fs%20%3Fp%20%3Fo%20.%0A%20%20%20%20%3Fpublication%20%3FpublicationTerm%20%3FpublicationValue%20.%0A%20%20%20%20dataset%3AGITrMetPublish%20%3FdatasetTerm%20%3FdatasetValue%20.%0A%7D%20WHERE%20%7B%0A%20%20%20%20%3Fs%20rdf%3Atype%20gn%3Aphenotype%20.%0A%20%20%20%20%3Fs%20gn%3Aname%20%22Rv0020c%22%20.%0A%20%20%20%20%3Fs%20%3Fp%20%3Fo%20.%0A%20%20%20%20%3Fs%20gn%3AphenotypeOfDataset%20dataset%3AGITrMetPublish%20.%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20dataset%3AGITrMetPublish%20%3FdatasetTerm%20%3FdatasetValue%20.%0A%20%20%20%20%7D%20.%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%3Fs%20gn%3AphenotypeOfPublication%20%3Fpublication%20.%0A%20%20%20%20%20%20%20%20%3Fpublication%20%3FpublicationTerm%20%3FpublicationValue%0A%20%20%20%7D%20.%20%0A%7D&format=text%2Fx-html%2Btr&timeout=0&signal_void=on Phenotype of "Rv0020c" from the dataset: "GITrMetPublish" + +=> https://sparql.genenetwork.org/sparql?default-graph-uri=&qtxt=PREFIX%20chebi%3A%20%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FCHEBI_%3E%0APREFIX%20dct%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0APREFIX%20generif%3A%20%3Chttp%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fgene%3Fcmd%3DRetrieve%26dopt%3DGraphics%26list_uids%3D%3E%0APREFIX%20gn%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2F%3E%0APREFIX%20hgnc%3A%20%3Chttp%3A%2F%2Fbio2rdf.org%2Fhgnc%3A%3E%0APREFIX%20homologene%3A%20%3Chttps%3A%2F%2Fbio2rdf.org%2Fhomologene%3A%3E%0APREFIX%20kegg%3A%20%3Chttp%3A%2F%2Fbio2rdf.org%2Fns%2Fkegg%23%3E%0APREFIX%20molecularTrait%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fmolecular-trait%2F%3E%0APREFIX%20nuccore%3A%20%3Chttps%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fnuccore%2F%3E%0APREFIX%20omim%3A%20%3Chttps%3A%2F%2Fwww.omim.org%2Fentry%2F%3E%0APREFIX%20owl%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX%20phenotype%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fphenotype%2F%3E%0APREFIX%20pubchem%3A%20%3Chttps%3A%2F%2Fpubchem.ncbi.nlm.nih.gov%2F%3E%0APREFIX%20pubmed%3A%20%3Chttp%3A%2F%2Frdf.ncbi.nlm.nih.gov%2Fpubmed%2F%3E%0APREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX%20taxon%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Ftaxonomy%2F%3E%0APREFIX%20uniprot%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Funiprot%2F%3E%0APREFIX%20up%3A%20%3Chttp%3A%2F%2Fpurl.uniprot.org%2Fcore%2F%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX%20dataset%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fdataset%2F%3E%20%0A%0ACONSTRUCT%20%7B%0A%20%20%20%20%3Fs%20%3Fp%20%3Fo%20.%0A%20%20%20%20%3Fpublication%20%3FpublicationTerm%20%3FpublicationValue%20.%0A%20%20%20%20dataset%3ABXD_LongevityGeno%20%3FdatasetTerm%20%3FdatasetValue%20.%0A%7D%20WHERE%20%7B%0A%20%20%20%20%3Fs%20rdf%3Atype%20gn%3Agenotype%20.%0A%20%20%20%20%3Fs%20gn%3Aname%20%22DXMit223%22%20.%0A%20%20%20%20%3Fs%20%3Fp%20%3Fo%20.%0A%20%20%20%20%3Fs%20gn%3AgenotypeOfDataset%20dataset%3ABXD_LongevityGeno%20.%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20dataset%3ABXD_LongevityGeno%20%3FdatasetTerm%20%3FdatasetValue%20.%0A%20%20%20%20%7D%20.%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%3Fs%20gn%3AphenotypeOfPublication%20%3Fpublication%20.%0A%20%20%20%20%20%20%20%20%3Fpublication%20%3FpublicationTerm%20%3FpublicationValue%0A%20%20%20%7D%20.%20%0A%7D&format=text%2Fx-html%2Btr&timeout=0&signal_void=on Genotype of "DXMit223" from the dataset: "BXD_LongevityGeno" |