Mapping to PDB added
authoramwaterhouse <Andrew Waterhouse>
Thu, 10 Nov 2005 10:58:28 +0000 (10:58 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 10 Nov 2005 10:58:28 +0000 (10:58 +0000)
resources/uniprot_mapping.xml

index 697c90c..40bc259 100755 (executable)
@@ -1,5 +1,4 @@
 <?xml version="1.0"?>\r
-<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN" "http://castor.exolab.org/mapping.dtd">\r
 <mapping>\r
        <class name="jalview.datamodel.UniprotFile">\r
                  <map-to xml="uniprot"/>               \r
              <field name="UniprotSequence" type="jalview.datamodel.UniprotSequence">\r
                <bind-xml name="sequence"/> \r
               </field>\r
-              <field name="features" type="jalview.datamodel.SequenceFeature" collection="vector">\r
-                 <bind-xml name="feature"/>\r
-              </field>\r
+              <field name="feature" type="jalview.datamodel.SequenceFeature" collection="vector"/>\r
               \r
+              <field name="dbReference" type="jalview.datamodel.PDBEntry" collection="vector"/>\r
+                      \r
         </class>\r
         \r
         \r
         <class name="jalview.datamodel.SequenceFeature">\r
                <field name="type">\r
-                       <bind-xml name="type" node="attribute"/>\r
+                       <bind-xml node="attribute"/>\r
                </field>\r
                <field name="description">\r
-                        <bind-xml name="description" node="attribute"/>\r
+                        <bind-xml node="attribute"/>\r
                </field>\r
                <field name="status">\r
-                       <bind-xml name="status" node="attribute"/>\r
+                       <bind-xml node="attribute"/>\r
                </field>\r
                <field name="position">\r
                 <bind-xml name="position" node="attribute" location="location/position"/>\r
                        <bind-xml name="sequence" node="text"/>\r
                     </field>\r
         </class>\r
+        \r
+        <class name="jalview.datamodel.PDBEntry">\r
+               <field name="type"><bind-xml node="attribute"/></field>\r
+               <field name="id"><bind-xml node="attribute"/></field>\r
+               <field name="property" collection="hashtable">\r
+                       <bind-xml name="property">\r
+                          <class name="org.exolab.castor.mapping.MapItem">\r
+                             <field name="key">\r
+                               <bind-xml name="type" node="attribute"/>\r
+                             </field>\r
+                             <field name="value">\r
+                               <bind-xml node="attribute"/>\r
+                               </field>\r
+                          </class>\r
+                       </bind-xml>\r
+               </field>\r
+        </class>\r
 \r
 </mapping>\r