LGOSystems Logo
Home
Products
Cognatrix
FrameSeer
Stripper
IPGadget
Support
About LGOSystems
Cognatrix

Cognatrix 1.2 Document Type Definition

<!-- ===========================================================================
     Thesaurus Document Type Definition v1.2 for Cognatrix
     Copyright (C) 2004-2014 LGOSystems Pty Ltd ACN 103 082 211
     SVN $Revision: 5958 $  $Date: 2014-01-01 10:40:21 +1100 (Wed, 01 Jan 2014) $
     ======================================================================= -->


<!-- ===========================================================================
     A Cognarix XML file contains exactly one instance of a cognatrix element.
     The cognatrix element may contain a properties element, must contain
     exactly one instance of each of preferred_terms and variant_terms, and
     may contain one instance of attributes.
     ======================================================================= -->

<!ELEMENT cognatrix ( properties?,
                      preferred_terms,
                      variant_terms,
                      attributes?) >


<!-- ===========================================================================
     A properties element contains one or more property elements.
     ======================================================================= -->

<!ELEMENT properties (property+)>


<!-- ===========================================================================
     A property element contains one name+value pair.
     ======================================================================= -->

<!ELEMENT property (name, value)>


<!-- ===========================================================================
     A name element consists of parsed character data.
     ======================================================================= -->

<!ELEMENT name (#PCDATA)>


<!-- ===========================================================================
     A value element can contain anchors and parsed character data.
     ======================================================================= -->

<!ELEMENT value (#PCDATA | a)*>


<!-- ===========================================================================
     An anchor consists of parsed character data and has a required href.
     ======================================================================= -->

<!ELEMENT a (#PCDATA)>

<!ATTLIST a              href            CDATA           #REQUIRED >


<!-- ===========================================================================
     Preferred_terms, variant_terms, and attributes elements contain zero or
     more item elements.
     ======================================================================= -->

<!ELEMENT preferred_terms (item*)>
<!ELEMENT variant_terms (item*)>
<!ELEMENT attributes (item*)>


<!-- ===========================================================================
     An item element contains name, relationships and user_defined_fields. An
     item also carries a required unique ID plus optional audit information.
     ======================================================================= -->

<!ELEMENT item (name, relationships, user_defined_fields)>

<!ATTLIST item           id               ID             #REQUIRED
                         qualifier        CDATA          #IMPLIED
                         changed_by       CDATA          #IMPLIED
                         created_by       CDATA          #IMPLIED
                         date_changed     CDATA          #IMPLIED
                         date_created     CDATA          #IMPLIED
                         review_date      CDATA          #IMPLIED >


<!-- ===========================================================================
     A relationships element contains zero or more relationship elements.
     ======================================================================= -->

<!ELEMENT relationships (relationship*)>


<!-- ===========================================================================
     A relationship element consists of parsed character data. A relationship
     refers to the unique ID of the item with which it is related, plus a
     statement as to the type of relationship that exists between the two
     items. Both idref and type are required.
     ======================================================================= -->

<!ELEMENT relationship (#PCDATA)>

<!ATTLIST relationship idref           IDREF           #REQUIRED
                       type            (attribute |
                                        broader_term |
                                        member |
                                        narrower_term |
                                        obsoleted_by |
                                        obsoletes |
                                        related_term |
                                        synonym_for |
                                        synonym_of |
                                        use |
                                        use_for |
                                        exact_equivalent |
                                        inexact_equivalent |
                                        partial_equivalent) #REQUIRED
                       qualifier       CDATA           #IMPLIED >


<!-- ===========================================================================
     A user_defined_fields element contains zero or more 
     user_defined_field elements.
     ======================================================================= -->

<!ELEMENT user_defined_fields (user_defined_field*)>


<!-- ===========================================================================
     A user_defined_field element contains a name+value pair.
     ======================================================================= -->

<!ELEMENT user_defined_field (name, value)>


<!-- end of DTD -->