/[volute]/trunk/projects/dm/vo-dml/xsd/ext/VOTable-1.3_vodmlAlt-GL-1type.xsd
ViewVC logotype

Diff of /trunk/projects/dm/vo-dml/xsd/ext/VOTable-1.3_vodmlAlt-GL-1type.xsd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3834 by gerard.lemson, Tue Jan 24 13:05:10 2017 UTC revision 3835 by gerard.lemson, Tue Jan 24 14:09:14 2017 UTC
# Line 476  Line 476 
476        
477    <xs:complexType name="VODML">    <xs:complexType name="VODML">
478      <xs:sequence>      <xs:sequence>
479          <xs:element name="TARGET" type="VODMLAnnotationTarget" minOccurs="0"/>
480        <xs:element name="MODEL" type="Model" minOccurs="0" maxOccurs="unbounded" />        <xs:element name="MODEL" type="Model" minOccurs="0" maxOccurs="unbounded" />
481        <xs:element name="VODML_GLOBALS" type="VODMLGlobals" minOccurs="0" maxOccurs="unbounded"/>        <xs:element name="VODML_GLOBALS" type="VODMLGlobals" minOccurs="0" maxOccurs="unbounded"/>
482        <xs:element name="VODML_TEMPLATES" type="VODMLInstanceTemplates" minOccurs="0" maxOccurs="unbounded"/>        <xs:element name="VODML_TEMPLATES" type="VODMLInstanceTemplates" minOccurs="0" maxOccurs="unbounded"/>
         
483      </xs:sequence>      </xs:sequence>
484    </xs:complexType>    </xs:complexType>
485      
486      <xs:simpleType name="VODMLAnnotationTargetType">
487      <xs:restriction base="xs:string">
488        <xs:enumeration value="VOTable">
489          <xs:annotation>
490            <xs:documentation>
491            The data that is annotated resides in a VOTable elsewhere, indicated by a URL.
492            </xs:documentation>
493          </xs:annotation>
494        </xs:enumeration>
495        <xs:enumeration value="FITS">
496          <xs:annotation>
497            <xs:documentation>
498            The data that is annotated resides in a FITS file elsewhere, indicated by a URL.
499            </xs:documentation>
500          </xs:annotation>
501        </xs:enumeration>
502        <xs:enumeration value="TAP_SCHEMA">
503          <xs:annotation>
504            <xs:documentation>
505            The data that is annotated is accessible through the TAP service indicated by a URL end point.
506            </xs:documentation>
507          </xs:annotation>
508        </xs:enumeration>
509      </xs:restriction>
510      </xs:simpleType>
511      
512      <xs:complexType name="VODMLAnnotationTarget">
513        <xs:sequence>
514          <xs:element name="TARGETTYPE" type="VODMLAnnotationTargetType"/>
515          <xs:element name="LOCATION" type="xs:anyURI"/>
516        </xs:sequence>
517      </xs:complexType>
518      
519          <xs:complexType name="VODMLGlobals">          <xs:complexType name="VODMLGlobals">
520                  <xs:annotation>                  <xs:annotation>
521                          <xs:documentation>                          <xs:documentation>
# Line 505  Line 539 
539                  <xs:sequence>                  <xs:sequence>
540        <xs:element name="VODMLOBJECT" type="VODMLObject" minOccurs="0" maxOccurs="unbounded" />        <xs:element name="VODMLOBJECT" type="VODMLObject" minOccurs="0" maxOccurs="unbounded" />
541                  </xs:sequence>                  </xs:sequence>
542      <xs:attribute name="tableref" type="xs:IDREF" use="required"/>      <xs:attribute name="tableref" type="xs:IDREF" use="optional"/>
543        <xs:attribute name="tablename" type="xs:string" use="optional">
544          <xs:annotation>
545            <xs:documentation>
546            For TAP_SCHEMA
547            </xs:documentation>
548          </xs:annotation>
549        </xs:attribute>
550        <xs:attribute name="tablerank" type="xs:int" use="optional">
551          <xs:annotation>
552            <xs:documentation>
553              For FITS files or VOTable TABLEs without ID.
554            </xs:documentation>
555          </xs:annotation>
556        </xs:attribute>
557          </xs:complexType>          </xs:complexType>
558    
559          <xs:complexType name="Model">          <xs:complexType name="Model">
# Line 560  Line 608 
608                  </xs:complexContent>                  </xs:complexContent>
609          </xs:complexType>          </xs:complexType>
610    
611          <xs:complexType name="VODMLLiteral"> <!-- in place of PARAM -->    <xs:complexType name="VODMLPrimitive"> <!-- in place of PARAM -->
612      <xs:complexContent>      <xs:complexContent>
613        <xs:extension base="VODMLInstance">        <xs:extension base="VODMLInstance">
614            <xs:sequence>
615                            <xs:element name="OPTIONMAPPING" type="VODMLOptionMapping" minOccurs="0" maxOccurs="unbounded">
616                              <xs:annotation>
617                                <xs:documentation>
618                                    Allows one to map OPTION values in VOTABLE to either EnumLiterals in data model (if TYPE identifies VO-DML/ Enumeration),
619                                    or SKOSConcept in external SKOS vocabulary (if ROLE is a VO-DML/Attribute containing a skosconcept declaration).
620                                    NB: IF the datatype of the ROLE is an Enumeration, and there is NO optionmapping it implies that the values ARE the enum literals, or the concepts.
621                                    </xs:documentation>
622                                  </xs:annotation>
623                                </xs:element>  
624            </xs:sequence>
625          </xs:extension>
626        </xs:complexContent>
627      </xs:complexType>
628    
629    
630            <xs:complexType name="VODMLLiteral"> <!-- in place of PARAM -->
631        <xs:complexContent>
632          <xs:extension base="VODMLPrimitive">
633                                  <xs:attribute name="datatype" type="dataType" />                                  <xs:attribute name="datatype" type="dataType" />
634                                  <xs:attribute name="unit" type="xs:string" />                                  <xs:attribute name="unit" type="xs:string" />
635                                  <xs:attribute name="arraysize" type="arrayDEF" />                                  <xs:attribute name="arraysize" type="arrayDEF" />
# Line 570  Line 637 
637        </xs:extension>        </xs:extension>
638      </xs:complexContent>      </xs:complexContent>
639          </xs:complexType>          </xs:complexType>
640      
641      <xs:complexType name="VODMLOptionMapping">
642      <xs:annotation>
643        <xs:documentation>
644        Allows one to map particular values defined in a VALUES/OPTION list to enumeration literals
645        in the VO-DML model or to a concept in a SKOS vocabulary.
646        </xs:documentation>
647      </xs:annotation>
648        <xs:sequence>
649          <xs:element name="OPTION" type="xs:string" minOccurs="1" maxOccurs="1" >
650            <xs:annotation>
651              <xs:documentation>
652              The VOTable OPTION value that is being maped to enum literal or semantic concept.
653              </xs:documentation>
654            </xs:annotation>
655          </xs:element>
656          <xs:choice>
657            <xs:element name="LITERAL" type="VODMLReference" minOccurs="1" maxOccurs="1" />
658            <xs:element name="SEMANTICCONCEPT" type="xs:string" minOccurs="1" maxOccurs="1" >
659            <xs:annotation>
660            <xs:documentation>
661            TBD anyURI as an identifier of concepts made sense for SKOS vocabularies. How about general semantic vocabularies?
662            I.e. is it ok for the type be xs:string iso xs:anyURI?
663            </xs:documentation>
664            </xs:annotation>
665            </xs:element>
666          </xs:choice>
667        </xs:sequence>
668      </xs:complexType>
669          <xs:complexType name="VODMLFieldRef">          <xs:complexType name="VODMLFieldRef">
670      <xs:complexContent>      <xs:complexContent>
671        <xs:extension base="VODMLInstance">        <xs:extension base="VODMLPrimitive">
672          <xs:attribute name="fieldref" type="xs:IDREF" use="required" />          <xs:attribute name="fieldref" type="xs:IDREF" use="required" />
673        </xs:extension>        </xs:extension>
674      </xs:complexContent>      </xs:complexContent>
# Line 755  Line 850 
850          <xs:element name="VOTABLE">          <xs:element name="VOTABLE">
851                  <xs:complexType>                  <xs:complexType>
852                          <xs:sequence>                          <xs:sequence>
853                                  <xs:element name="VODML" type="VODML" minOccurs="0" />                                  <xs:element name="VODML_ANNOTATION" type="VODML" minOccurs="0" />
854                                  <xs:element name="DESCRIPTION" type="anyTEXT" minOccurs="0" />                                  <xs:element name="DESCRIPTION" type="anyTEXT" minOccurs="0" />
855                                  <xs:element name="DEFINITIONS" type="Definitions" minOccurs="0" />                                  <xs:element name="DEFINITIONS" type="Definitions" minOccurs="0" />
856                                  <!-- Deprecated -->                                  <!-- Deprecated -->
# Line 779  Line 874 
874                          </xs:attribute>                          </xs:attribute>
875                  </xs:complexType>                  </xs:complexType>
876          </xs:element>          </xs:element>
877    
878    
879    
880    
881    <!-- ONe MAY only have a VODML nnotation, in that case the target type MUST be provided -->
882    <xs:element name="VODML_ANNOTATION" type="VODML"/>
883    
884    
885    
886  </xs:schema>  </xs:schema>

Legend:
Removed from v.3834  
changed lines
  Added in v.3835

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26