From: <nl...@us...> - 2007-12-09 02:31:50
|
Revision: 1296 http://obo.svn.sourceforge.net/obo/?rev=1296&view=rev Author: nlw Date: 2007-12-08 18:31:55 -0800 (Sat, 08 Dec 2007) Log Message: ----------- adding some new elements to phenote config spec for consolidating ontology repository definitions. Modified Paths: -------------- phenote/trunk/conf/phenote-config.rnc Modified: phenote/trunk/conf/phenote-config.rnc =================================================================== --- phenote/trunk/conf/phenote-config.rnc 2007-12-08 00:57:58 UTC (rev 1295) +++ phenote/trunk/conf/phenote-config.rnc 2007-12-09 02:31:55 UTC (rev 1296) @@ -18,6 +18,7 @@ update-timer, obo-repository, autocomplete-settings, + ontologies, field*, group*, data-input-servlet, @@ -102,6 +103,35 @@ ## this is pase and should be phased out obo-repository = element obo-repository { attribute url-dir {xsd:string} } +##this is where we'll define all the ontologies to be used throughout the config +##they'll all be in one nice, neat little place. +##the namespace will still need to be defined for the fields, not in this def. +terminology_definitions = + element terminology_definitions { + file*, + attribute update { "NONE", "SOME", "ALL" } + } + +file = + element file { + ## we'll refer to the ontology name in the fields to get the appropriate file + attribute name { xsd:string }, + ##so we can use the same xml element for both flat files or ontology files + ##would it be useful to differentiate OBO, OWL, etc? + attribute type { "ONTOLOGY" | "TXT" } + ## the url for the file. if no url, then only local file + attribute url { xsd:string }, + ## easy enough to swap in and out different repository locations +## attribute repository { xsd:string }, + ## optional - if a specific version is desired. + attribute version { xsd:string }, + ## optional - if a large ontology is desired, then we could grab an + ## ontology portion starting with this <root> term to the leaves. + attribute root { xsd:string }, + ## a flag for each individual ontology for whether or not to update automatically + attribute auto-update { xsd:boolean }, +} + field = element field { ## what relation to use in mapping field to obo annotation @@ -150,6 +180,8 @@ ontology = element ontology { + ##in the old style, this is what would be shown in the drop-down menu + ##in the new style, this is what will refer to the element ontology_def attribute name { xsd:string }, ## obo file for ontology attribute file { xsd:string }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |