Skip to content

<relation>

relationship

describes any kind of relationship or linkage amongst a specified group of places, events, persons, objects or other items.

Module namesdatesNDPERSREL

Attributes

@namesupplies a name for the kind of relationship of which this is an instance.
Status
Datatype
teidata.enumerated
@passiveidentifies the passive participants in a non-mutual relationship.
Status
Optional
Datatype
1–∞ occurrences of teidata.pointer separated by whitespace

Classes and content

May contain

core

Contained by

Note

Only one of the attributes @active and @mutual may be supplied; the attribute @passive may be supplied only if the attribute @active is supplied. Not all of these constraints can be enforced in all schema languages.

Examples

<relation type="social" name="supervisor" active="#p1" passive="#p2 #p3 #p4"/>

This indicates that the person with identifier p1 is supervisor of persons p2, p3, and p4.

<relation type="personal" name="friends" mutual="#p2 #p3 #p4"/>

This indicates that p2, p3, and p4 are all friends.

<relation type="CRM" name="P89_falls_within" active="http://id.clarosnet.org/places/metamorphoses/place/italy-orvieto" passive="http://id.clarosnet.org/places/metamorphoses/country/IT"/>

This indicates that there is a relation, defined by CIDOC CRM, between two resources identified by URLs.

<relation resp="http://viaf.org/viaf/44335536/" ref="http://purl.org/saws/ontology#isVariantOf" active="http://www.ancientwisdoms.ac.uk/cts/urn:cts:greekLit:tlg3017.Syno298.sawsGrc01:divedition.divsection1.o14.a107" passive="http://data.perseus.org/citations/urn:cts:greekLit:tlg0031.tlg002.perseus-grc1:9.35"/>

This example records a relationship, defined by the SAWS ontology, between a passage of text identified by a CTS URN, and a variant passage of text in the Perseus Digital Library, and assigns the identification of the relationship to a particular editor (all using resolvable URIs).

Schematron

<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="ref-or-key-or-name" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:relation">
        <sch:assert test="@ref or @key or @name">One of the attributes @name, @ref or @key must be supplied.</sch:assert>
      </sch:rule>
    </constraint>
  </constraintSpec>
<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="active-mutual" scheme="schematron" xml:lang="en">
    
    <constraint>
      <sch:rule context="tei:relation">
        <sch:report test="@active and @mutual">Only one of the attributes @active and @mutual may be supplied.</sch:report>
      </sch:rule>
    </constraint>
  </constraintSpec>
<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="active-passive" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:relation">
        <sch:report test="@passive and not(@active)">the attribute @passive may be supplied only if the attribute @active is supplied.</sch:report>
      </sch:rule>
    </constraint>
  </constraintSpec>

Content model

<content>
    <elementRef key="desc" minOccurs="0"/>
  </content>