<relation>

<relation> 指定された参加者グループ間の関連性の種類を示す. [13.3.2.3 Personal Relationships]
モジュールnamesdates — Names, Dates, People, and Places
属性att.global (@xml:id, @n, @xml:lang, @rend, @style, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) att.datable (@calendar, @period) (att.datable.w3c (@when, @notBefore, @notAfter, @from, @to)) (att.datable.iso (@when-iso, @notBefore-iso, @notAfter-iso, @from-iso, @to-iso)) (att.datable.custom (@when-custom, @notBefore-custom, @notAfter-custom, @from-custom, @to-custom, @datingPoint, @datingMethod)) att.editLike (@evidence, @instant) (att.dimensions (@unit, @quantity, @extent, @precision, @scope) (att.ranging (@atLeast, @atMost, @min, @max, @confidence)) ) (att.responsibility (@cert, @resp) (att.source (@source)) ) att.canonical (@key, @ref) att.sortable (@sortKey)
type当該関係を分類する.例えば,社会的関係,個人的関係など. 提案する値は以下の通り: 1] social; 2] personal; 3] other
状態 任意
データ型

<rng:ref name="data.enumerated"/>
data.enumerated
提案する値は以下の通り:
social
社会的役割を伴う関係.
personal
個人的役割を伴う関係.例えば,親類,婚姻など. [初期値]
other
他の関係.
name当該関係の種類名を示す.
状態 任意
データ型

<rng:ref name="data.enumerated"/>
data.enumerated
active
状態 任意
データ型 1–∞ occurrences of 

<rng:ref name="data.pointer"/>
data.pointer
空白文字で区切られる
mutual
状態 任意
データ型 1–∞ occurrences of 

<rng:ref name="data.pointer"/>
data.pointer
空白文字で区切られる
passive一方向の関係における‘受動的な’参加者を指定す る.
状態 任意
データ型 1–∞ occurrences of 

<rng:ref name="data.pointer"/>
data.pointer
空白文字で区切られる
クラブのメンバー
上位
下位
core: desc
宣言

<rng:element name="relation">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.datable.attributes"/>
 <rng:ref name="att.datable.w3c.attributes"/>
 <rng:ref name="att.datable.iso.attributes"/>
 <rng:ref name="att.datable.custom.attributes"/>
 <rng:ref name="att.editLike.attributes"/>
 <rng:ref name="att.dimensions.attributes"/>
 <rng:ref name="att.ranging.attributes"/>
 <rng:ref name="att.responsibility.attributes"/>
 <rng:ref name="att.source.attributes"/>
 <rng:ref name="att.canonical.attributes"/>
 <rng:ref name="att.sortable.attributes"/>
 <rng:optional>
  <rng:attribute name="typea:defaultValue="personal">
   <rng:choice>
    <rng:value>social</rng:value>
    <rng:value>personal</rng:value>
    <rng:value>other</rng:value>
    <rng:data type="Name"/>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="name">
   <rng:ref name="data.enumerated"/>
  </rng:attribute>
 </rng:optional>
 <rng:choice>
  <rng:optional>
   <rng:attribute name="active">
    <rng:list>
     <rng:oneOrMore>
      <rng:ref name="data.pointer"/>
     </rng:oneOrMore>
    </rng:list>
   </rng:attribute>
  </rng:optional>
  <rng:optional>
   <rng:attribute name="mutual">
    <rng:list>
     <rng:oneOrMore>
      <rng:ref name="data.pointer"/>
     </rng:oneOrMore>
    </rng:list>
   </rng:attribute>
  </rng:optional>
 </rng:choice>
 <rng:optional>
  <rng:attribute name="passive">
   <rng:list>
    <rng:oneOrMore>
     <rng:ref name="data.pointer"/>
    </rng:oneOrMore>
   </rng:list>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:ref name="desc"/>
 </rng:optional>
</rng:element>
element relation
{
   att.global.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.datable.attributes,
   att.datable.w3c.attributes,
   att.datable.iso.attributes,
   att.datable.custom.attributes,
   att.editLike.attributes,
   att.dimensions.attributes,
   att.ranging.attributes,
   att.responsibility.attributes,
   att.source.attributes,
   att.canonical.attributes,
   att.sortable.attributes,
   attribute type { "social" | "personal" | "other" | xsd:Name }?,
   attribute name { data.enumerated }?,
   (
      attribute active { list { data.pointer+ } }?
    | attribute mutual { list { data.pointer+ } }?
   ),
   attribute passive { list { data.pointer+ } }?,
   desc?
}
Schematron

<s:assert test="@ref or @key or @name">One of the attributes 'name', 'ref' or 'key' must be supplied</s:assert>
Schematron

<s:report test="@active and @mutual">Only one of the attributes
@active and @mutual may be supplied</s:report>
Schematron

<s:report test="@passive and not(@active)">the attribute 'passive'
may be supplied only if the attribute 'active' is
supplied</s:report>
<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="personalname="friendsmutual="#p2 #p3 #p4"/>

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

<relation
  type="CRM"
  name="P87_is_identified_by"
  active="http://id.clarosnet.org/places/ashmol/placecode/22584"
  passive="http://id.clarosnet.org/places/ashmol/placename/orvieto"/>

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).

解説

属性activeか属性mutualのどちらかのみが付与さ れる.属性passiveは,属性activeが付与されて いる場合にのみ使用される.どのスキーマ言語でも,全ての構成要素が使 われるというものではない.