Showing:

Annotations
Attributes
Diagrams
Model
Properties
Source
Used by
Imported schema eml-constraint.xsd
Namespace eml://ecoinformatics.org/constraint-2.2.0
Annotations
'$RCSfile: eml-constraint.xsd,v $'
       Copyright: 1997-2002 Regents of the University of California,
                            University of New Mexico, and
                            Arizona State University
        Sponsors: National Center for Ecological Analysis and Synthesis and
                  Partnership for Interdisciplinary Studies of Coastal Oceans,
                     University of California Santa Barbara
                  Long-Term Ecological Research Network Office,
                     University of New Mexico
                  Center for Environmental Studies, Arizona State University
   Other funding: National Science Foundation (see README for details)
                  The David and Lucile Packard Foundation
     For Details: http://knb.ecoinformatics.org/

        '$Author: obrien $'
          '$Date: 2009-02-25 23:51:54 $'
      '$Revision: 1.53 $'

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
moduleName: eml-constraint

moduleDescription: 
        
          
            The eml-constraint module - Relationships among and within
            dataset entities
          
        
        

recommendedUsage: All datasets where there are logical constraints
        between entities

standAlone: no
Properties
attribute form default unqualified
element form default unqualified
Schema location file:/Volumes/mob/EML_schema/EML-2.2.0/git_checkouts/eml/tmp/eml-constraint.xsd
Complex Type ConstraintType
Namespace eml://ecoinformatics.org/constraint-2.2.0
Annotations
tooltip: Relational integrity constraint descriptors

summary: Describes the relational integrity constraints of a
        relational database.

description: The ConstraintType type describes the relational
        integrity constraints of a relational database. This includes primary
        keys, foreign keys, unique keys, etc. When an eml-constraint module is
        created, it should be linked into a dataset using the "triple" element,
        and all of the entities that are referenced in the constraints should be
        accessible within that same package.
Diagram
Diagram NO_NAMESPACE.tmp#ConstraintType_id NO_NAMESPACE.tmp#ConstraintType_system NO_NAMESPACE.tmp#ConstraintType_scope NO_NAMESPACE.tmp#ConstraintType_primaryKey NO_NAMESPACE.tmp#ConstraintType_uniqueKey NO_NAMESPACE.tmp#ConstraintType_checkConstraint NO_NAMESPACE.tmp#ConstraintType_foreignKey NO_NAMESPACE.tmp#ConstraintType_joinCondition NO_NAMESPACE.tmp#ConstraintType_notNullConstraint
Used by
Model
Children checkConstraint, foreignKey, joinCondition, notNullConstraint, primaryKey, uniqueKey
Attributes
QName Type Default Use
id IDType optional
scope ScopeType document optional
system SystemType optional
Source
<xs:complexType name="ConstraintType">
  <xs:annotation>
    <xs:documentation>tooltip: Relational integrity constraint descriptors summary: Describes the relational integrity constraints of a relational database. description: The ConstraintType type describes the relational integrity constraints of a relational database. This includes primary keys, foreign keys, unique keys, etc. When an eml-constraint module is created, it should be linked into a dataset using the "triple" element, and all of the entities that are referenced in the constraints should be accessible within that same package.</xs:documentation>
  </xs:annotation>
  <xs:choice>
    <xs:element name="primaryKey">
      <xs:annotation>
        <xs:documentation>tooltip: Primary Key summary: The primary key in the entity description: The primaryKey element declares the primary key in the entity to which the defined constraint pertains.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:group ref="ConstraintBaseGroup"/>
          <xs:element name="key">
            <xs:annotation>
              <xs:documentation>tooltip: Key summary: The set of attributes to which this constraint applies. description: The key element defines the set of attributes to which this constraint applies. For a primary key or a unique key, the set of attributes must be identifying. For a foreign key, the set of attributes must match an identifying key in the referenced entity. For a 'not null' constraint, the key indicates the attribute which should not be null.</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:sequence>
                <xs:element name="attributeReference" type="res:NonEmptyStringType" maxOccurs="unbounded">
                  <xs:annotation>
                    <xs:documentation>tooltip: Attribute Reference summary: The identifier of an attribute found in the identified entity description: The attributeReference element is the identifier of an attribute that can be found in the identified entity. This id will be unique within an entity and specifies that the attribute participates in the key that is being defined.</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="uniqueKey">
      <xs:annotation>
        <xs:documentation>tooltip: Unique Key summary: A unique key in the entity description: The uniqueKey element represents a unique key within the referenced entity. This is different from a primary key in that it does not form any implicit foreign key relationships to other entities, however it is required to be unique within the entity.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:group ref="ConstraintBaseGroup"/>
          <xs:element name="key">
            <xs:annotation>
              <xs:documentation>tooltip: Key summary: The set of attributes to which this constraint applies. description: The key element defines the set of attributes to which this constraint applies. For a primary key or a unique key, the set of attributes must be identifying. For a foreign key, the set of attributes must match an identifying key in the referenced entity. For a 'not null' constraint, the key indicates the attribute which should not be null.</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:sequence>
                <xs:element name="attributeReference" type="res:NonEmptyStringType" maxOccurs="unbounded">
                  <xs:annotation>
                    <xs:documentation>tooltip: Attribute Reference summary: The identifier of an attribute found in the identified entity description: The attributeReference element is the identifier of an attribute that can be found in the identified entity. This id will be unique within an entity and specifies that the attribute participates in the key that is being defined.</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="checkConstraint">
      <xs:annotation>
        <xs:documentation>tooltip: Check Constraint summary: A constraint which checks a conditional clause within an entity. description: The checkConstraint element defines a constraint which checks a conditional clause within an entity.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:group ref="ConstraintBaseGroup"/>
          <xs:element name="checkCondition" type="res:NonEmptyStringType">
            <xs:annotation>
              <xs:documentation>tooltip: Check Condition summary: An SQL statement or other language implementation of the condition for a check constraint. description: The checkCondition element defines an SQL statement or other language implementation of the condition for a check constraint. Generally this provides a means for constraining the values within and among entities.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="language" type="xs:string" use="optional">
          <xs:annotation>
            <xs:documentation>tooltip: Language summary: The language that the is used to express or implement the check constraint. description: The language element declares the language that is used to implement the check constraint. This is typically the name and version of a programming language such as Java, C, Perl, Basic, or other. Sometime it is the name and version of a scriptable analysis system such as SAS, Matlab, R, or SPlus.</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:complexType>
    </xs:element>
    <xs:element name="foreignKey">
      <xs:annotation>
        <xs:documentation>tooltip: Foreign Key summary: A foreign key relationship among entities description: The foreignKey element defines a foreign key relationship among entities which relates this entity to another's primary key.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:group ref="ForeignKeyGroup"/>
      </xs:complexType>
    </xs:element>
    <xs:element name="joinCondition">
      <xs:annotation>
        <xs:documentation>tooltip: Join Condition summary: A non primary/foreign key join description: The joinCondition element describes any join of two tables that is not done with a primary/foreign key relationship.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:group ref="ForeignKeyGroup"/>
          <xs:element name="referencedKey">
            <xs:annotation>
              <xs:documentation>tooltip: Key summary: The set of attributes to which a foreign key constraint refers. description: The referencedKey element defines set of attributes to which a foreign key constraint refers. If the key refers to the primary key in the referenced entity, then the "referencedKey" is optional. For a foreign key, the set of attributes must match an identifying key in the referenced entity.</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:sequence>
                <xs:element name="attributeReference" type="res:NonEmptyStringType" maxOccurs="unbounded">
                  <xs:annotation>
                    <xs:documentation>tooltip: Attribute Reference summary: The identifier of an attribute found in the identified entity description: The attributeReference element is the identifier of an attribute that can be found in the identified entity. This id will be unique within an entity and specifies that the attribute participates in the key that is being defined.</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="notNullConstraint">
      <xs:annotation>
        <xs:documentation>tooltip: Not Null Constraint summary: A constraint that indicates that no null values should be present for an attribute. description: The notNullConstraint element defines a constraint that indicates that no null values should be present for an attribute in this entity.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:group ref="ConstraintBaseGroup"/>
          <xs:element name="key">
            <xs:annotation>
              <xs:documentation>tooltip: Key summary: The set of attributes to which this constraint applies. description: The key element defines the set of attributes to which this constraint applies. For a primary key or a unique key, the set of attributes must be identifying. For a foreign key, the set of attributes must match an identifying key in the referenced entity. For a 'not null' constraint, the key indicates the attribute which should not be null.</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:sequence>
                <xs:element name="attributeReference" type="res:NonEmptyStringType" maxOccurs="unbounded">
                  <xs:annotation>
                    <xs:documentation>tooltip: Attribute Reference summary: The identifier of an attribute found in the identified entity description: The attributeReference element is the identifier of an attribute that can be found in the identified entity. This id will be unique within an entity and specifies that the attribute participates in the key that is being defined.</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
  </xs:choice>
  <xs:attribute name="id" type="res:IDType" use="optional"/>
  <xs:attribute name="system" type="res:SystemType" use="optional"/>
  <xs:attribute name="scope" type="res:ScopeType" use="optional" default="document"/>
</xs:complexType>
Schema location file:/Volumes/mob/EML_schema/EML-2.2.0/git_checkouts/eml/tmp/eml-constraint.xsd
Simple Type CardinalityChildOccurancesType
Namespace eml://ecoinformatics.org/constraint-2.2.0
Annotations
tooltip: Child portion of a cardinality expression

summary: Child portion of a cardinality expression Allowed values
        are positive integers including zero or the string value
        "many".

description: The CardinalityChildOccurancesType element defines the
        child portion of a cardinality expression.  Allowed values are positive
        integers including zero or the string value "many".
Diagram
Diagram
Type union of(xs:integer, restriction of xs:string)
Used by
Source
<xs:simpleType name="CardinalityChildOccurancesType">
  <xs:annotation>
    <xs:documentation>tooltip: Child portion of a cardinality expression summary: Child portion of a cardinality expression Allowed values are positive integers including zero or the string value "many". description: The CardinalityChildOccurancesType element defines the child portion of a cardinality expression. Allowed values are positive integers including zero or the string value "many".</xs:documentation>
  </xs:annotation>
  <xs:union memberTypes="xs:integer">
    <xs:simpleType>
      <xs:restriction base="xs:string">
        <xs:enumeration value="many"/>
      </xs:restriction>
    </xs:simpleType>
  </xs:union>
</xs:simpleType>
Schema location file:/Volumes/mob/EML_schema/EML-2.2.0/git_checkouts/eml/tmp/eml-constraint.xsd
Element Group ConstraintBaseGroup
Namespace eml://ecoinformatics.org/constraint-2.2.0
Diagram
Diagram NO_NAMESPACE.tmp#ConstraintBaseGroup_constraintName NO_NAMESPACE.tmp#ConstraintBaseGroup_constraintDescription
Used by
Model
Children constraintDescription, constraintName
Source
<xs:group name="ConstraintBaseGroup">
  <xs:sequence>
    <xs:element name="constraintName" type="res:NonEmptyStringType">
      <xs:annotation>
        <xs:documentation>tooltip: Name of the constraint summary: A meaningfull name of the constraint. description: The constraintName element is a name which represents a human readable and meaningful name for the constraint.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="constraintDescription" minOccurs="0">
      <xs:annotation>
        <xs:documentation>tooltip: Description of the constraint summary: Descibes the purpose of the constraint. description: The constraintDescription element describes the nature of the constraint. It might be a description of a check condition, or a statement about the composition of a primary key or the nature of the relationship between two database tables or two ascii files.</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:group>
Schema location file:/Volumes/mob/EML_schema/EML-2.2.0/git_checkouts/eml/tmp/eml-constraint.xsd
Element Group ForeignKeyGroup
Namespace eml://ecoinformatics.org/constraint-2.2.0
Diagram
Diagram NO_NAMESPACE.tmp#ConstraintBaseGroup_constraintName NO_NAMESPACE.tmp#ConstraintBaseGroup_constraintDescription constraint-2_2_0.tmp#ConstraintBaseGroup NO_NAMESPACE.tmp#ForeignKeyGroup_key NO_NAMESPACE.tmp#ForeignKeyGroup_entityReference NO_NAMESPACE.tmp#ForeignKeyGroup_relationshipType NO_NAMESPACE.tmp#ForeignKeyGroup_cardinality
Used by
Model
Children cardinality, constraintDescription, constraintName, entityReference, key, relationshipType
Source
<xs:group name="ForeignKeyGroup">
  <xs:sequence>
    <xs:group ref="ConstraintBaseGroup"/>
    <xs:element name="key">
      <xs:annotation>
        <xs:documentation>tooltip: Key summary: The set of attributes to which this constraint applies. description: The key element defines the set of attributes to which this constraint applies. For a primary key or a unique key, the set of attributes must be identifying. For a foreign key, the set of attributes must match an identifying key in the referenced entity. For a 'not null' constraint, the key indicates the attribute which should not be null.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="attributeReference" type="res:NonEmptyStringType" maxOccurs="unbounded">
            <xs:annotation>
              <xs:documentation>tooltip: Attribute Reference summary: The identifier of an attribute found in the identified entity description: The attributeReference element is the identifier of an attribute that can be found in the identified entity. This id will be unique within an entity and specifies that the attribute participates in the key that is being defined.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="entityReference" type="res:NonEmptyStringType">
      <xs:annotation>
        <xs:documentation>tooltip: Referenced Entity ID summary: The id of the parent-entity in a foreign key constraint. description: The entityReference element contains the id of the entity to which a foreign key refers, otherwise known as the parent-entity or parent-table. This should be an identifier that matches one of the "identifier" elements for an entity.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="relationshipType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>tooltip: Relationship type: Identifying or non-identifying summary: Relationship type: Identifying or non-identifying description: The relationshipType element defines identifying relationships that propagate from the parent entity's primary key to the child's primary key. Non-identifying relationships propagate the parent's primary key as a non-key attribute of the child entity.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="identifying"/>
          <xs:enumeration value="non-identifying"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:element>
    <xs:element name="cardinality" minOccurs="0">
      <xs:annotation>
        <xs:documentation>tooltip: Cardinality of the relationship between two entities. summary: Cardinality of the relationship between a parent entity and a child entity. description: The cardinality element represents a statement of the relationship between parent and child entities. Cardinality is expressed as the ratio of related parent and child entities. Cardinality 1 to N is a specific form of cardinality in which zero or one parent records are related to a specified number of child records. The cardinality ratio for the parent entity depends on whether the "existence" is mandatory (one or more) or optional (zero to ...).</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="parentOccurences">
            <xs:annotation>
              <xs:documentation>tooltip: Parent portion of a 1 to exactly N cardinality summary: Parent portion of a 1 to exactly N cardinality. May have a value of either 0 or 1. description: The parentOccurences element describes the Parent portion of a 1 to exactly N cardinality. May have a value of either 0 or 1. Value of 0 implies that the "existence" of a child record is optional. Value of 1 implies that the "existence" of a child record is mandatory.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:integer">
                <xs:enumeration value="0"/>
                <xs:enumeration value="1"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:element>
          <xs:element name="childOccurences" type="CardinalityChildOccurancesType">
            <xs:annotation>
              <xs:documentation>tooltip: Child portion of the cardinality expression summary: Child portion of a cardinality expression Allowed values are positive integers including zero or the string value "many". description: The childOccurences element describes the child portion of a cardinality expression Allowed values are positive integers including zero or the string value "many"</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
  </xs:sequence>
</xs:group>
Schema location file:/Volumes/mob/EML_schema/EML-2.2.0/git_checkouts/eml/tmp/eml-constraint.xsd