<commit_before><?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<!--
    Person schema (XSD)
    
    Entity  : Person
    Part    : Common
    Used for: Nuxeo EP core document type
    
    $LastChangedRevision: 860 $
    $LastChangedDate: 2009-10-14 14:48:05 -0700 (Wed, 14 Oct 2009) $
-->

<xs:schema 
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:ns="http://collectionspace.org/services/person"
    xmlns="http://collectionspace.org/services/person"
    targetNamespace="http://collectionspace.org/services/person"
    version="0.1"
>
<!-- See http://wiki.collectionspace.org/display/collectionspace/Person+Service+Home -->    

    <!--  Person Information Group -->
    <!--  inAuthority is the csid of the owning PersonAuthority -->
    <xs:element name="inAuthority" type="xs:string" />
    <xs:element name="shortIdentifier" type="xs:string"/>
    <xs:element name="refName" type="xs:string"/>
    
    <!-- Term information group -->
    <xs:element name="personTermGroupList" type="personTermGroupList"/>

    <xs:element name="termStatus" type="xs:string"/>
    <xs:element name="displayName" type="xs:string"/>
    <xs:element name="displayNameComputed" type="xs:boolean"/>
    <xs:element name="shortDisplayName" type="xs:string"/>
    <xs:element name="shortDisplayNameComputed" type="xs:boolean"/>
    <xs:element name="source" type="xs:string"/>
    <xs:element name="sourcePage" type="xs:string"/>
    <xs:element name="description" type="xs:string"/>

    <xs:element name="foreName" type="xs:string"/>
    <xs:element name="middleName" type="xs:string"/>
    <xs:element name="surName" type="xs:string"/>
    <xs:element name="initials" type="xs:string"/>
    <xs:element name="salutation" type="xs:string"/>
    <xs:element name="title" type="xs:string"/>
    <xs:element name="nameAdditions" type="xs:string"/>

    <xs:element name="birthDate" type="xs:string"/>
    <xs:element name="deathDate" type="xs:string"/>
    <xs:element name="birthPlace" type="xs:string"/>
    <xs:element name="deathPlace" type="xs:string"/>
    <xs:element name="groups">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="group" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="nationalities">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="nationality" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="gender" type="xs:string"/>
    <xs:element name="occupations">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="occupation" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="schoolsOrStyles">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="schoolOrStyle" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="bioNote" type="xs:string"/>
    <xs:element name="nameNote" type="xs:string"/>
    
    <xs:complexType name="personTermGroupList">
        <xs:sequence>
            <xs:element name="personTermGroup" type="personTermGroup" minOccurs="0"
                        maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <!-- FIXME: Need to revise these fields per latest schema in -->
    <!-- CSPACE-4966 and linked pages. -->
    <xs:complexType name="personTermGroup">
        <xs:sequence>
            <xs:element name="termStatus" type="xs:string"/>
            <xs:element name="displayName" type="xs:string"/>
            <xs:element name="displayNameComputed" type="xs:boolean"/>
            <xs:element name="shortDisplayName" type="xs:string"/>
            <xs:element name="shortDisplayNameComputed" type="xs:boolean"/>
            <xs:element name="source" type="xs:string"/>
            <xs:element name="sourcePage" type="xs:string"/>
            <xs:element name="description" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>


</xs:schema>
<commit_msg>CSPACE-5119: Term Info Group block in Person now closer to actual; still haven't removed equivalent top-level fields.<commit_after><?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<!--
    Person schema (XSD)
    
    Entity  : Person
    Part    : Common
    Used for: Nuxeo EP core document type
    
    $LastChangedRevision: 860 $
    $LastChangedDate: 2009-10-14 14:48:05 -0700 (Wed, 14 Oct 2009) $
-->

<xs:schema 
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:ns="http://collectionspace.org/services/person"
    xmlns="http://collectionspace.org/services/person"
    targetNamespace="http://collectionspace.org/services/person"
    version="0.1"
>
<!-- See http://wiki.collectionspace.org/display/collectionspace/Person+Service+Home -->    

    <!--  Person Information Group -->
    <!--  inAuthority is the csid of the owning PersonAuthority -->
    <xs:element name="inAuthority" type="xs:string" />
    <xs:element name="shortIdentifier" type="xs:string"/>
    <xs:element name="refName" type="xs:string"/>
    
    <!-- Term information group -->
    <xs:element name="personTermGroupList" type="personTermGroupList"/>

    <xs:element name="termStatus" type="xs:string"/>
    <xs:element name="displayName" type="xs:string"/>
    <xs:element name="displayNameComputed" type="xs:boolean"/>
    <xs:element name="shortDisplayName" type="xs:string"/>
    <xs:element name="shortDisplayNameComputed" type="xs:boolean"/>
    <xs:element name="source" type="xs:string"/>
    <xs:element name="sourcePage" type="xs:string"/>
    <xs:element name="description" type="xs:string"/>

    <xs:element name="foreName" type="xs:string"/>
    <xs:element name="middleName" type="xs:string"/>
    <xs:element name="surName" type="xs:string"/>
    <xs:element name="initials" type="xs:string"/>
    <xs:element name="salutation" type="xs:string"/>
    <xs:element name="title" type="xs:string"/>
    <xs:element name="nameAdditions" type="xs:string"/>

    <xs:element name="birthDate" type="xs:string"/>
    <xs:element name="deathDate" type="xs:string"/>
    <xs:element name="birthPlace" type="xs:string"/>
    <xs:element name="deathPlace" type="xs:string"/>
    <xs:element name="groups">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="group" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="nationalities">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="nationality" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="gender" type="xs:string"/>
    <xs:element name="occupations">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="occupation" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="schoolsOrStyles">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="schoolOrStyle" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="bioNote" type="xs:string"/>
    <xs:element name="nameNote" type="xs:string"/>
    
    <xs:complexType name="personTermGroupList">
        <xs:sequence>
            <xs:element name="personTermGroup" type="personTermGroup" minOccurs="0"
                        maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <!-- FIXME: Need to revise these fields per latest schema in -->
    <!-- CSPACE-4966 and linked pages. -->
    <xs:complexType name="personTermGroup">
        <xs:sequence>
            <xs:element name="displayName" type="xs:string"/>
            <xs:element name="termType" type="xs:string"/>
            <xs:element name="termQualifier" type="xs:string"/>
            <xs:element name="termLanguage" type="xs:string"/>
            <xs:element name="termPreferredForLanguage" type="xs:boolean"/>
            <xs:element name="termSource" type="xs:string"/>
            <xs:element name="termSourceDetail" type="xs:string"/>
            <xs:element name="termSourceUniqueID" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>

</xs:schema>

{'fraction_non_alphanumeric': 0.17092633283219613, 'fraction_numerical': 0.01110211634092749, 'mean_word_length': 3.2247191011235956, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 2, '>': 165, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7594952', 'n_tokens_mistral': 2733, 'n_tokens_neox': 2637, 'n_words': 476}