cwrc / CWRC-Schema

CWRC Schemas and supporting documents
GNU General Public License v3.0
4 stars 4 forks source link

Should ORGNAME allow both REF and URI attributes? #167

Closed ilovan closed 4 years ago

ilovan commented 5 years ago

In the Bio schema


<define name="ORGNAME">
        <element name="ORGNAME">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The
                orgName element is used to identify schools, companies, and any other type of
                recognized organization.</a:documentation>
            <optional>
                <attribute name="ORGTYPE">
                    <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">A
                        carry-over from the Microsoft Access database for chronology, orgType
                        contains a keyword descriptor of an organization. Do not use this
                        attribute.</a:documentation>
                </attribute>
            </optional>
            <optional>
                <attribute name="REG" a:documentation="Regularized value">
                    <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        >Reg (or regularization) contains a reading which has been regularized or
                        normalized in some sense.</a:documentation>
                </attribute>
            </optional>
            <optional>
                <attribute name="STANDARD"/>
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Used
                    to record the standard name by which a person, organization, or topic is
                    known</a:documentation>
            </optional>
            <optional>
                <attribute name="URI">
                    <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        >URI (uniform resource identifier) references the underlying concept of
                        which the parent is a representation by means of some external
                        identifier</a:documentation>
                </attribute>
            </optional>
            <optional>
                <attribute name="REF">
                    <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        >Ref (or reference) provides an explicit means of locating a full definition
                        for the entity being named by means of a URI.</a:documentation>
                    <data type="anyURI"/>
                </attribute>
            </optional>
            <optional>
                <attribute name="annotationId">
                    <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        >Provides a unique annotation identifier for the element bearing the
                        attribute.</a:documentation>
                </attribute>
            </optional>
            <optional>
                <attribute name="offsetId">
                    <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        >Designates the parent tag from which the offset is being
                        counted.</a:documentation>
                </attribute>
            </optional>
            <oneOrMore>
                <choice>
                    <text/>
                    <ref name="DENOMINATION"/>
                    <ref name="EMPH"/>
                    <ref name="FOREIGN"/>
                    <ref name="POLITICALAFFILIATION"/>
                    <ref name="QUOTE"/>
                    <ref name="RESEARCHNOTE"/>
                    <ref name="SCHOOL"/>
                    <ref name="SIC"/>
                    <ref name="SOCALLED"/>
                    <ref name="SUBJECT"/>
                    <ref name="TITLE"/>
                </choice>
            </oneOrMore>
        </element>
    </define>
SusanBrown commented 4 years ago

I don't think we need a URI attribute since we are using REF for URIs.

ilovan commented 4 years ago

https://github.com/cwrc/CWRC-Schema/commit/924694d4b2ad05736058a03c20db3eb9f1529f2d