Skip to content

Commit

Permalink
name in persons erlaubt
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaRichts committed Mar 13, 2020
1 parent e0280a5 commit d7dd3e2
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 21 deletions.
4 changes: 2 additions & 2 deletions schema/de/wegaPersons.isosch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<title>ISO Schematron rules</title>
<!-- This file generated 2020-03-13T12:56:07.06+01:00 by 'extract-isosch.xsl'. -->
<!-- This file generated 2020-03-13T19:30:50.804+01:00 by 'extract-isosch.xsl'. -->

<!-- ********************* -->
<!-- namespaces, declared: -->
Expand Down Expand Up @@ -36,7 +36,7 @@ belongs, but this <name/> element has no textual content.</assert>
</pattern>
<pattern id="wegaPersons-rs-constraint-rs-typeNkey-4">
<rule context="tei:rs[@type][@key]">
<assert test=" (matches(@key, '^A00\d{4}$') and @type='person') or (matches(@key, '^A02\d{4}$') and @type='work') or (matches(@key, '^A03\d{4}$') and @type='writing') or (matches(@key, '^A04\d{4}$') and @type='letter') or (matches(@key, '^A06\d{4}$') and @type='diaryDay') or (matches(@key, '^(A00\d{4}\s)*A00\d{4}$') and @type='persons') or (matches(@key, '^(A02\d{4}\s)*A02\d{4}$') and @type='works') or (matches(@key, '^(A03\d{4}\s)*A03\d{4}$') and @type='writings') or (matches(@key, '^(A04\d{4}\s)*A04\d{4}$') and @type='letters') or (matches(@key, '^(A05\d{4}\s)*A05\d{4}$') and @type='news') or (matches(@key, '^(A06\d{4}\s)*A06\d{4}$') and @type='diaryDays') or (matches(@key, '^(A11\d{4}\s)*A11\d{4}$') and @type='biblio')">Type mismatch: The value for @type must be in accordance with the given ID in @key</assert>
<assert test=" (matches(@key, '^H00\d{4}$') and @type='person') or (matches(@key, '^H02\d{4}$') and @type='work') or (matches(@key, '^H03\d{4}$') and @type='writing') or (matches(@key, '^H04\d{4}$') and @type='letter') or (matches(@key, '^H06\d{4}$') and @type='diaryDay') or (matches(@key, '^(H00\d{4}\s)*H00\d{4}$') and @type='persons') or (matches(@key, '^(H02\d{4}\s)*H02\d{4}$') and @type='works') or (matches(@key, '^(H03\d{4}\s)*H03\d{4}$') and @type='writings') or (matches(@key, '^(H04\d{4}\s)*H04\d{4}$') and @type='letters') or (matches(@key, '^(H05\d{4}\s)*H05\d{4}$') and @type='news') or (matches(@key, '^(H06\d{4}\s)*H06\d{4}$') and @type='diaryDays') or (matches(@key, '^(H11\d{4}\s)*H11\d{4}$') and @type='biblio')">Type mismatch: The value for @type must be in accordance with the given ID in @key</assert>
</rule>
</pattern>
<pattern id="wegaPersons-date-constraint-dateHeuristics1-5">
Expand Down
28 changes: 26 additions & 2 deletions schema/de/wegaPersons.rng
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://www.tei-c.org/ns/1.0">
<!--
Schema generated from ODD source 2020-03-13T12:56:05Z.
Schema generated from ODD source 2020-03-13T19:30:49Z.
Edition: Version 2.7.0. Last updated on
16th September 2014, revision 13036
Edition Location: http://www.tei-c.org/Vault/P5/Version 2.7.0/
Expand Down Expand Up @@ -690,24 +690,30 @@ Empfohlene Werte sind: 1] internal; 2] external; 3] conjecture</a:documentation>
</define>
<define name="model.nameLike.agent">
<choice>
<ref name="name"/>
<ref name="orgName"/>
<ref name="persName"/>
<ref name="characterName"/>
</choice>
</define>
<define name="model.nameLike.agent_alternation">
<choice>
<ref name="name"/>
<ref name="orgName"/>
<ref name="persName"/>
<ref name="characterName"/>
</choice>
</define>
<define name="model.nameLike.agent_sequence">
<ref name="name"/>
<ref name="orgName"/>
<ref name="persName"/>
<ref name="characterName"/>
</define>
<define name="model.nameLike.agent_sequenceOptional">
<optional>
<ref name="name"/>
</optional>
<optional>
<ref name="orgName"/>
</optional>
Expand All @@ -719,6 +725,9 @@ Empfohlene Werte sind: 1] internal; 2] external; 3] conjecture</a:documentation>
</optional>
</define>
<define name="model.nameLike.agent_sequenceOptionalRepeatable">
<zeroOrMore>
<ref name="name"/>
</zeroOrMore>
<zeroOrMore>
<ref name="orgName"/>
</zeroOrMore>
Expand All @@ -730,6 +739,9 @@ Empfohlene Werte sind: 1] internal; 2] external; 3] conjecture</a:documentation>
</zeroOrMore>
</define>
<define name="model.nameLike.agent_sequenceRepeatable">
<oneOrMore>
<ref name="name"/>
</oneOrMore>
<oneOrMore>
<ref name="orgName"/>
</oneOrMore>
Expand Down Expand Up @@ -1385,13 +1397,25 @@ Empfohlene Werte sind: 1] internal; 2] external; 3] conjecture</a:documentation>
<empty/>
</element>
</define>
<define name="name">
<element name="name">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(name, proper noun) contains a proper noun or noun phrase. [3.5.1. ]</a:documentation>
<ref name="macro.phraseSeq"/>
<ref name="att.global.attributes"/>
<ref name="att.personal.attributes"/>
<ref name="att.datable.attributes"/>
<ref name="att.editLike.attributes"/>
<ref name="att.typed.attributes"/>
<empty/>
</element>
</define>
<define name="rs">
<element name="rs">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(referenzierende Zeichenkette) bezeichnet ein oder mehrere Objekt(e) vom Typ Person, Werk, Tagebucheintrag, usw. [13.2.1. 3.5.1. ]</a:documentation>
<ref name="macro.phraseSeq"/>
<pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="wegaPersons-rs-rs-typeNkey-constraint-4">
<sch:rule xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:mei="http://www.music-encoding.org/ns/mei" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://www.tei-c.org/ns/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xi="http://www.w3.org/2001/XInclude" context="tei:rs[@type][@key]">
<sch:assert test=" (matches(@key, '^A00\d{4}$') and @type='person') or (matches(@key, '^A02\d{4}$') and @type='work') or (matches(@key, '^A03\d{4}$') and @type='writing') or (matches(@key, '^A04\d{4}$') and @type='letter') or (matches(@key, '^A06\d{4}$') and @type='diaryDay') or (matches(@key, '^(A00\d{4}\s)*A00\d{4}$') and @type='persons') or (matches(@key, '^(A02\d{4}\s)*A02\d{4}$') and @type='works') or (matches(@key, '^(A03\d{4}\s)*A03\d{4}$') and @type='writings') or (matches(@key, '^(A04\d{4}\s)*A04\d{4}$') and @type='letters') or (matches(@key, '^(A05\d{4}\s)*A05\d{4}$') and @type='news') or (matches(@key, '^(A06\d{4}\s)*A06\d{4}$') and @type='diaryDays') or (matches(@key, '^(A11\d{4}\s)*A11\d{4}$') and @type='biblio')">Type mismatch: The value for @type must be in accordance with the given ID in @key</sch:assert>
<sch:assert test=" (matches(@key, '^H00\d{4}$') and @type='person') or (matches(@key, '^H02\d{4}$') and @type='work') or (matches(@key, '^H03\d{4}$') and @type='writing') or (matches(@key, '^H04\d{4}$') and @type='letter') or (matches(@key, '^H06\d{4}$') and @type='diaryDay') or (matches(@key, '^(H00\d{4}\s)*H00\d{4}$') and @type='persons') or (matches(@key, '^(H02\d{4}\s)*H02\d{4}$') and @type='works') or (matches(@key, '^(H03\d{4}\s)*H03\d{4}$') and @type='writings') or (matches(@key, '^(H04\d{4}\s)*H04\d{4}$') and @type='letters') or (matches(@key, '^(H05\d{4}\s)*H05\d{4}$') and @type='news') or (matches(@key, '^(H06\d{4}\s)*H06\d{4}$') and @type='diaryDays') or (matches(@key, '^(H11\d{4}\s)*H11\d{4}$') and @type='biblio')">Type mismatch: The value for @type must be in accordance with the given ID in @key</sch:assert>
</sch:rule>
</pattern>
<ref name="att.typed.attribute.subtype"/>
Expand Down
4 changes: 2 additions & 2 deletions schema/en/wegaPersons.isosch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<title>ISO Schematron rules</title>
<!-- This file generated 2020-03-13T12:56:21.289+01:00 by 'extract-isosch.xsl'. -->
<!-- This file generated 2020-03-13T19:31:37.729+01:00 by 'extract-isosch.xsl'. -->

<!-- ********************* -->
<!-- namespaces, declared: -->
Expand Down Expand Up @@ -36,7 +36,7 @@ belongs, but this <name/> element has no textual content.</assert>
</pattern>
<pattern id="wegaPersons-rs-constraint-rs-typeNkey-4">
<rule context="tei:rs[@type][@key]">
<assert test=" (matches(@key, '^A00\d{4}$') and @type='person') or (matches(@key, '^A02\d{4}$') and @type='work') or (matches(@key, '^A03\d{4}$') and @type='writing') or (matches(@key, '^A04\d{4}$') and @type='letter') or (matches(@key, '^A06\d{4}$') and @type='diaryDay') or (matches(@key, '^(A00\d{4}\s)*A00\d{4}$') and @type='persons') or (matches(@key, '^(A02\d{4}\s)*A02\d{4}$') and @type='works') or (matches(@key, '^(A03\d{4}\s)*A03\d{4}$') and @type='writings') or (matches(@key, '^(A04\d{4}\s)*A04\d{4}$') and @type='letters') or (matches(@key, '^(A05\d{4}\s)*A05\d{4}$') and @type='news') or (matches(@key, '^(A06\d{4}\s)*A06\d{4}$') and @type='diaryDays') or (matches(@key, '^(A11\d{4}\s)*A11\d{4}$') and @type='biblio')">Type mismatch: The value for @type must be in accordance with the given ID in @key</assert>
<assert test=" (matches(@key, '^H00\d{4}$') and @type='person') or (matches(@key, '^H02\d{4}$') and @type='work') or (matches(@key, '^H03\d{4}$') and @type='writing') or (matches(@key, '^H04\d{4}$') and @type='letter') or (matches(@key, '^H06\d{4}$') and @type='diaryDay') or (matches(@key, '^(H00\d{4}\s)*H00\d{4}$') and @type='persons') or (matches(@key, '^(H02\d{4}\s)*H02\d{4}$') and @type='works') or (matches(@key, '^(H03\d{4}\s)*H03\d{4}$') and @type='writings') or (matches(@key, '^(H04\d{4}\s)*H04\d{4}$') and @type='letters') or (matches(@key, '^(H05\d{4}\s)*H05\d{4}$') and @type='news') or (matches(@key, '^(H06\d{4}\s)*H06\d{4}$') and @type='diaryDays') or (matches(@key, '^(H11\d{4}\s)*H11\d{4}$') and @type='biblio')">Type mismatch: The value for @type must be in accordance with the given ID in @key</assert>
</rule>
</pattern>
<pattern id="wegaPersons-date-constraint-dateHeuristics1-5">
Expand Down
28 changes: 26 additions & 2 deletions schema/en/wegaPersons.rng
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://www.tei-c.org/ns/1.0">
<!--
Schema generated from ODD source 2020-03-13T12:56:19Z.
Schema generated from ODD source 2020-03-13T19:31:35Z.
Edition: Version 2.7.0. Last updated on
16th September 2014, revision 13036
Edition Location: http://www.tei-c.org/Vault/P5/Version 2.7.0/
Expand Down Expand Up @@ -690,24 +690,30 @@ Suggested values include: 1] internal; 2] external; 3] conjecture</a:documentati
</define>
<define name="model.nameLike.agent">
<choice>
<ref name="name"/>
<ref name="orgName"/>
<ref name="persName"/>
<ref name="characterName"/>
</choice>
</define>
<define name="model.nameLike.agent_alternation">
<choice>
<ref name="name"/>
<ref name="orgName"/>
<ref name="persName"/>
<ref name="characterName"/>
</choice>
</define>
<define name="model.nameLike.agent_sequence">
<ref name="name"/>
<ref name="orgName"/>
<ref name="persName"/>
<ref name="characterName"/>
</define>
<define name="model.nameLike.agent_sequenceOptional">
<optional>
<ref name="name"/>
</optional>
<optional>
<ref name="orgName"/>
</optional>
Expand All @@ -719,6 +725,9 @@ Suggested values include: 1] internal; 2] external; 3] conjecture</a:documentati
</optional>
</define>
<define name="model.nameLike.agent_sequenceOptionalRepeatable">
<zeroOrMore>
<ref name="name"/>
</zeroOrMore>
<zeroOrMore>
<ref name="orgName"/>
</zeroOrMore>
Expand All @@ -730,6 +739,9 @@ Suggested values include: 1] internal; 2] external; 3] conjecture</a:documentati
</zeroOrMore>
</define>
<define name="model.nameLike.agent_sequenceRepeatable">
<oneOrMore>
<ref name="name"/>
</oneOrMore>
<oneOrMore>
<ref name="orgName"/>
</oneOrMore>
Expand Down Expand Up @@ -1385,13 +1397,25 @@ Suggested values include: 1] internal; 2] external; 3] conjecture</a:documentati
<empty/>
</element>
</define>
<define name="name">
<element name="name">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(name, proper noun) contains a proper noun or noun phrase. [3.5.1. ]</a:documentation>
<ref name="macro.phraseSeq"/>
<ref name="att.global.attributes"/>
<ref name="att.personal.attributes"/>
<ref name="att.datable.attributes"/>
<ref name="att.editLike.attributes"/>
<ref name="att.typed.attributes"/>
<empty/>
</element>
</define>
<define name="rs">
<element name="rs">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(referencing string) identifies one or more objects by type person, work, dairy entry, and so on. [13.2.1. 3.5.1. ]</a:documentation>
<ref name="macro.phraseSeq"/>
<pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="wegaPersons-rs-rs-typeNkey-constraint-4">
<sch:rule xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:mei="http://www.music-encoding.org/ns/mei" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://www.tei-c.org/ns/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xi="http://www.w3.org/2001/XInclude" context="tei:rs[@type][@key]">
<sch:assert test=" (matches(@key, '^A00\d{4}$') and @type='person') or (matches(@key, '^A02\d{4}$') and @type='work') or (matches(@key, '^A03\d{4}$') and @type='writing') or (matches(@key, '^A04\d{4}$') and @type='letter') or (matches(@key, '^A06\d{4}$') and @type='diaryDay') or (matches(@key, '^(A00\d{4}\s)*A00\d{4}$') and @type='persons') or (matches(@key, '^(A02\d{4}\s)*A02\d{4}$') and @type='works') or (matches(@key, '^(A03\d{4}\s)*A03\d{4}$') and @type='writings') or (matches(@key, '^(A04\d{4}\s)*A04\d{4}$') and @type='letters') or (matches(@key, '^(A05\d{4}\s)*A05\d{4}$') and @type='news') or (matches(@key, '^(A06\d{4}\s)*A06\d{4}$') and @type='diaryDays') or (matches(@key, '^(A11\d{4}\s)*A11\d{4}$') and @type='biblio')">Type mismatch: The value for @type must be in accordance with the given ID in @key</sch:assert>
<sch:assert test=" (matches(@key, '^H00\d{4}$') and @type='person') or (matches(@key, '^H02\d{4}$') and @type='work') or (matches(@key, '^H03\d{4}$') and @type='writing') or (matches(@key, '^H04\d{4}$') and @type='letter') or (matches(@key, '^H06\d{4}$') and @type='diaryDay') or (matches(@key, '^(H00\d{4}\s)*H00\d{4}$') and @type='persons') or (matches(@key, '^(H02\d{4}\s)*H02\d{4}$') and @type='works') or (matches(@key, '^(H03\d{4}\s)*H03\d{4}$') and @type='writings') or (matches(@key, '^(H04\d{4}\s)*H04\d{4}$') and @type='letters') or (matches(@key, '^(H05\d{4}\s)*H05\d{4}$') and @type='news') or (matches(@key, '^(H06\d{4}\s)*H06\d{4}$') and @type='diaryDays') or (matches(@key, '^(H11\d{4}\s)*H11\d{4}$') and @type='biblio')">Type mismatch: The value for @type must be in accordance with the given ID in @key</sch:assert>
</sch:rule>
</pattern>
<ref name="att.typed.attribute.subtype"/>
Expand Down
Loading

0 comments on commit d7dd3e2

Please sign in to comment.