Changeset 369


Ignore:
Timestamp:
04/08/15 09:26:17 (5 years ago)
Author:
mjuckes
Message:

Added first draft of vocabularies

Location:
CMIP6dreq/trunk
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreq/trunk/docs/dreqSample.xml

    r365 r369  
    33<var class="vocab" title="MIP Variable" id="cmip.drv.001"> 
    44<!-- <info srcType="dummy" srcRef="ptxt.py">Dummy entries</info> --> 
    5 <item id="001.001.001" label="example-01" title="dummy title string" sn="dummyAt" units="dummyAt" description="dummyAt" procnote="dummyAt" procComment="dummyAt" prov="dummyAt" uuid="4b3b863e-39b7-11e5-b65c-5404a60d96b5"/> 
     5<item id="001.001.001" label="example-01" title="dummy title string" sn="dummyAt" units="dummyAt" description="dummyAt" procnote="dummyAt" procComment="dummyAt" prov="dummyAt" uuid="fa2c694a-3a81-11e5-ab95-ac72891c3257"/> 
    66</var> 
    77<ovar class="vocab" title="MIP Output Variable" id="cmip.drv.002"> 
    88<!-- <info srcType="dummy" srcRef="ptxt.py">Dummy entries</info> --> 
    9 <item id="001.002.001" label="example-01" title="dummy title string" uuid="4b3bc93c-39b7-11e5-b65c-5404a60d96b5" comment="dummyAt" deflate_level="dummyAt" shuffle="dummyAt" ok_max_mean_abs="dummyAt" flag_meanings="dummyAt" type="dummyAt" ok_min_mean_abs="dummyAt" sn="dummyAt" deflate="dummyAt" valid_min="dummyAt" cell_methods="dummyAt" flag_values="dummyAt" cell_measures="dummyAt" out_name="dummyAt" modeling_realm="dummyAt" units="dummyAt" cell_methods_xx="dummyAt" valid_max="dummyAt" positive="dummyAt" mipTable="dummyAt" dimensions="dummyAt" vid="dummyAt" frequency="dummyAt"/> 
     9<item id="001.002.001" label="example-01" title="dummy title string" uuid="fa2cb13e-3a81-11e5-ab95-ac72891c3257" comment="dummyAt" deflate_level="dummyAt" shuffle="dummyAt" ok_max_mean_abs="dummyAt" flag_meanings="dummyAt" type="dummyAt" ok_min_mean_abs="dummyAt" sn="dummyAt" deflate="dummyAt" valid_min="dummyAt" cell_methods="dummyAt" flag_values="dummyAt" cell_measures="dummyAt" out_name="dummyAt" modeling_realm="dummyAt" units="dummyAt" cell_methods_xx="dummyAt" valid_max="dummyAt" positive="dummyAt" mipTable="dummyAt" dimensions="dummyAt" vid="dummyAt" frequency="dummyAt"/> 
    1010</ovar> 
    1111<groupItem class="vocab" title="Output Group Item" id="cmip.drv.003"> 
    1212<!-- <info srcType="dummy" srcRef="ptxt.py">Dummy entries</info> --> 
    13 <item id="001.003.001" label="example-01" title="dummy title string" group="dummyAt" table="dummyAt" freq="dummyAt" descriptionEx="dummyAt" shape="dummyAt" levels="dummyAt" tstyle="dummyAt" mask="dummyAt" misc="dummyAt" mip="dummyAt" uuid="4b3c099c-39b7-11e5-b65c-5404a60d96b5" new="dummyAt" gpid="dummyAt" vkey="dummyAt" vid="dummyAt"/> 
     13<item id="001.003.001" label="example-01" title="dummy title string" group="dummyAt" table="dummyAt" freq="dummyAt" descriptionEx="dummyAt" shape="dummyAt" levels="dummyAt" tstyle="dummyAt" mask="dummyAt" misc="dummyAt" mip="dummyAt" uuid="fa2cf2d4-3a81-11e5-ab95-ac72891c3257" new="dummyAt" gpid="dummyAt" vkey="dummyAt" vid="dummyAt"/> 
    1414</groupItem> 
    1515<revisedTabItem class="vocab" title="Revised Table Item" id="cmip.drv.004"> 
    1616<!-- <info srcType="dummy" srcRef="ptxt.py">Dummy entries</info> --> 
    17 <item id="001.004.001" label="example-01" title="dummy title string" table="dummyAt" mip="dummyAt" uuid="4b3c442a-39b7-11e5-b65c-5404a60d96b5" priority="dummyAt" vid="dummyAt" vgid="dummyAt"/> 
     17<item id="001.004.001" label="example-01" title="dummy title string" table="dummyAt" mip="dummyAt" uuid="fa2d2e52-3a81-11e5-ab95-ac72891c3257" priority="dummyAt" vid="dummyAt" vgid="dummyAt"/> 
    1818</revisedTabItem> 
    1919<requestVarGroup class="vocab" title="Request link: linking a set of variables" id="cmip.drv.005"> 
    2020<!-- <info srcType="dummy" srcRef="ptxt.py">Dummy entries</info> --> 
    21 <item id="001.005.001" label="example-01" title="dummy title string" uuid="4b3c7d3c-39b7-11e5-b65c-5404a60d96b5" mip="dummyAt" ref="dummyAt" refNote="dummyAt"/> 
     21<item id="001.005.001" label="example-01" title="dummy title string" uuid="fa2d675a-3a81-11e5-ab95-ac72891c3257" mip="dummyAt" ref="dummyAt" refNote="dummyAt"/> 
    2222</requestVarGroup> 
    2323<requestLink class="vocab" title="Request link: linking a set of variables and a set of experiments." id="cmip.drv.006"> 
    2424<!-- <info srcType="dummy" srcRef="ptxt.py">Dummy entries</info> --> 
    25 <item id="001.006.001" label="example-01" title="dummy title string" uuid="4b3c8b10-39b7-11e5-b65c-5404a60d96b5" mip="dummyAt" tab="dummyAt" objective="dummyAt" grid="dummyAt" gridreq="dummyAt" comment="dummyAt" ref="dummyAt" refNote="dummyAt" refid="dummyAt"/> 
     25<item id="001.006.001" label="example-01" title="dummy title string" uuid="fa2d73c6-3a81-11e5-ab95-ac72891c3257" mip="dummyAt" tab="dummyAt" objective="dummyAt" grid="dummyAt" gridreq="dummyAt" comment="dummyAt" ref="dummyAt" refNote="dummyAt" refid="dummyAt"/> 
    2626</requestLink> 
    2727<requestItem class="vocab" title="Request Item: specifying the number of years for an experiment" id="cmip.drv.007"> 
    2828<!-- <info srcType="dummy" srcRef="ptxt.py">Dummy entries</info> --> 
    29 <item id="001.007.001" label="example-01" title="dummy title string" uuid="4b3c916e-39b7-11e5-b65c-5404a60d96b5" mip="dummyAt" tab="dummyAt" expt="dummyAt" rlid="dummyAt" ny="25"/> 
     29<item id="001.007.001" label="example-01" title="dummy title string" uuid="fa2d79e8-3a81-11e5-ab95-ac72891c3257" mip="dummyAt" tab="dummyAt" expt="dummyAt" rlid="dummyAt" ny="25"/> 
    3030</requestItem> 
    3131<remarks class="vocab" title="Remarks about other items" id="cmip.drv.008"> 
    3232<!-- <info srcType="dummy" srcRef="ptxt.py">Dummy entries</info> --> 
    33 <item id="001.008.001" label="example-01" title="dummy title string" uuid="4b3c9a56-39b7-11e5-b65c-5404a60d96b5" tid="dummyAt" tattr="dummyAt" description="dummyAt" class="dummyAt" qid="dummyAt" techNote="dummyAt" prov="dummyAt"/> 
     33<item id="001.008.001" label="example-01" title="dummy title string" uuid="fa2d82bc-3a81-11e5-ab95-ac72891c3257" tid="dummyAt" tattr="dummyAt" description="dummyAt" class="dummyAt" qid="dummyAt" techNote="dummyAt" prov="dummyAt"/> 
    3434</remarks> 
    3535</main> 
  • CMIP6dreq/trunk/docs/dreqSchema.xsd

    r365 r369  
    55    </xs:documentation></xs:annotation> 
    66<xs:simpleType name="st__attLabel_def"><xs:restriction base="xs:string"><xs:pattern value="([a-zA-Z0-9-])+"/></xs:restriction></xs:simpleType> 
     7<xs:simpleType name="st__attLabel_und"><xs:restriction base="xs:string"><xs:pattern value="([a-zA-Z0-9_])+"/></xs:restriction></xs:simpleType> 
    78<xs:simpleType name="st__attLabel_int"><xs:restriction base="xs:integer"/></xs:simpleType> 
    89<xs:simpleType name="st__attLabel_an"><xs:restriction base="xs:string"><xs:pattern value="([a-zA-Z0-9])+"/></xs:restriction></xs:simpleType> 
  • CMIP6dreq/trunk/src/dreq.py

    r365 r369  
    4343  """Read in a vocabulary collection configuration document and a vocabulary document""" 
    4444 
    45   def __init__(self, configdoc='out/dreqDefn.xml', thisdoc='../workbook/trial_20150724.xml',silent=True): 
    46     self.silent = silent 
     45  def __init__(self, configdoc='out/dreqDefn.xml', thisdoc='../workbook/trial_20150724.xml'): 
     46    self.silent = True 
    4747    self.vdef = configdoc 
    4848    self.vsamp = thisdoc 
     
    220220class loadDreq(object): 
    221221  def __init__(self,dreqXML='../docs/dreq.xml',configdoc='../docs/dreqDefn.xml' ): 
    222     self.c = config( thisdoc=dreqXML, configdoc=configdoc,silent=False) 
     222    self.c = config( thisdoc=dreqXML, configdoc=configdoc) 
    223223    self.coll = self.c.get() 
    224224    self.inx = index(self.coll) 
    225225 
    226226if __name__ == '__main__': 
    227   dreq = loadDreq() 
    228  
     227  dreq = loadDreq( ) 
     228 
  • CMIP6dreq/trunk/src/simpleCheck.py

    r365 r369  
    6868  def _ch02_importSample(self): 
    6969    import dreq 
    70     rq = dreq.loadDreq( dreqXML='../docs/dreqSample.xml',configdoc='../docs/dreqDefn.xml' ) 
     70    rq = dreq.loadDreq( dreqXML='out/dreqSample.xml',configdoc='out/dreqDefn.xml' ) 
    7171    print 'Dreq sample load checked' 
    7272    self.ok = True 
     
    9595      self._clear_ch03() 
    9696      return 
    97     schema = '../docs/dreqSchema.xsd' 
    98     xml = '../docs/dreqSample.xml' 
     97    schema = 'out/dreqSchema.xsd' 
     98    xml = 'out/dreqSample.xml' 
    9999 
    100100    cmd = 'xmllint --noout --schema %s %s  2> .simpleCheck_check2_err.txt 1>.simpleCheck_check2.txt' % (schema,xml)  
Note: See TracChangeset for help on using the changeset viewer.