From 34f1d51fcb3b45596202b15fc41a3c0f83668fcf Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 18 Jul 2023 11:03:07 +0300 Subject: Add auto-generated rdf documentation Signed-off-by: Munyoki Kilyungi --- rdf-documentation/dump-info-pages.md | 196 +++++++++++++++++++++++++++++ rdf-documentation/dump-publication.md | 60 +++++++++ rdf-documentation/dump-species-metadata.md | 193 ++++++++++++++++++++++++++++ rdf-documentation/dump-tissue.md | 42 +++++++ 4 files changed, 491 insertions(+) create mode 100644 rdf-documentation/dump-info-pages.md create mode 100644 rdf-documentation/dump-publication.md create mode 100644 rdf-documentation/dump-species-metadata.md create mode 100644 rdf-documentation/dump-tissue.md diff --git a/rdf-documentation/dump-info-pages.md b/rdf-documentation/dump-info-pages.md new file mode 100644 index 0000000..e51f33b --- /dev/null +++ b/rdf-documentation/dump-info-pages.md @@ -0,0 +1,196 @@ +# Info files / Investigators Metadata +## 'dump-info-files' + +## Schema Triples: + +```text +gn:dataset -> rdfs:range -> rdfs:Literal +gn:datasetOfInvestigator -> rdfs:domain -> gn:dataset +gn:datasetOfOrganization -> rdfs:domain -> gn:dataset +gn:datasetOfInvestigator -> rdfs:range -> foaf:Person +gn:datasetOfInbredSet -> rdfs:domain -> gn:dataset +gn:datasetOfInbredSet -> rdfs:range -> gn:inbredSet +gn:datasetOfSpecies -> rdfs:domain -> gn:dataset +gn:datasetOfSpecies -> rdfs:range -> gn:inbredSet +gn:datasetOfTissue -> rdfs:domain -> gn:dataset +gn:datasetOfTissue -> rdfs:range -> gn:tissue +gn:normalization -> rdfs:domain -> gn:dataset +gn:normalization -> rdfs:range -> gn:avgMethod +gn:datasetOfPlatform -> rdfs:domain -> gn:dataset +gn:datasetOfPlatform -> rdfs:range -> gn:geneChip +gn:accessionId -> rdfs:range -> rdfs:Literal +gn:datasetStatusName -> rdfs:range -> rdfs:Literal +gn:summary -> rdfs:range -> rdfs:Literal +gn:aboutTissue -> rdfs:range -> rdfs:Literal +gn:geoSeries -> rdfs:range -> rdfs:Literal +gn:name -> rdfs:range -> rdfs:Literal +gn:title -> rdfs:range -> rdfs:Literal +gn:publicationTitle -> rdfs:range -> rdfs:Literal +gn:specifics -> rdfs:range -> rdfs:Literal +gn:datasetGroup -> rdfs:range -> rdfs:Literal +gn:aboutCases -> rdfs:range -> rdfs:Literal +gn:aboutPlatform -> rdfs:range -> rdfs:Literal +gn:aboutDataProcessing -> rdfs:range -> rdfs:Literal +gn:notes -> rdfs:range -> rdfs:Literal +gn:experimentDesign -> rdfs:range -> rdfs:Literal +gn:contributors -> rdfs:range -> rdfs:Literal +gn:citation -> rdfs:range -> rdfs:Literal +gn:acknowledgment -> rdfs:range -> rdfs:Literal +``` +## Generated Triples: + +The following SQL query was executed: + +```sql +SELECT InfoFiles.InfoPageName, IF(GenoFreeze.Id IS NOT NULL, 'gn:genotypeDataset', IF(PublishFreeze.Id IS NOT NULL, 'gn:phenotypeDataset', 'gn:dataset')) AS rdfType, InfoFiles.InfoPageName, IFNULL(GenoFreeze.FullName, IFNULL(PublishFreeze.FullName, '')) AS DatasetFullName, IFNULL(GenoFreeze.CreateTime, IFNULL(PublishFreeze.CreateTime, IFNULL(ProbeSetFreeze.CreateTime, ''))) AS createTimeGenoFreeze, Investigators.FirstName, Investigators.LastName, Investigators.Email, CAST(CONVERT(BINARY CONVERT(Organizations.OrganizationName USING latin1) USING utf8) AS VARCHAR(1500)) AS Organizations, InfoFiles.GN_AccesionId, DatasetStatus.DatasetStatusName, InbredSet.Name AS InbredSetName, Tissue.Short_Name, AvgMethod.Name AS AvgMethodName, AvgMethod.Name AS AvgMethodName, GeneChip.Name AS GeneChip, Datasets.Summary, Datasets.AboutTissue, IFNULL(Datasets.GeoSeries, '') AS GeoSeries, InfoFiles.InfoFileTitle, Datasets.PublicationTitle, InfoFiles.Specifics, Datasets.DatasetName AS DatasetGroup, CAST(CONVERT(BINARY CONVERT(Datasets.AboutCases USING latin1) USING utf8) AS VARCHAR(10000)) AS AboutCases, CAST(CONVERT(BINARY CONVERT(Datasets.AboutPlatform USING latin1) USING utf8) AS VARCHAR(1500)) AS AboutPlatform, CAST(CONVERT(BINARY CONVERT(Datasets.AboutDataProcessing USING latin1) USING utf8) AS VARCHAR(1500)) AS AboutDataProcessing, CAST(CONVERT(BINARY CONVERT(Datasets.Notes USING latin1) USING utf8) AS VARCHAR(1500)) AS GNNotes, CAST(CONVERT(BINARY CONVERT(Datasets.ExperimentDesign USING latin1) USING utf8) AS VARCHAR(1500)) AS ExperimentDesign, CAST(CONVERT(BINARY CONVERT(Datasets.Contributors USING latin1) USING utf8) AS VARCHAR(1500)) AS Contributors, CAST(CONVERT(BINARY CONVERT(Datasets.Citation USING latin1) USING utf8) AS VARCHAR(1500)) AS Citation, CAST(CONVERT(BINARY CONVERT(InfoFiles.Data_Source_Acknowledge USING latin1) USING utf8) AS VARCHAR(1500)) AS Data_Source_Acknowledge, Datasets.Acknowledgment FROM InfoFiles LEFT JOIN PublishFreeze ON InfoFiles.InfoPageName = PublishFreeze.Name LEFT JOIN GenoFreeze ON InfoFiles.InfoPageName = GenoFreeze.Name LEFT JOIN ProbeSetFreeze ON InfoFiles.InfoPageName = ProbeSetFreeze.Name LEFT JOIN InbredSet ON InfoFiles.InbredSetId = InbredSet.InbredSetId LEFT JOIN Species ON InfoFiles.SpeciesId = Species.SpeciesId LEFT JOIN Datasets USING (DatasetId) LEFT JOIN DatasetStatus USING (DatasetStatusId) LEFT JOIN Tissue USING (TissueId) LEFT JOIN Investigators USING (InvestigatorId) LEFT JOIN AvgMethod USING (AvgMethodId) LEFT JOIN Organizations USING (OrganizationId) LEFT JOIN GeneChip USING (GeneChipId) WHERE GN_AccesionId IS NOT NULL +``` + +The above query results to triples that have the form: + +```text +dataset:InfoFiles_InfoPageName_ -> rdf:type -> rdfType +dataset:InfoFiles_InfoPageName_ -> gn:name -> InfoFiles(InfoPageName) +dataset:InfoFiles_InfoPageName_ -> gn:fullName -> DatasetFullName +dataset:InfoFiles_InfoPageName_ -> dct:created -> createTimeGenoFreeze +dataset:InfoFiles_InfoPageName_ -> gn:datasetOfInvestigator -> gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ +dataset:InfoFiles_InfoPageName_ -> gn:datasetOfOrganization -> Organizations +dataset:InfoFiles_InfoPageName_ -> gn:accessionId -> GNInfoFiles(GN_AccesionId) +dataset:InfoFiles_InfoPageName_ -> gn:datasetStatusName -> datasetstatus(datasetstatusname) +dataset:InfoFiles_InfoPageName_ -> gn:datasetOfInbredSet -> gn:inbredSet_inbredset_inbredsetname_ +dataset:InfoFiles_InfoPageName_ -> gn:datasetOfTissue -> gn:tissue_tissue_short_name_ +dataset:InfoFiles_InfoPageName_ -> gn:normalization -> gn:avgmethod_avgmethod_avgmethodname_ +dataset:InfoFiles_InfoPageName_ -> gn:datasetOfPlatform -> gn:platform_genechip_genechip_ +dataset:InfoFiles_InfoPageName_ -> gn:summary -> DatasetsSummary +dataset:InfoFiles_InfoPageName_ -> gn:aboutTissue -> DatasetsAboutTissue +dataset:InfoFiles_InfoPageName_ -> gn:geoSeries -> +dataset:InfoFiles_InfoPageName_ -> gn:title -> InfoFiles(InfoFileTitle) +dataset:InfoFiles_InfoPageName_ -> gn:publicationTitle -> Datasets(PublicationTitle) +dataset:InfoFiles_InfoPageName_ -> gn:specifics -> InfoFilesSpecifics +dataset:InfoFiles_InfoPageName_ -> gn:datasetGroup -> Datasets(DatasetGroup) +dataset:InfoFiles_InfoPageName_ -> gn:aboutCases -> AboutCases +dataset:InfoFiles_InfoPageName_ -> gn:aboutPlatform -> AboutPlatform +dataset:InfoFiles_InfoPageName_ -> gn:aboutDataProcessing -> AboutDataProcessing +dataset:InfoFiles_InfoPageName_ -> gn:notes -> GNNotes +dataset:InfoFiles_InfoPageName_ -> gn:experimentDesign -> ExperimentDesign +dataset:InfoFiles_InfoPageName_ -> gn:contributors -> Contributors +dataset:InfoFiles_InfoPageName_ -> gn:citation -> Citation +dataset:InfoFiles_InfoPageName_ -> gn:dataSourceAcknowledgment -> Data_Source_Acknowledge +dataset:InfoFiles_InfoPageName_ -> gn:acknowledgment -> DatasetsAcknowledgment +``` +Here's an example query: + +```sparql +PREFIX dct: +PREFIX geoSeries: +PREFIX rdf: +PREFIX rdfs: +PREFIX gn: +PREFIX foaf: +PREFIX taxon: +PREFIX dataset: + +SELECT ?s ?p ?o WHERE { + ?s rdf:type gn:dataset . + ?s gn:name "Br_U_0803_M" . + ?s dct:created "2003-08-01" . + ?s gn:datasetOfInvestigator gn:investigator_robert_williams_rwilliams_uthsc.edu . + ?s gn:datasetOfOrganization "University of Tennessee Health Science Center" . + ?s ?p ?o . +} +``` + +Expected Result: + +```rdf +dataset:Br_U_0803_M rdf:type gn:dataset . +dataset:Br_U_0803_M gn:name "Br_U_0803_M" . +dataset:Br_U_0803_M dct:created "2003-08-01" . +dataset:Br_U_0803_M gn:datasetOfInvestigator gn:investigator_robert_williams_rwilliams_uthsc.edu . +dataset:Br_U_0803_M gn:datasetOfOrganization "University of Tennessee Health Science Center" . +dataset:Br_U_0803_M gn:accessionId "GN1" . +dataset:Br_U_0803_M gn:datasetStatusName "public" . +dataset:Br_U_0803_M gn:datasetOfInbredSet gn:inbredSet_bxd . +dataset:Br_U_0803_M gn:datasetOfTissue gn:tissue_brn . +dataset:Br_U_0803_M gn:normalization gn:avgmethod_mas5 . +dataset:Br_U_0803_M gn:datasetOfPlatform gn:platform_mg_u74av2 . +dataset:Br_U_0803_M gn:summary "

This August 2003 freeze provides estimates of mRNA expression in brains of BXD recombinant inbred mice measured using Affymetrix U74Av2 microarrays. This is data set includes six arrays which are of marginal quality. New users are encouraged to use one of the more recent data sets December 2003 or March 2004 from which these six arrays have been excluded. Data were generated at the University of Tennessee Health Science Center UTHSC. Over 300 brain samples from 35 strains were hybridized in small pools n=3 to 106 arrays. Data were processed using the Microarray Suite 5 MAS 5 protocol of Affymetrix. To simplify comparison between transforms, MAS 5 values of each array were adjusted to an average of 8 units and a variance of 2 units. In general, the MAS 5 transform does not perform as well as RMA, PDNN, or the new heritability weighted transforms HW1PM.

" . +dataset:Br_U_0803_M gn:aboutTissue "

Each array was hybridized with labeled cRNA generated from a pool of three brains from adult animals usually of the same age and always of the same sex. The brain region included most of the forebrain and midbrain, bilaterally. However, the sample excluded the olfactory bulbs, retinas, or the posterior pituitary all formally part of the forebrain. A total of 100 such pooled samples were arrayed: 74 from females and 26 from males. Animals ranged in age from 56 to 441 days, usually with a balanced design: one pool at approximately 8 weeks, one pool at approximately 20 weeks, and one pool at approximately 1 year. Strain averages of mRNA expression level are therefore typically based on three pooled biological replicate arrays. This data set does not incorporate statistical adjustment for possible effects of age and sex. Users can select the strain symbol in the table above to review details about the specific cases and array processing center DP = Divyen Patel at Genome Explorations, Inc; TS = Thomas Sutter at University of Memphis. You can also click on the individual symbols males or females to view the array image.

" . +dataset:Br_U_0803_M gn:title "UTHSC Brain mRNA U74Av2 (Aug03) MAS5" . +dataset:Br_U_0803_M gn:datasetGroup "UTHSC Brain mRNA U74Av2 (Aug-Sep03)" . +dataset:Br_U_0803_M gn:aboutCases "

This data set includes estimate of gene expression for 35 genetically uniform lines of mice: C57BL/6J B6, or simply B, DBA/2J D2 or D, their B6D2 F1 intercross, and 32 BXD recombinant inbred RI strains derived by crossing female B6 mice with male D2 mice and then inbreeding progeny for over 21 generations. This set of RI strains is a remarkable resource because many of these strains have been extensively phenotyped for hundreds of interesting traits over a 25-year period. A significant advantage of this RI set is that the two parental strains B6 and D2 have both been extensively sequenced and are known to differ at approximately 1.8 million SNPs. Coding variants mostly single nucleotide polymorphisms and insertion-deletions that may produce interesting phenotypes can be rapidly identified in this particular RI set.

\r\n\r\n

BXD1 through BXD32 were produced by Benjamin A. Taylor starting in the late 1970s. BXD33 through BXD42 were also produced by Taylor, but from a second set of crosses initiated in the early 1990s. These strains are all available from the Jackson Laboratory, Bar Harbor, Maine. BXD43 through BXD99 were produced by Lu Lu, Jeremy Peirce, Lee M. Silver, and Robert W. Williams in the late 1990s and early 2000s using advanced intercross progeny Peirce et al. 2004. Only two of these incipient strains are included in the current database BXD67 and BXD68.

\r\n\r\n

In this mRNA expression database we generally used progeny of stock obtained from The Jackson Laboratory between 1999 and 2001. Animals were generated in-house at the University of Alabama by John Mountz and Hui-Chen Hsu and at the University of Tennessee Health Science Center by Lu Lu and Robert Williams.

\r\n\r\n

The table below lists the arrays by strain, sex, and age. Each array was hybridized to a pool of mRNA from three mice. Note that this table includes six arrays dropped from the December 2003 data sets BXD6, n=2; BXD12, BXD16, BXD40, and BXD67, n=1 each.

\r\n\r\n\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Strain\r\n

Age

\r\n
Strain\r\n

Age

\r\n
\r\n

8 Wks

\r\n
\r\n

20 Wks

\r\n
\r\n

52 Wks

\r\n
\r\n

8 Wks

\r\n
\r\n

20 Wks

\r\n
\r\n

52 Wks

\r\n
C57BL/6J B6???????????????DBA/2J D2???????????? 
B6D2F1 F1??? ?????? BXD1?????? ???
BXD2?????????BXD5?????????  
BXD6?????????BXD8????????? 
BXD9?????????BXD11?????? ???
BXD12 ?????????BXD13???   
BXD14 ?????????BXD15??? ???
BXD16????????? BXD18?????????
BXD19?????????BXD21???????????? 
BXD22??????http://genome.ucsc.edu/cgi-bin/hgBlat?command=start&org=mouse. We thank Yan Cui UTHSC for allowing us to use his Linux cluster to perform this analysis. It is possiible to confirm the BLAT alignment results yourself simply by clicking on the Verify link in the Trait Data and Editing Form right side of the Location line.

" . +dataset:Br_U_0803_M gn:aboutDataProcessing "
Probe cell level data from the CEL file: Probe signal intensity estimates in the Affymetrix CEL files are the 75% quantile value taken from a set of 36 6x6 pixels per probe cell in the DAT image file.\r\n
    \r\n
  • Step 1: We added an offset of 1.0 to the CEL expression values for each cell to ensure that all values could be logged without generating negative values.
  • \r\n
  • Step 2: We took the log2 of each cell signal intensity.
  • \r\n
  • Step 3: We computed the Z score for each of these log2 cell signal intensity values within a single array.
  • \r\n
  • Step 4: We multiplied all Z scores by 2.
  • \r\n
  • Step 5: We added a constant of 8 units to the value of the Z score. The consequence of this simple set of transformations is to produce a set of Z scores that have a mean of 8 units, a variance of 4 units, and a standard deviation of 2 units. The advantage of this modified Z score is that a 2-fold difference in expression level corresponds roughly to 1 unit.
  • \r\n
  • Step 6: We computed the arithmetic mean of the values for the set of microarrays for each strain. We have not corrected for variance introduced by sex, age, source of animals, or any possible interaction. We have not corrected for background beyond that implemented by Affymetrix in generating the CEL file.
  • \r\n
\r\nProbe set data from the CHP file: Probe set estimates of expression were initi" . +dataset:Br_U_0803_M gn:notes "

This text file originally generated by RWW, EJC, and YHQ, August 2003. Updated by RWW, October 30, 2004.

" . +dataset:Br_U_0803_M gn:dataSourceAcknowledgment "

Data were generated with funds to RWW from the Dunavant Chair of\r\nExcellence, University of Tennessee Health Science Center, Department\r\nof Pediatrics. The majority of arrays were processed at Genome Explorations by Divyen Patel. We thank Guomin Zhou for generating advanced intercross stock used to produce most of the new BXD RI strains.\r\n

" . +dataset:Br_U_0803_M gn:acknowledgment "

Data were generated with funds to RWW from the Dunavant Chair of Excellence, University of Tennessee Health Science Center, Department of Pediatrics. The majority of arrays were processed at Genome Explorations by Divyen Patel. We thank Guomin Zhou for generating advanced intercross stock used to produce most of the new BXD RI strains.

" . +``` + + +## 'dump-investigators' + +## Schema Triples: + +```text +foaf:name -> rdfs:range -> rdfs:Literal +foaf:givenName -> rdfs:range -> rdfs:Literal +foaf:familyName -> rdfs:range -> rdfs:Literal +foaf:homepage -> rdfs:range -> rdfs:Literal +gn:address -> rdfs:range -> rdfs:Literal +gn:city -> rdfs:range -> rdfs:Literal +gn:state -> rdfs:range -> rdfs:Literal +gn:zipCode -> rdfs:range -> rdfs:Literal +gn:country -> rdfs:range -> rdfs:Literal +``` +## Generated Triples: + +The following SQL query was executed: + +```sql +SELECT Investigators.FirstName, Investigators.LastName, Investigators.Email, Investigators.FirstName, Investigators.FirstName, Investigators.LastName, CAST(CONVERT(BINARY CONVERT(FirstName USING latin1) USING utf8) AS VARCHAR(100)) AS FirstName, CAST(CONVERT(BINARY CONVERT(LastName USING latin1) USING utf8) AS VARCHAR(100)) AS LastName, Investigators.Url, Investigators.Address, Investigators.City, Investigators.State, Investigators.ZipCode, Investigators.Country FROM Investigators GROUP BY Email +``` + +The above query results to triples that have the form: + +```text +gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ -> rdf:type -> foaf:Person +gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ -> foaf:name -> Investigators(FirstName) Investigators(LastName) +gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ -> foaf:givenName -> FirstName +gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ -> foaf:familyName -> LastName +gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ -> foaf:homepage -> Investigators(Url) +gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ -> gn:address -> Investigators(Address) +gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ -> gn:city -> Investigators(City) +gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ -> gn:state -> Investigators(State) +gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ -> gn:zipCode -> Investigators(ZipCode) +gn:investigator_investigators_firstname__investigators_lastname__investigators_email_ -> gn:country -> Investigators(Country) +``` +Here's an example query: + +```sparql +PREFIX dct: +PREFIX geoSeries: +PREFIX rdf: +PREFIX rdfs: +PREFIX gn: +PREFIX foaf: +PREFIX taxon: +PREFIX dataset: + +SELECT ?s ?p ?o WHERE { + ?s rdf:type foaf:Person . + ?s foaf:name "Evan Williams" . + ?s foaf:givenName "Evan" . + ?s foaf:familyName "Williams" . + ?s ?p ?o . +} +``` + +Expected Result: + +```rdf +gn:investigator_evan_williams_ rdf:type foaf:Person . +gn:investigator_evan_williams_ foaf:name "Evan Williams" . +gn:investigator_evan_williams_ foaf:givenName "Evan" . +gn:investigator_evan_williams_ foaf:familyName "Williams" . +gn:investigator_evan_williams_ gn:country "Switzerland" . +``` + diff --git a/rdf-documentation/dump-publication.md b/rdf-documentation/dump-publication.md new file mode 100644 index 0000000..248be48 --- /dev/null +++ b/rdf-documentation/dump-publication.md @@ -0,0 +1,60 @@ +# Publications Metadata +## 'dump-publication' + +## Schema Triples: + +```text +gn:pubMedId -> rdfs:range -> rdfs:Literal +gn:title -> rdfs:range -> rdfs:Literal +gn:journal -> rdfs:range -> rdfs:Literal +gn:volume -> rdfs:range -> rdfs:Literal +gn:pages -> rdfs:range -> rdfs:Literal +gn:month -> rdfs:range -> rdfs:Literal +gn:year -> rdfs:range -> rdfs:Literal +gn:author -> rdfs:range -> rdfs:Literal +gn:abstract -> rdfs:range -> rdfs:Literal +``` +## Generated Triples: + +The following SQL query was executed: + +```sql +SELECT IF(Publication.PubMed_ID IS NULL, '', CONVERT(Publication.PubMed_Id, INT)) AS pmid, Publication.Id, IFNULL(PubMed_ID, '') AS pubmedId, Publication.Title, Publication.Journal, Publication.Volume, Publication.Pages, Publication.Month, Publication.Year, Publication.Authors, CAST(CONVERT(BINARY CONVERT(Publication.Abstract USING latin1) USING utf8) AS VARCHAR(100)) AS Abstract FROM Publication +``` + +The above query results to triples that have the form: + +```text +publication:pmid -> rdf:type -> gn:publication +publication:pmid -> gn:pubMedId -> pubmed:pubmedId +publication:pmid -> gn:title -> Publication(Title) +publication:pmid -> gn:journal -> Publication(Journal) +publication:pmid -> gn:volume -> Publication(Volume) +publication:pmid -> gn:pages -> Publication(Pages) +publication:pmid -> gn:month -> Publication(Month) +publication:pmid -> gn:year -> Publication(Year) +publication:pmid -> gn:abstract -> Abstract +publication:pmid -> gn:author -> PublicationAuthors +``` +Here's an example query: + +```sparql +PREFIX rdf: +PREFIX rdfs: +PREFIX gn: +PREFIX publication: +PREFIX pubmed: + +SELECT ?s ?p ?o WHERE { + ?s rdf:type gn:publication . + ?s ?p ?o . +} +``` + +Expected Result: + +```rdf +gn:unpublished_1 rdf:type gn:publication . +gn:unpublished_1 gn:year "0" . +``` + diff --git a/rdf-documentation/dump-species-metadata.md b/rdf-documentation/dump-species-metadata.md new file mode 100644 index 0000000..7c0f8be --- /dev/null +++ b/rdf-documentation/dump-species-metadata.md @@ -0,0 +1,193 @@ +# Species Metadata +## 'dump-species' + +## Schema Triples: + +```text +gn:name -> rdfs:range -> rdfs:Literal +gn:displayName -> rdfs:range -> rdfs:Literal +gn:binomialName -> rdfs:range -> rdfs:Literal +gn:family -> rdfs:range -> rdfs:Literal +``` +## Generated Triples: + +The following SQL query was executed: + +```sql +SELECT Species.FullName, Species.SpeciesName, Species.MenuName, Species.FullName, Species.Family, Species.TaxonomyId FROM Species +``` + +The above query results to triples that have the form: + +```text +gn:species_species_fullname_ -> rdf:type -> gn:species +gn:species_species_fullname_ -> gn:name -> Species(SpeciesName) +gn:species_species_fullname_ -> gn:displayName -> Species(MenuName) +gn:species_species_fullname_ -> gn:binomialName -> Species(FullName) +gn:species_species_fullname_ -> gn:family -> Species(Family) +gn:species_species_fullname_ -> gn:organism -> #{taxon:Species\x28;TaxonomyId\x29;}# +``` +Here's an example query: + +```sparql +PREFIX rdf: +PREFIX rdfs: +PREFIX gn: +PREFIX taxon: + +SELECT ?s ?p ?o WHERE { + ?s rdf:type gn:species . + ?s gn:name "Mouse" . + ?s gn:displayName "Mouse (Mus musculus, mm10)" . + ?s ?p ?o . +} +``` + +Expected Result: + +```rdf +gn:species_mus_musculus rdf:type gn:species . +gn:species_mus_musculus gn:name "Mouse" . +gn:species_mus_musculus gn:displayName "Mouse (Mus musculus, mm10)" . +gn:species_mus_musculus gn:binomialName "Mus musculus" . +gn:species_mus_musculus gn:family "Vertebrates" . +gn:species_mus_musculus gn:organism taxon:10090 . +``` + + +## 'dump-strain' + +## Schema Triples: + +```text +gn:strainOfSpecies -> rdfs:domain -> gn:strain +gn:strainOfSpecies -> rdfs:range -> gn:species +gn:name -> rdfs:range -> rdfs:Literal +gn:alias -> rdfs:range -> rdfs:Literal +gn:symbol -> rdfs:range -> rdfs:Literal +``` +## Generated Triples: + +The following SQL query was executed: + +```sql +SELECT CAST(CONVERT(BINARY CONVERT(Strain.Name USING latin1) USING utf8) AS VARCHAR(15000)) AS StrainName, Species.FullName, Strain.Name, Strain.Name2, Strain.Alias, Strain.Symbol FROM Strain LEFT JOIN Species ON Strain.SpeciesId = Species.SpeciesId +``` + +The above query results to triples that have the form: + +```text +gn:strain_strainname -> rdf:type -> gn:strain +gn:strain_strainname -> gn:strainOfSpecies -> gn:species_species_fullname_ +gn:strain_strainname -> gn:name -> StrainName +gn:strain_strainname -> gn:name -> StrainName2 +gn:strain_strainname -> gn:alias -> StrainAlias +gn:strain_strainname -> gn:symbol -> Strain(Symbol) +``` +Here's an example query: + +```sparql +PREFIX rdf: +PREFIX rdfs: +PREFIX gn: +PREFIX taxon: + +SELECT ?s ?p ?o WHERE { + ?s rdf:type gn:strain . + ?s gn:strainOfSpecies gn:species_mus_musculus . + ?s gn:name "B6D2F1" . + ?s ?p ?o . +} +``` + +Expected Result: + +```rdf +gn:strain_b6d2f1 rdf:type gn:strain . +gn:strain_b6d2f1 gn:strainOfSpecies gn:species_mus_musculus . +gn:strain_b6d2f1 gn:name "B6D2F1" . +gn:strain_b6d2f1 gn:name "B6D2F1" . +``` + + +## 'dump-mapping-method' + +## Schema Triples: + +```text +``` +## Generated Triples: + +The following SQL query was executed: + +```sql +SELECT MappingMethod.Name FROM MappingMethod +``` + +The above query results to triples that have the form: + +```text +gn:mappingMethod_mappingmethod_name_ -> rdf:type -> gn:mappingMethod +``` +Here's an example query: + +```sparql +PREFIX rdf: +PREFIX rdfs: +PREFIX gn: +PREFIX taxon: + +SELECT ?s ?p ?o WHERE { + ?s ?p ?o . +} +``` + +Expected Result: + +```rdf +gn:mappingMethod_qtlreaper rdf:type gn:mappingMethod . +``` + + +## 'dump-avg-method' + +## Schema Triples: + +```text +gn:name -> rdfs:range -> rdfs:Literal +``` +## Generated Triples: + +The following SQL query was executed: + +```sql +SELECT AvgMethod.Name, AvgMethod.Name FROM AvgMethod +``` + +The above query results to triples that have the form: + +```text +gn:avgmethod_avgmethod_name_ -> rdf:type -> gn:avgMethod +gn:avgmethod_avgmethod_name_ -> gn:name -> AvgMethod(Name) +``` +Here's an example query: + +```sparql +PREFIX rdf: +PREFIX rdfs: +PREFIX gn: +PREFIX taxon: + +SELECT ?s ?p ?o WHERE { + ?s rdf:type gn:avgMethod . + ?s ?p ?o . +} +``` + +Expected Result: + +```rdf +gn:avgmethod_mas5 rdf:type gn:avgMethod . +gn:avgmethod_mas5 gn:name "MAS5" . +``` + diff --git a/rdf-documentation/dump-tissue.md b/rdf-documentation/dump-tissue.md new file mode 100644 index 0000000..bfa2a76 --- /dev/null +++ b/rdf-documentation/dump-tissue.md @@ -0,0 +1,42 @@ +# Tissue Metadata +## 'dump-tissue' + +## Schema Triples: + +```text +gn:name -> rdfs:range -> rdfs:Literal +``` +## Generated Triples: + +The following SQL query was executed: + +```sql +SELECT Tissue.Short_Name, Tissue.Name FROM Tissue +``` + +The above query results to triples that have the form: + +```text +gn:tissue_tissue_short_name_ -> rdf:type -> gn:tissue +gn:tissue_tissue_short_name_ -> gn:name -> Tissue(Name) +``` +Here's an example query: + +```sparql +PREFIX rdf: +PREFIX rdfs: +PREFIX gn: + +SELECT ?s ?p ?o WHERE { + ?s rdf:type gn:tissue . + ?s ?p ?o . +} +``` + +Expected Result: + +```rdf +gn:tissue_brn rdf:type gn:tissue . +gn:tissue_brn gn:name "Brain mRNA" . +``` + -- cgit v1.2.3