Skip to content

Commit

Permalink
adds publicationStmt to Abbott Grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
cwulfman committed Jul 2, 2024
1 parent e4e7ece commit 54fcae2
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 11 deletions.
13 changes: 11 additions & 2 deletions data/abbott/grammar/grammar.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?><?xml-model href="../../schemas/perseus_lexica.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="../../../schemas/perseus_lexica.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader xml:lang="eng">
<fileDesc>
Expand All @@ -7,8 +8,16 @@
<author>E. A. Abbott</author>
</titleStmt>
<extent/>

<publicationStmt>
<p>later</p>
<publisher>Trustees of Tufts University</publisher>
<pubPlace>Medford, MA</pubPlace>
<authority>Perseus Project</authority>

<idno type="filename">abbott.grammar.perseus-eng1.xml</idno>
<availability>
<licence target="https://creativecommons.org/licenses/by-sa/4.0/">Available under a Creative Commons Attribution-ShareAlike 4.0 International License</licence>
</availability>
</publicationStmt>
<sourceDesc>
<biblStruct>
Expand Down
4 changes: 2 additions & 2 deletions schemas/perseus_lexica.odd
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<p>Created from scratch by James Cummings, but looking at previous tei_minimal and tei_bare exemplars by SPQR and
LR.</p>
</sourceDesc>
</fileDesc><encodingDesc><appInfo><application ident="RomaJS" version="1.1.0" when="2024-06-27T22:03:55.345Z"><desc>File edited with <ref target="https://github.com/TEIC/romajs">RomaJS</ref></desc></application></appInfo></encodingDesc>
</fileDesc><encodingDesc><appInfo><application ident="RomaJS" version="1.1.0" when="2024-06-27T22:03:55.345Z"><desc>File edited with <ref target="https://github.com/TEIC/romajs">RomaJS</ref></desc></application></appInfo><appInfo><application ident="RomaJS" version="1.1.0" when="2024-07-02T20:37:30.539Z"><desc>File edited with <ref target="https://github.com/TEIC/romajs">RomaJS</ref></desc></application></appInfo></encodingDesc>
</teiHeader>
<text>
<body>
Expand All @@ -66,7 +66,7 @@
<schemaSpec ident="perseus_lexica" start="TEI" prefix="tei_" targetLang="en" docLang="en">

<!-- required minimal header elements -->
<moduleRef key="header" include="teiHeader fileDesc titleStmt publicationStmt sourceDesc encodingDesc editorialDecl refsDecl cRefPattern profileDesc language langUsage revisionDesc extent correction change"/>
<moduleRef key="header" include="teiHeader fileDesc titleStmt publicationStmt sourceDesc encodingDesc editorialDecl refsDecl cRefPattern profileDesc language langUsage revisionDesc extent correction change authority idno availability licence"/>

<!-- required core elements (p and title for use in titleStmt) -->
<moduleRef key="core" include="p title bibl biblStruct cit monogr author imprint pubPlace date abbr publisher pb head note mentioned emph name listBibl quote gloss lg l ref hi lb list item foreign label gap term"/>
Expand Down
180 changes: 173 additions & 7 deletions schemas/perseus_lexica.rng
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="http://www.tei-c.org/ns/1.0"><!--
Schema generated from ODD source 2024-06-27T22:04:01Z. .
Schema generated from ODD source 2024-07-02T20:37:35Z. .
TEI Edition: P5 Version 4.7.0. Last updated on 16th November 2023, revision e5dd73ed0
TEI Edition Location: https://www.tei-c.org/Vault/P5/4.7.0/
Expand Down Expand Up @@ -2064,13 +2064,21 @@ The element indicated by @spanTo (<sch:value-of select="@spanTo"/>) must follow
<define name="tei_model.publicationStmtPart.agency">
<choice>
<ref name="tei_publisher"/>
<ref name="tei_authority"/>
</choice>
</define>
<define name="tei_model.publicationStmtPart.detail">
<choice>
<ref name="tei_model.ptrLike"/>
<ref name="tei_date"/>
<ref name="tei_pubPlace"/>
<ref name="tei_idno"/>
<ref name="tei_availability"/>
</choice>
</define>
<define name="tei_model.availabilityPart">
<choice>
<ref name="tei_licence"/>
</choice>
</define>
<define name="tei_model.certLike">
Expand Down Expand Up @@ -2230,19 +2238,22 @@ The element indicated by @spanTo (<sch:value-of select="@spanTo"/>) must follow
<ref name="tei_model.nameLike.agent"/>
<ref name="tei_model.offsetLike"/>
<ref name="tei_model.placeStateLike"/>
<ref name="tei_idno"/>
</choice>
</define>
<define name="tei_model.nameLike_alternation">
<choice>
<ref name="tei_model.nameLike.agent_alternation"/>
<ref name="tei_model.offsetLike_alternation"/>
<ref name="tei_model.placeStateLike_alternation"/>
<ref name="tei_idno"/>
</choice>
</define>
<define name="tei_model.nameLike_sequence">
<ref name="tei_model.nameLike.agent_sequence"/>
<ref name="tei_model.offsetLike_sequence"/>
<ref name="tei_model.placeStateLike_sequence"/>
<ref name="tei_idno"/>
</define>
<define name="tei_model.nameLike_sequenceOptional">
<optional>
Expand All @@ -2254,6 +2265,9 @@ The element indicated by @spanTo (<sch:value-of select="@spanTo"/>) must follow
<optional>
<ref name="tei_model.placeStateLike_sequenceOptional"/>
</optional>
<optional>
<ref name="tei_idno"/>
</optional>
</define>
<define name="tei_model.nameLike_sequenceOptionalRepeatable">
<zeroOrMore>
Expand All @@ -2265,6 +2279,9 @@ The element indicated by @spanTo (<sch:value-of select="@spanTo"/>) must follow
<zeroOrMore>
<ref name="tei_model.placeStateLike_sequenceOptionalRepeatable"/>
</zeroOrMore>
<zeroOrMore>
<ref name="tei_idno"/>
</zeroOrMore>
</define>
<define name="tei_model.nameLike_sequenceRepeatable">
<oneOrMore>
Expand All @@ -2276,6 +2293,9 @@ The element indicated by @spanTo (<sch:value-of select="@spanTo"/>) must follow
<oneOrMore>
<ref name="tei_model.placeStateLike_sequenceRepeatable"/>
</oneOrMore>
<oneOrMore>
<ref name="tei_idno"/>
</oneOrMore>
</define>
<define name="tei_model.global">
<choice>
Expand All @@ -2291,6 +2311,7 @@ The element indicated by @spanTo (<sch:value-of select="@spanTo"/>) must follow
<ref name="tei_model.imprintPart"/>
<ref name="tei_bibl"/>
<ref name="tei_extent"/>
<ref name="tei_availability"/>
</choice>
</define>
<define name="tei_model.frontPart">
Expand Down Expand Up @@ -3030,7 +3051,7 @@ Elements 7.2.5. Speech Contents]</a:documentation>
<zeroOrMore>
<choice>
<ref name="tei_model.ptrLike"/>
<ref name="tei_idno"/>
Expand All @@ -3044,7 +3065,7 @@ Elements 7.2.5. Speech Contents]</a:documentation>
<choice>
<ref name="tei_title"/>
<ref name="tei_model.ptrLike"/>
<ref name="tei_idno"/>
</choice>
</oneOrMore>
Expand All @@ -3060,12 +3081,18 @@ Elements 7.2.5. Speech Contents]</a:documentation>
</zeroOrMore>
</group>
<empty/>
<group>
<ref name="tei_authority"/>
<ref name="tei_idno"/>
</group>
</choice>
</optional>
<zeroOrMore>
<ref name="tei_availability"/>
</zeroOrMore>
<zeroOrMore>
Expand All @@ -3077,7 +3104,7 @@ Elements 7.2.5. Speech Contents]</a:documentation>
<zeroOrMore>
<choice>
<ref name="tei_idno"/>
<ref name="tei_model.ptrLike"/>
Expand Down Expand Up @@ -3545,6 +3572,145 @@ Sample values include: 1] main; 2] sub (subordinate); 3] alt (alternate); 4] sho
<empty/>
</element>
</define>
<define name="tei_authority">
<element name="authority">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(release authority) supplies the name of a person or other agency responsible for making a work available, other than a publisher or distributor. [2.2.4. Publication, Distribution, Licensing, etc.]</a:documentation>
<ref name="tei_macro.phraseSeq.limited"/>
<ref name="tei_att.global.attributes"/>
<ref name="tei_att.canonical.attributes"/>
<empty/>
</element>
</define>
<define name="tei_idno">
<element name="idno">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(identifier) supplies any form of identifier used to identify some object, such as a bibliographic item, a person, a title, an organization, etc. in a standardized way. [13.3.1. Basic Principles 2.2.4. Publication, Distribution, Licensing, etc. 2.2.5. The Series Statement 3.12.2.4. Imprint, Size of a Document, and Reprint Information]</a:documentation>
<zeroOrMore>
<choice>
<text/>
<ref name="tei_model.gLike"/>
<ref name="tei_idno"/>
</choice>
</zeroOrMore>
<ref name="tei_att.global.attributes"/>
<ref name="tei_att.sortable.attributes"/>
<ref name="tei_att.datable.attributes"/>
<ref name="tei_att.typed.attribute.subtype"/>
<optional>
<attribute name="type">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">categorizes the identifier, for example as an ISBN, Social Security number, etc.
Suggested values include: 1] ISBN; 2] ISSN; 3] DOI; 4] URI; 5] VIAF; 6] ESTC; 7] OCLC</a:documentation>
<choice>
<value>ISBN</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">International Standard Book Number: a 13- or (if assigned prior to 2007) 10-digit identifying number assigned by the publishing industry to a published book or similar item, registered with the <a xmlns="http://www.w3.org/1999/xhtml"
href="https://www.isbn-international.org"> International ISBN Agency.</a>
</a:documentation>
<value>ISSN</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">International Standard Serial Number: an eight-digit number to uniquely identify a serial publication.</a:documentation>
<value>DOI</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Digital Object Identifier: a unique string of letters and numbers assigned to an electronic document.</a:documentation>
<value>URI</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Uniform Resource Identifier: a string of characters to uniquely identify a resource, following the syntax of <a xmlns="http://www.w3.org/1999/xhtml"
href="https://datatracker.ietf.org/doc/html/rfc3986">RFC 3986</a>.</a:documentation>
<value>VIAF</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">A data number in the Virtual Internet Authority File assigned to link different names in catalogs around the world for the same entity.</a:documentation>
<value>ESTC</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">English Short-Title Catalogue number: an identifying number assigned to a document in English printed in the British Isles or North America before 1801.</a:documentation>
<value>OCLC</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">OCLC control number (record number) for the union catalog record in WorldCat, a union catalog for member libraries in the Online Computer Library Center global cooperative.</a:documentation>
<data type="token">
<param name="pattern">[^\p{C}\p{Z}]+</param>
</data>
</choice>
</attribute>
</optional>
<optional>
<attribute name="calendar">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates one or more systems or calendars to which the date represented by the content of this element belongs.</a:documentation>
<list>
<oneOrMore>
<data type="anyURI">
<param name="pattern">\S+</param>
</data>
</oneOrMore>
</list>
</attribute>
</optional>
<pattern xmlns="http://purl.oclc.org/dsdl/schematron"
id="perseus_lexica-idno-calendar-calendar-check-idno-constraint-rule-13">
<sch:rule xmlns:rng="http://relaxng.org/ns/structure/1.0"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns="http://www.tei-c.org/ns/1.0"
context="tei:*[@calendar]">
<sch:assert test="string-length( normalize-space(.) ) gt 0"> @calendar indicates one or more
systems or calendars to which the date represented by the content of this element belongs,
but this <sch:name/> element has no textual content.</sch:assert>
</sch:rule>
</pattern>
<empty/>
</element>
</define>
<define name="tei_availability">
<element name="availability">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(availability) supplies information about the availability of a text, for example any restrictions on its use or distribution, its copyright status, any licence applying to it, etc. [2.2.4. Publication, Distribution, Licensing, etc.]</a:documentation>
<oneOrMore>
<choice>
<ref name="tei_model.availabilityPart"/>
<ref name="tei_model.pLike"/>
</choice>
</oneOrMore>
<ref name="tei_att.global.attributes"/>
<ref name="tei_att.declarable.attributes"/>
<optional>
<attribute name="status">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(status) supplies a code identifying the current availability of the text.</a:documentation>
<choice>
<value>free</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(free) the text is freely available.</a:documentation>
<value>unknown</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(unknown) the status of the text is unknown.</a:documentation>
<value>restricted</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(restricted) the text is not freely available.</a:documentation>
</choice>
</attribute>
</optional>
<empty/>
</element>
</define>
<define name="tei_licence">
<element name="licence">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">contains information about a licence or other legal agreement applicable to the text. [2.2.4. Publication, Distribution, Licensing, etc.]</a:documentation>
<ref name="tei_macro.specialPara"/>
<ref name="tei_att.global.attributes"/>
<ref name="tei_att.pointing.attributes"/>
<ref name="tei_att.datable.attributes"/>
<optional>
<attribute name="calendar">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates one or more systems or calendars to which the date represented by the content of this element belongs.</a:documentation>
<list>
<oneOrMore>
<data type="anyURI">
<param name="pattern">\S+</param>
</data>
</oneOrMore>
</list>
</attribute>
</optional>
<pattern xmlns="http://purl.oclc.org/dsdl/schematron"
id="perseus_lexica-licence-calendar-calendar-check-licence-constraint-rule-14">
<sch:rule xmlns:rng="http://relaxng.org/ns/structure/1.0"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns="http://www.tei-c.org/ns/1.0"
context="tei:*[@calendar]">
<sch:assert test="string-length( normalize-space(.) ) gt 0"> @calendar indicates one or more
systems or calendars to which the date represented by the content of this element belongs,
but this <sch:name/> element has no textual content.</sch:assert>
</sch:rule>
</pattern>
<empty/>
</element>
</define>
<define name="tei_sourceDesc">
<element name="sourceDesc">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(source description) describes the source(s) from which an electronic text was derived or generated, typically a bibliographic description in the case of a digitized text, or a phrase such as "born digital" for a text which has no previous existence. [2.2.7. The Source Description]</a:documentation>
Expand Down Expand Up @@ -3754,7 +3920,7 @@ Sample values include: 1] main; 2] sub (subordinate); 3] alt (alternate); 4] sho
</attribute>
</optional>
<pattern xmlns="http://purl.oclc.org/dsdl/schematron"
id="perseus_lexica-change-calendar-calendar-check-change-constraint-rule-13">
id="perseus_lexica-change-calendar-calendar-check-change-constraint-rule-15">
<sch:rule xmlns:rng="http://relaxng.org/ns/structure/1.0"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xmlns:xi="http://www.w3.org/2001/XInclude"
Expand Down

0 comments on commit 54fcae2

Please sign in to comment.