From: preecej Date: Fri, 29 Jul 2011 23:52:30 +0000 (+0000) Subject: Added before migrating to Test. X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=582b85a2ea555429ec89bf082e90680b8dc619a9;p=old-jaiswallab-svn%2F.git Added before migrating to Test. svn path=/; revision=133 --- diff --git a/preecej/semantic_wiki/templates/Annotation.wiki b/preecej/semantic_wiki/templates/Annotation.wiki index bfef2bb..4e9f9bd 100644 --- a/preecej/semantic_wiki/templates/Annotation.wiki +++ b/preecej/semantic_wiki/templates/Annotation.wiki @@ -7,6 +7,7 @@ It should be called in the following format: |Species ID= |Gene Symbol= |Gene Name= +|Gene Locus= |Gene Type= |EC Number(s)= |Chromosome= @@ -15,10 +16,15 @@ It should be called in the following format: }} Edit the page to see the template text. - +__NOTOC__ +'''[[Has Gene Symbol::{{{Gene Symbol|}}}]] (''[[Has Species Name::{{{Species Name|}}}]]'')''' -__NOTOC__ -'''[[Has Gene Symbol::{{{Gene Symbol|}}}]] (''[[Has Species Name::{{{Species Name|}}}]]'')''' +{{#get_web_data: + |url=http://eutils.ncbi.nlm.nih.gov/entrez/eutils//esearch.fcgi?db=taxonomy&term={{{Species Name|}}} + |format=XML + |data=species_id=id +}} +{{#set:Has Species ID={{#external_value:species_id}} }} = Annotation = @@ -27,7 +33,7 @@ __NOTOC__ | [[Has Species Name::{{{Species Name|}}}]] |- ! Species ID -| [[Has Species ID::{{{Species ID|}}}]] +| NCBI:[[Has Species ID::{{#external_value:species_id}}]] |- ! Gene Symbol | [[Has Gene Symbol::{{{Gene Symbol|}}}]] @@ -37,7 +43,7 @@ __NOTOC__ |- ! Gene Synonyms | {{#if: {{#ask:[[Category:Gene_Synonyms]][[Is Associated With Annotation::{{PAGENAME}} ]] }} - | {{#ask:[[Is Gene Synonym Pair::~{{PAGENAME}}/Gene_Synonyms]] + | {{#ask:[[Category:Gene_Synonyms]][[Is Associated With Annotation::{{PAGENAME}}]] | ?is_Gene_Synonym | headers=hide | mainlabel=- @@ -46,6 +52,9 @@ __NOTOC__ | None available }} |- +! Gene Locus +| [[Has Gene Locus::{{{Gene Locus|}}}]] +|- ! Gene Type | [[Has Gene Type::{{{Gene Type|}}}]] |- diff --git a/preecej/semantic_wiki/templates/External_Reference_Repeater.wiki b/preecej/semantic_wiki/templates/External_Reference_Repeater.wiki new file mode 100644 index 0000000..1772131 --- /dev/null +++ b/preecej/semantic_wiki/templates/External_Reference_Repeater.wiki @@ -0,0 +1,24 @@ + +This is the "External Reference Repeater" template. +It should be called in the following format: +
+{{External Reference Repeater
+|External Source=
+|External Accession ID=
+}}
+
+Edit the page to see the template text. +
{{#set_internal:is_External_Reference +|from_External_Source={{{External Source|}}} +|has_External_Accession_ID={{{External Accession ID|}}} +}} + +{| class="wikitable" +! Source +| [[From External Source::{{{External Source|}}}]] +|- +! Accession ID +| [[Has External Accession ID::{{{External Accession ID|}}}]] +|} + + diff --git a/preecej/semantic_wiki/templates/External_References.wiki b/preecej/semantic_wiki/templates/External_References.wiki new file mode 100644 index 0000000..a965393 --- /dev/null +++ b/preecej/semantic_wiki/templates/External_References.wiki @@ -0,0 +1,18 @@ + +This is the "External References" template. +It should be called in the following format: +
+{{External References
+|Annotation Page=
+}}
+
+Edit the page to see the template text. +
+{| class="wikitable" +! Annotation Page +| [[Is Associated With Annotation::{{{Annotation Page|}}}]] +|} + +[[Category:External References]] + + diff --git a/preecej/semantic_wiki/templates/Gene_Synonym_Repeater.wiki b/preecej/semantic_wiki/templates/Gene_Synonym_Repeater.wiki new file mode 100644 index 0000000..20681d1 --- /dev/null +++ b/preecej/semantic_wiki/templates/Gene_Synonym_Repeater.wiki @@ -0,0 +1,14 @@ + +This is the "Gene Synonym Repeater" template. +It should be called in the following format: +
+{{Gene Synonym Repeater
+|Gene Synonym=
+}}
+
+Edit the page to see the template text. +
{| class="wikitable" +! Gene Synonym +| [[Is Gene Synonym::{{{Gene Synonym|}}}]] +|} + diff --git a/preecej/semantic_wiki/templates/Gene_Synonyms.wiki b/preecej/semantic_wiki/templates/Gene_Synonyms.wiki new file mode 100644 index 0000000..8ed271d --- /dev/null +++ b/preecej/semantic_wiki/templates/Gene_Synonyms.wiki @@ -0,0 +1,21 @@ + +This is the "Gene Synonyms" template. +It should be called in the following format: +
+{{Gene Synonyms
+|Annotation Page=
+}}
+
+Edit the page to see the template text. +
+{| class="wikitable" +! Annotation Page +| [[Is Associated With Annotation::{{{Annotation Page|}}}]] +|- +! Gene Name +| {{#show: {{{Annotation Page|}}}|?has_Gene_Name}} +|} + +[[Category:Gene Synonyms]] + + diff --git a/preecej/semantic_wiki/templates/Ontological_Reference_Repeater.wiki b/preecej/semantic_wiki/templates/Ontological_Reference_Repeater.wiki new file mode 100644 index 0000000..49a080e --- /dev/null +++ b/preecej/semantic_wiki/templates/Ontological_Reference_Repeater.wiki @@ -0,0 +1,38 @@ + +This is the "Ontological Reference Repeater" template. +It should be called in the following format: +
+{{Ontological Reference Repeater
+|Ontology=
+|Term ID=
+|Term Name=
+|Aspect=
+|Evidence Code=
+}}
+
+Edit the page to see the template text. +
+{{#set_internal:is_Ontological_Reference +|from_Ontology={{{Ontology|}}} +|has_Term_ID={{{Term ID|}}} +|has_Term_Name={{{Term Name|}}} +|has_Aspect={{{Aspect|}}} +}} +{| class="wikitable" +! Ontology +| [[From Ontology::{{{Ontology|}}}]] +|- +! Term Name +| [[Has Term Name::{{{Term Name|}}}]] +|- +! Term ID +| [[Has Term ID::{{{Term ID|}}}]] +|- +! Branch +| [[Has Aspect::{{{Aspect|}}}]] +|- +! Evidence Code +| [[Has Evidence Code::{{{Evidence Code|}}}]] +|} + + diff --git a/preecej/semantic_wiki/templates/Ontological_References.wiki b/preecej/semantic_wiki/templates/Ontological_References.wiki new file mode 100644 index 0000000..4e88f08 --- /dev/null +++ b/preecej/semantic_wiki/templates/Ontological_References.wiki @@ -0,0 +1,18 @@ + +This is the "Ontological References" template. +It should be called in the following format: +
+{{Ontological References
+|Annotation Page=
+}}
+
+Edit the page to see the template text. +
+{| class="wikitable" +! Annotation Page +| [[Is Associated With Annotation::{{{Annotation Page|}}}]] +|} + +[[Category:Ontological References]] + + diff --git a/preecej/semantic_wiki/templates/Plant_Ontology_Reference_Repeater.wiki b/preecej/semantic_wiki/templates/Plant_Ontology_Reference_Repeater.wiki new file mode 100644 index 0000000..78f439a --- /dev/null +++ b/preecej/semantic_wiki/templates/Plant_Ontology_Reference_Repeater.wiki @@ -0,0 +1,40 @@ + +This is the "Plant Ontology Reference Repeater" template. +It should be called in the following format: +
+{{Plant Ontology Reference Repeater
+|Term ID=
+|Term Name=
+|Aspect=
+}}
+
+Edit the page to see the template text. +
{{#get_web_data: + |url=http://dev.planteome.org/w/prototyping/TermSearch_JSON.php?user=paw&field=name&type=term_detail&qval={{{Term Name|}}}&format=json + |format=JSON + |data=term_id=id,term_aspect=aspect,term_definition=definition,term_comment=comment +}} +{{#set_internal:is_Ontological_Reference +|from_Ontology=Plant Ontology +|has_Term_ID={{#external_value:term_id}} +|has_Term_Name={{{Term Name|}}} +|has_Aspect={{#external_value:term_aspect}} +}} +{| class="wikitable" +! Ontology +| Plant Ontology +|- +! Term Name +| [[Has Term Name::{{{Term Name|}}}]] +|- +! Term ID +| [[Has Term ID::{{#external_value:term_id}}]] +|- +! Branch +| {{#external_value:term_aspect}} +|- +! Definition +| {{#external_value:term_definition}} +|} + + diff --git a/preecej/semantic_wiki/templates/Provenance.wiki b/preecej/semantic_wiki/templates/Provenance.wiki new file mode 100644 index 0000000..2e1764f --- /dev/null +++ b/preecej/semantic_wiki/templates/Provenance.wiki @@ -0,0 +1,18 @@ + +This is the "Provenance" template. +It should be called in the following format: +
+{{Provenance
+|Annotation Page=
+}}
+
+Edit the page to see the template text. +
+{| class="wikitable" +! Annotation +| [[Is Associated With Annotation::{{{Annotation Page|}}}]] +|} + +[[Category:Provenance]] + + diff --git a/preecej/semantic_wiki/templates/Provenance_Repeater.wiki b/preecej/semantic_wiki/templates/Provenance_Repeater.wiki new file mode 100644 index 0000000..0f76db8 --- /dev/null +++ b/preecej/semantic_wiki/templates/Provenance_Repeater.wiki @@ -0,0 +1,29 @@ + +This is the "Provenance Repeater" template. +It should be called in the following format: +
+{{Provenance Repeater
+|Source=
+|Source Accession ID=
+|Source Template=
+|Source Field=
+}}
+
+Edit the page to see the template text. +
{{#set_internal:is_Provenance +|has_Source={{{Source|}}} +|has_Source_Accession_ID={{{Source Accession ID|}}} +|is_Associated_With_Field={{{Source Field|}}} +|is_Associated_With_Template={{{Source Template|}}} }} + +{| class="wikitable" +! Source +| [[Has Source::{{{Source|}}}]] +|- +! Accession ID +| [[Has Source Accession ID::{{{Source Accession ID|}}}]] +|- +! Field +| [[Is Associated With Field::{{{Source Field|}}}]] (''Template'': {{{Source Template|}}}) +|} + diff --git a/preecej/semantic_wiki/templates/Publication.wiki b/preecej/semantic_wiki/templates/Publication.wiki new file mode 100644 index 0000000..e447cd8 --- /dev/null +++ b/preecej/semantic_wiki/templates/Publication.wiki @@ -0,0 +1,54 @@ + +This is the "Publication" template. +It should be called in the following format: +
+{{Publication
+|Publication=
+|Publication ID=
+|Publication Title=
+|First Author=
+|Journal Name=
+|Volume=
+|Year=
+|Pages=
+|Annotation References=
+|New Annotation Reference=
+}}
+
+Edit the page to see the template text. +
+{| class="wikitable" +! Publication +| [[Has Publication Type::{{{Publication|}}}]] +|- +! Publication Identifier +| [[Has Publication ID::{{{Publication ID|}}}]] +|- +! Publication Title +| [[Has Publication Title::{{{Publication Title|}}}]] +|- +! First Author +| [[Has First Author::{{{First Author|}}}]] +|- +! Journal Name +| [[Has Journal Name::{{{Journal Name|}}}]] +|- +! Volume +| [[Has Publication Volume::{{{Volume|}}}]] +|- +! Year +| [[Has Publication Year::{{{Year|}}}]] +|- +! Pages +| [[Has Publication Pages::{{{Pages|}}}]] +|- +! Annotation References +| {{#arraymap:{{{Annotation References|}}}|,|x|[[Is Associated With Annotations::x]]}} +|- +! New Annotation Reference (to be hidden) +| [[Has New Annotation Association::{{{New Annotation Reference|}}}]] +|} + +[[Category:Publications]] + + diff --git a/preecej/semantic_wiki/templates/Reference_Publication.wiki b/preecej/semantic_wiki/templates/Reference_Publication.wiki new file mode 100644 index 0000000..d7a1751 --- /dev/null +++ b/preecej/semantic_wiki/templates/Reference_Publication.wiki @@ -0,0 +1,61 @@ + +This is the "Reference Publication" template. +It should be called in the following format: +
+{{Reference Publication
+|Publication=
+|Publication ID=
+|Publication Title=
+|First Author=
+|Journal Name=
+|Volume=
+|Year=
+|Pages=
+|Annotation References=
+|New Annotation Reference=
+}}
+
+Edit the page to see the template text. +
+ +{{#get_web_data: +url=http://dev.planteome.org/w/prototyping/NCBI_eDocSummary.php?pub_id={{{Publication ID|}}} +|format=XML +|data=pub_id=Id,year=PubDate,first_author=LastAuthor,journal_name=FullJournalName,title=Title,volume=Volume,pages=Pages +}} + +{| class="wikitable" +! Publication +| [[Has Publication Type::{{{Publication|}}}]] +|- +! Publication Identifier +| [[Has Publication ID::{{{Publication ID|}}}]] +|- +! Publication Title +| [[Has Publication Title::{{#for_external_table:{{{title}}} }}]] +|- +! First Author +| [[Has First Author::{{#for_external_table:{{{first_author}}} }}]] +|- +! Journal Name +| [[Has Journal Name::{{#for_external_table:{{{journal_name}}} }}]] +|- +! Volume +| [[Has Publication Volume::{{#for_external_table:{{{volume}}} }}]] +|- +! Year +| [[Has Publication Year::{{#for_external_table:{{{year}}} }}]] +|- +! Pages +| [[Has Publication Pages::{{#for_external_table:{{{pages}}} }}]] +|- +! Annotation References +| {{#arraymap:{{{Annotation References|}}}|,|x|[[Is Associated With Annotations::x]]}} +|- +! New Annotation Reference (to be hidden) +| [[Has New Annotation Association::{{{New Annotation Reference|}}}]] +|} + +[[Category:Reference Publications]] + + diff --git a/preecej/semantic_wiki/templates/Sequence_Repeater.wiki b/preecej/semantic_wiki/templates/Sequence_Repeater.wiki new file mode 100644 index 0000000..e9c84b6 --- /dev/null +++ b/preecej/semantic_wiki/templates/Sequence_Repeater.wiki @@ -0,0 +1,28 @@ + +This is the "Sequence Repeater" template. +It should be called in the following format: +
+{{Sequence Repeater
+|Sequence Type=
+|Sequence Source=
+|External Accession ID=
+}}
+
+Edit the page to see the template text. +
{{#set_internal:is_Sequence_Reference +|has_Sequence_Type={{{Sequence Type}}} +|has_Sequence_Source={{{Sequence Source|}}} +|has_External_Accession_ID={{{External Accession ID|}}} +}} +{| class="wikitable" +! Sequence Type +| [[Has Sequence Type::{{{Sequence Type|}}}]] +|- +! Sequence Source +| [[Has Sequence Source::{{{Sequence Source|}}}]] +|- +! Accession ID +| [[Has External Accession ID::{{{External Accession ID|}}}]] +|} + + diff --git a/preecej/semantic_wiki/templates/Sequences.wiki b/preecej/semantic_wiki/templates/Sequences.wiki new file mode 100644 index 0000000..2a98b35 --- /dev/null +++ b/preecej/semantic_wiki/templates/Sequences.wiki @@ -0,0 +1,18 @@ + +This is the "Sequences" template. +It should be called in the following format: +
+{{Sequences
+|Annotation Page=
+}}
+
+Edit the page to see the template text. +
+{| class="wikitable" +! Annotation Page +| [[Is Associated With Annotation::{{{Annotation Page|}}}]] +|} + +[[Category:Sequences]] + + diff --git a/preecej/semantic_wiki/templates/Source.wiki b/preecej/semantic_wiki/templates/Source.wiki index 9aa3ea2..3cb52f7 100644 --- a/preecej/semantic_wiki/templates/Source.wiki +++ b/preecej/semantic_wiki/templates/Source.wiki @@ -3,7 +3,6 @@ This is the "Source" template. It should be called in the following format:
 {{Source
-|Accession ID=
 |Source Date Stamp=
 |Source Database=
 |Source Version=
@@ -14,9 +13,6 @@ It should be called in the following format:
 Edit the page to see the template text.
 
 {| class="wikitable"
-! Accession ID
-| [[Has Accession ID::{{{Accession ID|}}}]]
-|-
 ! Release Date
 | [[Has Date Stamp::{{{Source Date Stamp|}}}]]
 |-