Commit 96587cd1 by Robbie Hott

Latest cpf.rng version

parent b6ab2938
<?xml version="1.0" encoding="UTF-8"?>
<!--
STILL NEEDS REVISION OF WHERE placeEntry USED
*****************
SNAC localization:
......@@ -40,6 +40,23 @@
Added local attribute snac:preferenceScore to <nameEntry>
7. 20140319
Fixed misspelling of attribute name accuarcy > accuracy (twice)
8. 20140414
snac:placeEntry -modified placeEntry to accommodate attempts at matching geonames in order to normalize the entry and
to fetch coordinate information. Because this could not be done with reliable accuracy, we decided to record the
results of the matching attempt for later use in human editing, as a a "good match" is frequenty in the result sets.
The revision "wraps the original placeEntry," that is, the placeEntry derived from contributed SNAC source data in a
snac:placeEntry (with original placeEntry the first contained tagged data, followed by snac:placeEntryLikelySame (one,
optional), and then followed by snac:placeEntryBestMaybeSame (one, optional), followed by zero or more
snac:placeEntryMaybeSame. This revision is highly specific to SNAC, and thus is not a candidate for revision of
standard SNAC.
*****************
ENCODED ARCHIVAL CONTEXT-CORPORATE BODIES, PERSONS, AND FAMILIES (EAC-CPF) SCHEMA
......@@ -102,7 +119,6 @@
xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:snac="http://socialarchive.iath.virginia.edu/">
<!--
Import used in cpf.xsd:
......@@ -113,11 +129,9 @@
<xs:attributeGroup ref="xlink:simpleLink"/>
-->
<start>
<ref name="e.eac-cpf"/>
</start>
<define name="e.eac-cpf">
<element a:id="eac-cpf" name="eac-cpf">
<optional>
......@@ -136,7 +150,6 @@
</choice>
</element>
</define>
<define name="e.cpfDescription">
<element a:id="cpfDescription" name="cpfDescription">
<optional>
......@@ -160,7 +173,6 @@
</optional>
</element>
</define>
<define name="e.multipleIdentities">
<element a:id="multipleIdentities" name="multipleIdentities">
<optional>
......@@ -178,9 +190,7 @@
</oneOrMore>
</element>
</define>
<div a:documentation="Control">
<define name="e.control">
<element a:id="control" name="control">
<optional>
......@@ -250,7 +260,6 @@
</optional>
</element>
</define>
<define name="e.maintenanceAgency">
<element a:id="maintenanceAgency" name="maintenanceAgency">
<optional>
......@@ -291,7 +300,6 @@
</optional>
</element>
</define>
<define name="e.maintenanceHistory">
<element a:id="maintenanceHistory" name="maintenanceHistory">
<optional>
......@@ -368,7 +376,6 @@
</oneOrMore>
</element>
</define>
<define name="e.languageDeclaration">
<element a:id="languageDeclaration" name="languageDeclaration">
<optional>
......@@ -384,7 +391,6 @@
</optional>
</element>
</define>
<define name="e.conventionDeclaration">
<element a:id="conventionDeclaration" name="conventionDeclaration">
<optional>
......@@ -402,7 +408,6 @@
</optional>
</element>
</define>
<define name="e.localTypeDeclaration">
<element a:id="localTypeDeclaration" name="localTypeDeclaration">
<optional>
......@@ -420,7 +425,6 @@
</optional>
</element>
</define>
<define name="e.abbreviation">
<element a:id="abbreviation" name="abbreviation">
<optional>
......@@ -429,7 +433,6 @@
<data type="token"/>
</element>
</define>
<define name="e.localControl">
<element a:id="localControl" name="localControl">
<optional>
......@@ -450,7 +453,6 @@
</optional>
</element>
</define>
<define name="e.sources">
<element a:id="sources" name="sources">
<optional>
......@@ -497,11 +499,8 @@
</oneOrMore>
</element>
</define>
</div>
<div a:documentation="Identity">
<define name="e.identity">
<element a:id="identity" name="identity">
<optional>
......@@ -569,7 +568,6 @@
</optional>
</element>
</define>
<define name="e.part">
<element a:id="part" name="part">
<optional>
......@@ -584,7 +582,6 @@
<text/>
</element>
</define>
<define name="e.useDates">
<element a:id="useDates" name="useDates">
<optional>
......@@ -596,7 +593,6 @@
<ref name="m.dates"/>
</element>
</define>
<define name="e.nameEntryParallel">
<element a:id="nameEntryParallel" name="nameEntryParallel">
<optional>
......@@ -615,7 +611,6 @@
<ref name="m.nameEntryAuthorizedorAlternative"/>
</element>
</define>
<define name="m.nameEntryInParallel">
<element a:id="nameEntryInParallel" name="nameEntry">
<optional>
......@@ -645,7 +640,6 @@
</zeroOrMore>
</element>
</define>
<define name="a.snacPreferenceScore">
<optional>
<attribute name="snac:preferenceScore">
......@@ -655,7 +649,6 @@
</attribute>
</optional>
</define>
<define name="m.nameEntryAuthorizedorAlternative">
<zeroOrMore>
<choice>
......@@ -674,11 +667,8 @@
</choice>
</zeroOrMore>
</define>
</div>
<div a:documentation="Description">
<define name="e.description">
<element a:id="description" name="description">
<optional>
......@@ -718,7 +708,6 @@
</zeroOrMore>
</element>
</define>
<define name="e.existDates">
<element a:id="existDates" name="existDates">
<optional>
......@@ -736,9 +725,7 @@
</optional>
</element>
</define>
<div a:documentation="Plural Versions">
<define name="e.places">
<element a:id="places" name="places">
<optional>
......@@ -765,7 +752,6 @@
</choice>
</element>
</define>
<define name="e.localDescriptions">
<element a:id="localDescriptions" name="localDescriptions">
<optional>
......@@ -790,7 +776,6 @@
</choice>
</element>
</define>
<define name="e.languagesUsed">
<element a:id="languagesUsed" name="languagesUsed">
<optional>
......@@ -810,7 +795,6 @@
</optional>
</element>
</define>
<define name="e.legalStatuses">
<element a:id="legalStatuses" name="legalStatuses">
<optional>
......@@ -837,7 +821,6 @@
</choice>
</element>
</define>
<define name="e.occupations">
<element a:id="occupations" name="occupations">
<optional>
......@@ -864,7 +847,6 @@
</choice>
</element>
</define>
<define name="e.functions">
<element a:id="functions" name="functions">
<optional>
......@@ -891,7 +873,6 @@
</choice>
</element>
</define>
<define name="e.mandates">
<element a:id="mandates" name="mandates">
<optional>
......@@ -918,7 +899,6 @@
</choice>
</element>
</define>
<define name="m.discursiveSet">
<choice>
<ref name="e.p"/>
......@@ -927,11 +907,8 @@
<ref name="e.citation"/>
</choice>
</define>
</div>
<div a:documentation="Singular Version">
<define name="e.place">
<element a:id="place" name="place">
<!-- Note that place uses the same model as m.simpleDescription except for the insertion of
......@@ -949,7 +926,8 @@
<ref name="e.placeRole"/>
</optional>
<zeroOrMore>
<ref name="e.placeEntry"/>
<!-- <ref name="e.placeEntry"/> -->
<ref name="alternativePlaceEntry"/>
</zeroOrMore>
<optional>
<element a:id="address" name="address">
......@@ -989,7 +967,6 @@
</optional>
</element>
</define>
<define name="e.placeEntry">
<element a:id="placeEntry" name="placeEntry">
<optional>
......@@ -1017,7 +994,7 @@
<ref name="a.vocabularySource"/>
</optional>
<optional>
<attribute a:id="accuracy" name="accuarcy">
<attribute a:id="accuracy" name="accuracy">
<text/>
</attribute>
</optional>
......@@ -1027,7 +1004,81 @@
<text/>
</element>
</define>
<define name="alternativePlaceEntry">
<choice>
<ref name="e.placeEntry"/>
<ref name="e.snacPlaceEntry"/>
</choice>
</define>
<define name="e.snacPlaceEntry">
<element name="snac:placeEntry">
<ref name="e.placeEntry"/>
<optional>
<element name="snac:placeEntryLikelySame">
<ref name="m.snacPlaceEntryBody"/>
</element>
</optional>
<optional>
<element name="snac:placeEntryBestMaybeSame">
<ref name="m.snacPlaceEntryBody"/>
</element>
</optional>
<zeroOrMore>
<element name="snac:placeEntryMaybeSame">
<ref name="m.snacPlaceEntryBody"/>
</element>
</zeroOrMore>
</element>
</define>
<define name="m.snacPlaceEntryBody">
<optional>
<ref name="id"/>
</optional>
<optional>
<ref name="m.entryLanguageAttributes"/>
</optional>
<optional>
<ref name="a.localType"/>
</optional>
<optional>
<attribute name="administrationCode">
<text/>
</attribute>
</optional>
<optional>
<attribute name="certaintyScore">
<!-- Range 1 to 0, 1=100% certainty; 0=0% certainty. Only display snac:placeEntry rather than placeEntry if
certainty ="1" to ".06". Otherwise display placeEntry -->
<text/>
</attribute>
</optional>
<optional>
<attribute a:id="countryCode" name="countryCode">
<choice>
<data type="string">
<param name="pattern">[A-Z]{2}</param>
</data>
<data type="string">
<param name="pattern">[A-Z]{4}</param>
</data>
</choice>
</attribute>
</optional>
<optional>
<ref name="a.vocabularySource"/>
</optional>
<optional>
<attribute a:id="accuracy" name="accuracy">
<text/>
</attribute>
</optional>
<optional>
<ref name="m.geographicalCoordinates"/>
</optional>
<text/>
</define>
<define name="e.localDescription">
<element a:id="localDescription" name="localDescription">
<optional>
......@@ -1040,7 +1091,6 @@
<ref name="m.simpleDescription"/>
</element>
</define>
<define name="e.languageUsed">
<element a:id="languageUsed" name="languageUsed">
<optional>
......@@ -1059,7 +1109,6 @@
</optional>
</element>
</define>
<define name="e.legalStatus">
<element a:id="legalStatus" name="legalStatus">
<optional>
......@@ -1074,7 +1123,6 @@
<ref name="m.simpleDescription"/>
</element>
</define>
<define name="e.occupation">
<element a:id="occupation" name="occupation">
<optional>
......@@ -1089,7 +1137,6 @@
<ref name="m.simpleDescription"/>
</element>
</define>
<define name="e.function">
<element a:id="function" name="function">
<optional>
......@@ -1104,7 +1151,6 @@
<ref name="m.simpleDescription"/>
</element>
</define>
<define name="e.mandate">
<element a:id="mandate" name="mandate">
<optional>
......@@ -1119,13 +1165,13 @@
<ref name="m.simpleDescription"/>
</element>
</define>
<define name="m.simpleDescription">
<optional>
<ref name="e.term"/>
</optional>
<zeroOrMore>
<ref name="e.placeEntry"/>
<!-- <ref name="e.placeEntry"/> -->
<ref name="alternativePlaceEntry"/>
</zeroOrMore>
<optional>
<ref name="m.dates"/>
......@@ -1137,7 +1183,6 @@
<ref name="e.descriptiveNote"/>
</optional>
</define>
<define name="e.placeRole">
<element a:id="placeRole" name="placeRole">
<optional>
......@@ -1155,9 +1200,7 @@
<text/>
</element>
</define>
</div>
<define name="e.structureOrGenealogy">
<element a:id="structureOrGenealogy" name="structureOrGenealogy">
<optional>
......@@ -1174,7 +1217,6 @@
</zeroOrMore>
</element>
</define>
<define name="e.generalContext">
<element a:id="generalContext" name="generalContext">
<optional>
......@@ -1191,7 +1233,6 @@
</zeroOrMore>
</element>
</define>
<define name="e.biogHist">
<element a:id="biogHist" name="biogHist">
<optional>
......@@ -1217,7 +1258,6 @@
</zeroOrMore>
</element>
</define>
<define name="e.abstract">
<element a:id="abstract" name="abstract">
<optional>
......@@ -1232,11 +1272,8 @@
<ref name="m.mixedContent"/>
</element>
</define>
</div>
<div a:documentation="Relations">
<define name="e.relations">
<element a:id="relations" name="relations">
<optional>
......@@ -1259,7 +1296,6 @@
</zeroOrMore>
</element>
</define>
<define name="e.relationEntry">
<element a:id="relationEntry" name="relationEntry">
<optional>
......@@ -1274,7 +1310,6 @@
<text/>
</element>
</define>
<define name="e.objectXMLWrap">
<element a:id="objectXMLWrap" name="objectXMLWrap">
<optional>
......@@ -1283,7 +1318,6 @@
<ref name="e.anyName"/>
</element>
</define>
<define name="e.objectBinWrap">
<element a:id="objectBinWrap" name="objectBinWrap">
<optional>
......@@ -1292,7 +1326,6 @@
<data type="base64Binary"/>
</element>
</define>
<define name="m.relationBody">
<optional>
<ref name="a.lastDateTimeVerified"/>
......@@ -1313,13 +1346,13 @@
<ref name="m.dates"/>
</optional>
<optional>
<ref name="e.placeEntry"/>
<!-- <ref name="e.placeEntry"/> -->
<ref name="alternativePlaceEntry"/>
</optional>
<optional>
<ref name="e.descriptiveNote"/>
</optional>
</define>
<define name="e.cpfRelation">
<element a:id="cpfRelation" name="cpfRelation">
<optional>
......@@ -1346,7 +1379,6 @@
<ref name="m.relationBody"/>
</element>
</define>
<define name="e.resourceRelation">
<element a:id="resourceRelation" name="resourceRelation">
<optional>
......@@ -1367,7 +1399,6 @@
<ref name="m.relationBody"/>
</element>
</define>
<define name="e.functionRelation">
<element a:id="functionRelation" name="functionRelation">
<optional>
......@@ -1388,11 +1419,8 @@
<ref name="m.relationBody"/>
</element>
</define>
</div>
<div a:documentation="alternativeSet">
<define name="e.alternativeSet">
<element a:id="alternativeSet" name="alternativeSet">
<optional>
......@@ -1446,18 +1474,14 @@
</oneOrMore>
</element>
</define>
</div>
<div a:documentation="Shared">
<define name="e.anyName">
<element a:id="e.anyName">
<anyName/>
<ref name="m.anything"/>
</element>
</define>
<define name="m.anything">
<zeroOrMore>
<attribute a:id="a.anyName">
......@@ -1471,15 +1495,12 @@
</choice>
</zeroOrMore>
</define>
<div a:documentation="Dates">
<define name="a.lastDateTimeVerified">
<attribute a:id="lastDateTimeVerified" name="lastDateTimeVerified">
<ref name="m.data.standardDateTime"/>
</attribute>
</define>
<define name="m.data.standardDateTime">
<choice>
<data type="date">
......@@ -1496,7 +1517,6 @@
</data>
</choice>
</define>
<define name="m.data.standardDate">
<choice>
<data type="date">
......@@ -1510,7 +1530,6 @@
</data>
</choice>
</define>
<define name="e.dateSingle">
<element a:id="date" name="date">
<optional>
......@@ -1525,7 +1544,6 @@
<ref name="m.dateSingle"/>
</element>
</define>
<define name="m.dateSingle">
<optional>
<attribute a:id="standardDate" name="standardDate">
......@@ -1544,7 +1562,6 @@
</optional>
<text/>
</define>
<define name="e.dateRange">
<element a:id="dateRange" name="dateRange">
<optional>
......@@ -1586,7 +1603,6 @@
</optional>
</element>
</define>
<define name="e.dateSet">
<element a:id="dateSet" name="dateSet">
<optional>
......@@ -1610,7 +1626,6 @@
</oneOrMore>
</element>
</define>
<define name="m.dates">
<choice>
<ref name="e.dateSingle"/>
......@@ -1618,11 +1633,8 @@
<ref name="e.dateSet"/>
</choice>
</define>
</div>
<div a:documentation="Language">
<define name="e.language">
<element a:id="language" name="language">
<optional>
......@@ -1639,7 +1651,6 @@
<text/>
</element>
</define>
<define name="e.script">
<element a:id="script" name="script">
<optional>
......@@ -1652,7 +1663,6 @@
<text/>
</element>
</define>
<define name="a.scriptCode">
<attribute a:id="scriptCode" name="scriptCode">
<data type="string">
......@@ -1660,14 +1670,11 @@
</data>
</attribute>
</define>
<define name="a.transliteration">
<attribute a:id="transliteration" name="transliteration">
<data type="NMTOKEN"/>
</attribute>
</define>
<define name="m.entryLanguageAttributes">
<optional>
<ref name="a.scriptCode"/>
......@@ -1680,12 +1687,10 @@
</optional>
</define>
</div>
<define name="m.data.standardRepository">
<data type="token">
<param name="pattern">[\S]+</param>
</data>
<!--
<a:documentation>This pattern represents the character pattern requirements of ISIL (ISO
15511). Values that conform to the pattern are not, strictly speaking, conformant to ISIL, as
......@@ -1698,7 +1703,6 @@
<param name="pattern">([A-Z]{2}-[a-zA-Z0-9:/\-]{1,13})|([a-zA-Z]{1}-[a-zA-Z0-9:/\-]{1,14})|([a-zA-Z]{3}-[a-zA-Z0-9:/\-]{1,12})|([a-zA-Z]{4}-[a-zA-Z0-9:/\-]{1,11})</param>
-->
</define>
<define name="e.term">
<element a:id="term" name="term">
<optional>
......@@ -1716,7 +1720,6 @@
<text/>
</element>
</define>
<define name="e.descriptiveNote">
<element a:id="descriptiveNote" name="descriptiveNote">
<optional>
......@@ -1730,7 +1733,6 @@
</oneOrMore>
</element>
</define>
<define name="e.citation">
<element a:id="citation" name="citation">
<optional>
......@@ -1748,14 +1750,12 @@
<ref name="m.mixedContent"/>
</element>
</define>
<define name="m.id">
<optional>
<ref name="a.localType"/>
</optional>
<text/>
</define>
<define name="e.p">
<element a:id="p" name="p">
<optional>
......@@ -1767,7 +1767,6 @@
<ref name="m.mixedContent"/>
</element>
</define>
<define name="m.mixedContent">
<zeroOrMore>
<choice>
......@@ -1776,7 +1775,6 @@
</choice>
</zeroOrMore>
</define>
<define name="e.chronList">
<element a:id="chronList" name="chronList">
<optional>
......@@ -1807,14 +1805,16 @@
<choice>
<group>
<optional>
<ref name="e.placeEntry"/>
<!-- <ref name="e.placeEntry"/> -->
<ref name="alternativePlaceEntry"/>
</optional>
<ref name="e.event"/>
</group>
<oneOrMore>
<element name="chronItemSet">
<zeroOrMore>
<ref name="e.placeEntry"/>
<!-- <ref name="e.placeEntry"/> -->
<ref name="alternativePlaceEntry"/>
</zeroOrMore>
<oneOrMore>
<ref name="e.event"/>
......@@ -1826,7 +1826,6 @@
</oneOrMore>
</element>
</define>
<define name="e.event">
<element a:id="event" name="event">
<optional>
......@@ -1841,7 +1840,6 @@
<text/>
</element>
</define>
<define name="e.list">
<element a:id="list" name="list">
<optional>
......@@ -1858,7 +1856,6 @@
</oneOrMore>
</element>
</define>
<define name="e.item">
<element a:id="item" name="item">
<optional>
......@@ -1873,7 +1870,6 @@
<ref name="m.mixedContent"/>
</element>
</define>
<define name="e.outline">
<element a:id="outline" name="outline">
<optional>
......@@ -1890,7 +1886,6 @@
</oneOrMore>
</element>
</define>
<define name="e.level">
<element a:id="level" name="level">
<optional>
......@@ -1908,7 +1903,6 @@
</zeroOrMore>
</element>
</define>
<define name="e.span">
<optional>
<element a:id="span" name="span">
......@@ -1928,25 +1922,21 @@
</element>
</optional>
</define>
<define name="a.localType">
<attribute a:id="localType" name="localType">
<data type="anyURI"/>
</attribute>
</define>
<define name="a.vocabularySource">
<attribute a:id="vocabularySource" name="vocabularySource">
<data type="anyURI"/>
</attribute>
</define>
<define name="a.style">
<attribute a:id="style" name="style">
<text/>
</attribute>
</define>
<define name="m.geographicalCoordinates">
<attribute a:id="longitude" name="longitude">
<data type="NMTOKEN"/>
......@@ -1960,9 +1950,7 @@
</attribute>
</optional>
</define>
<div a:documentation="XML Special Attributes">
<define name="lang" ns="http://www.w3.org/XML/1998/namespace">
<attribute a:id="xmlLang" name="xml:lang">
<choice>
......@@ -1971,13 +1959,11 @@
</choice>
</attribute>
</define>
<define name="base" ns="http://www.w3.org/XML/1998/namespace">
<attribute a:id="xmlBase" name="xml:base">
<data type="anyURI"/>
</attribute>
</define>
<define name="id" ns="http://www.w3.org/XML/1998/namespace">
<attribute a:id="xmlID" name="xml:id">
<data type="NCName">
......@@ -1987,9 +1973,7 @@
</data>
</attribute>
</define>
</div>
<div a:documentation="XLINK">
<define name="simpleLink" xmlns:xlink="http://www.w3.org/1999/xlink">
<attribute a:defaultValue="simple" a:id="xlinkType" name="xlink:type">
......@@ -2053,9 +2037,6 @@
</choice>
</attribute>
</define>
</div>
</div>
</grammar>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment