Skip to content

Commit bb9cb4f

Browse files
committed
Merge branch 'master' into examples-61
2 parents d5cc2b0 + 9e50b2b commit bb9cb4f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+178
-100
lines changed

dmlex-v1.0/specification/core/objectTypes/label.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676

7777
<example>
7878
<title>JSON</title>
79+
<para>Implemented as a string</para>
7980
<programlisting>
8081
"..."
8182
</programlisting>

dmlex-v1.0/specification/core/objectTypes/partOfSpeech.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060

6161
<example>
6262
<title>JSON</title>
63+
<para>Implemented as a string</para>
6364
<programlisting>
6465
"..."
6566
</programlisting>

dmlex-v1.0/specification/dmlex.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@
742742
<ulink url="https://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html"
743743
>https://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html</ulink>
744744
</citetitle> OASIS Standard V1.1, 07 October 2005.</bibliomixed>
745-
<bibliomixed id="XMLSchema"><abbrev>XML Schema</abbrev> W3C, <title>XML Schema</title>,
745+
<bibliomixed id="bib_XMLSchema"><abbrev>XML Schema</abbrev> W3C, <title>XML Schema</title>,
746746
<citetitle> refers to the two part standard comprising <link linkend="XMLSchema1">[XML
747747
Schema Structures]</link> and <link linkend="XMLSchema2">[XML Schema Datatypes]</link>
748748
</citetitle> (Second Editions) W3C Recommendations 28 October 2004.</bibliomixed>

dmlex-v1.0/specification/examples/examples/12.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
- sense (id: lens-1)
2727
- definition (text: curved glass that makes things seem bigger)
2828
- relation (type: meronymy)
29-
- member (memberID: glasses-1, role: whole)
30-
- member (memberID: lens-1, role: part)
29+
- member (ref: glasses-1, role: whole)
30+
- member (ref: lens-1, role: part)
3131
- relation (type: meronymy)
32-
- member (memberID: microscrope-1, role: whole)
33-
- member (memberID: lens-1, role: part)
32+
- member (ref: microscrope-1, role: whole)
33+
- member (ref: lens-1, role: part)
3434
- relationType (type: meronomy, description: part-whole relationship)
3535
- memberType (role: whole, type: sense, min: 1, max: 1,
3636
hint: navigate)

dmlex-v1.0/specification/examples/examples/13.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
- sense (id: sell-1)
2323
- definition (text: exchange something for money)
2424
- relation (type: antonyms)
25-
- member (memberID: buy-1)
26-
- member (memberID: sell-1)
25+
- member (ref: buy-1)
26+
- member (ref: sell-1)
2727
- relationType: (type: antonyms)
2828
- memberType (type: sense, min: 2, max: 2, hint: navigate)
2929
</programlisting>

dmlex-v1.0/specification/examples/examples/14.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
- sense (id: der-ozean-1)
3131
- headwordTranslation (text: ocean)
3232
- relation (type: synonyms, description: words that mean sea and ocean)
33-
- member (memberID: die-see-1)
34-
- member (memberID: das-meer-1)
35-
- member (memberID: der-ozean-1)
33+
- member (ref: die-see-1)
34+
- member (ref: das-meer-1)
35+
- member (ref: der-ozean-1)
3636
- relationType (type: synonyms, description: synonyms and near synonyms)
3737
memberType (type: sense, min: 2, hint: navigate)
3838
</programlisting>

dmlex-v1.0/specification/examples/examples/15.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
- partOfSpeech (tag: n)
2929
- label (tag: americanSpelling)
3030
- relation (type: variants)
31-
- member (memberID: colour)
32-
- member (memberID: color)
31+
- member (ref: colour)
32+
- member (ref: color)
3333
- relationType (type: variants, description: words which differ
3434
only in spelling)
3535
- memberType (type: entry, min: 2, hint: navigate)
@@ -45,7 +45,6 @@
4545
</example>
4646
<example>
4747
<title>RDF</title>
48-
<xi:include href="source/15.rdf.xml"/>
4948
</example>
5049
<example>
5150
<title>Suggested rendering for human users</title>

dmlex-v1.0/specification/examples/examples/16.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
- definition (text: interest or excitement)
3131
- example (text: Examples add colour to your writing.)
3232
- relation (type: subsensing)
33-
- member (memberID: colour-1, role: super)
34-
- member (memberID: colour-2, role: sub)
33+
- member (rer: colour-1, role: super)
34+
- member (ref: colour-2, role: sub)
3535
- relation (type: subsensing)
36-
- member (memberID: colour-1, role: super)
37-
- member (memberID: colour-3, role: sub)
36+
- member (ref: colour-1, role: super)
37+
- member (ref: colour-3, role: sub)
3838
- relationType (type: subsensing, scopeRestriction: sameEntry)
3939
- memberType (role: super, type: sense, min: 1, max: 1, hint: none)
4040
- memberRole (role: sub, type: sense, min: 1, max: 1, hint: embed)

dmlex-v1.0/specification/examples/examples/17.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
- definition (text: you should be careful even if it seems
2727
unnecessary)
2828
- relation (type: subentrying)
29-
member (memberID: safe-1, role: container)
30-
member (memberID: better-safe, role: subentry)
29+
member (ref: safe-1, role: container)
30+
member (ref: better-safe, role: subentry)
3131
- relationType (type: subentrying, scopeRestriction: sameResource)
3232
- memberType (role: container, type: sense, min: 1, max: 1,
3333
hint: navigate)

dmlex-v1.0/specification/examples/examples/18.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
- sense (id: bible-2)
2525
- definition (text: a book considered important for a subject)
2626
- relation (type: subentrying)
27-
- member (memberID: bible-1, role: container)
28-
- member (memberID: the-bible, role: subentry)
27+
- member (ref: bible-1, role: container)
28+
- member (ref: the-bible, role: subentry)
2929
- relationType (type: subentrying, scopeRestcriction: sameResource)
3030
- memberType (role: container, type: sense, min: 1, max: 1,
3131
hint: navigate)

dmlex-v1.0/specification/modules/annotation/objectTypes/collocateMarker.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@
6060
<example>
6161
<title>XML</title>
6262
<programlisting>
63-
&lt;itemMarker id="..." lemma="..."&gt;
64-
...
65-
&lt;label tag="..."/&gt;
66-
&lt;/itemMarker&gt;
63+
&lt;collocateMarker id="..." lemma="..."&gt;...&lt;label tag="..."/&gt;&lt;/collocateMarker&gt;
6764
</programlisting>
6865
</example>
6966

dmlex-v1.0/specification/modules/etymology/extensions/entry.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,16 @@
4646
<programlisting>
4747
{
4848
...,
49-
"etymology": {...}
49+
"etymologies": [...]
5050
}
5151
</programlisting>
5252
</example>
5353

5454
<example>
5555
<title>RDF</title>
5656
<programlisting>
57-
&lt;#entry&gt; dmlex:etymology ... .
57+
&lt;#entry&gt; dmlex:etymology ... ;
58+
dmlex:etymonType ... .
5859
</programlisting>
5960
</example>
6061

dmlex-v1.0/specification/modules/etymology/extensions/lexicographicResource.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<programlisting>
3131
&lt;lexicographicResource&gt;
3232
&lt;etymonLanguage&gt;...&lt;etymonLanguage/&gt;
33+
&lt;etymonType&gt;...&lt;etymonType/&gt;
3334
...
3435
&lt;/lexicographicResource&gt;
3536
</programlisting>
@@ -40,6 +41,7 @@
4041
<programlisting>
4142
{
4243
"etymonLanguages": [...],
44+
"etymonTypes": [...],
4345
...
4446
}
4547
</programlisting>

dmlex-v1.0/specification/modules/linking/objectTypes/member.xml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
<itemizedlist>
2222
<title>Properties</title>
2323
<listitem>
24-
<para><literal>memberID</literal>
25-
<glossterm>required</glossterm> (exactly one) and <glossterm>unique</glossterm> (in combination with other unique properties if present). Reference to an object, such as an entry or a
26-
sense.</para>
24+
<para><literal>ref</literal>
25+
<glossterm>required</glossterm> (exactly one) and <glossterm>unique</glossterm> (in
26+
combination with other unique properties if present). Reference to an object, such as an
27+
entry or a sense.</para>
2728
</listitem>
2829
<listitem>
2930
<para><literal>role</literal>
@@ -44,7 +45,7 @@
4445
</listitem>
4546
<listitem>
4647
<para><literal>obverseListingOrder</literal>
47-
<glossterm>required</glossterm> (exactly one). Number. The position of this relation among
48+
<glossterm>optional</glossterm> (at most one). Number. The position of this relation among
4849
other relations this member is involved in. When an object - such as an entry or a sense -
4950
is a member of several relations (for example: when a sense is a member of a synonymy
5051
relation and also of an antonymy relation) then, when showing the object (the entry or the
@@ -56,15 +57,15 @@
5657
<example>
5758
<title>XML</title>
5859
<programlisting>
59-
&lt;member memberID="..." role="..." obverseListingOrder="..."/&gt;
60+
&lt;member ref="..." role="..." obverseListingOrder="..."/&gt;
6061
</programlisting>
6162
</example>
6263

6364
<example>
6465
<title>JSON</title>
6566
<programlisting>
6667
{
67-
"memberID": "...",
68+
"ref": "...",
6869
"role": "...",
6970
"obverseListingOrder": "..."
7071
}
@@ -75,7 +76,7 @@
7576
<programlisting>
7677
&lt;#relation&gt; dmlex:member [
7778
a dmlex:Member ;
78-
dmlex:memberID "..." ;
79+
dmlex:ref "..." ;
7980
dmlex:role "..." ;
8081
dmlex:listingOrder 0 ;
8182
dmlex:obverseListingOrder 0 ] .

dmlex-v1.0/specification/modules/linking/objectTypes/memberType.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<title>Properties</title>
2424
<listitem>
2525
<para><literal>role</literal>
26-
<glossterm>required</glossterm> (exactly one) and <glossterm>unique</glossterm>. String. If the value is empty, then members
27-
having this role do not need to have a <code>role</code> property.</para>
26+
<glossterm>optional</glossterm> (zero or one) and <glossterm>unique</glossterm>.
27+
String.</para>
2828
</listitem>
2929
<listitem>
3030
<para><literal>description</literal>

dmlex-v1.0/specification/modules/values/objectTypes/sameAs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949

5050
<example>
5151
<title>JSON</title>
52+
<para>Implemented as a string</para>
5253
<programlisting>
5354
"..."
5455
</programlisting>

dmlex-v1.0/specification/modules/xlingual/objectTypes/translationLanguage.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
</example>
4646
<example>
4747
<title>JSON</title>
48+
<para>Implemented as a string</para>
4849
<programlisting>
4950
"..."
5051
</programlisting>

dmlex-v1.0/specification/serializations/JSON/objects/collocateMarker.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
<para><literal>"endIndex"</literal>
2121
<glossterm>required</glossterm>, number</para>
2222
</listitem>
23-
<listitem>
24-
<para><literal>"id"</literal>
25-
<glossterm>optional</glossterm>, string</para>
26-
</listitem>
2723
<listitem>
2824
<para><literal>"lemma"</literal>
2925
<glossterm>optional</glossterm>, string</para>
@@ -34,5 +30,13 @@
3430
<olink targetptr="core_label">label</olink> object type</para>
3531
</listitem>
3632
</itemizedlist>
33+
34+
<itemizedlist>
35+
<title>Members if implementing the Linking Module</title>
36+
<listitem>
37+
<para><literal>"id"</literal>
38+
<glossterm>optional</glossterm>, string. Collocate markers that have an ID can appear as members of relations.</para>
39+
</listitem>
40+
</itemizedlist>
3741

3842
</section>

dmlex-v1.0/specification/serializations/JSON/objects/entry.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111

1212
<itemizedlist>
1313
<title>Members</title>
14-
<listitem>
15-
<para><literal>"id"</literal>
16-
<glossterm>optional</glossterm>, string</para>
17-
</listitem>
1814
<listitem>
1915
<para><literal>"headword"</literal>
2016
<glossterm>required</glossterm>, string</para>
@@ -50,6 +46,14 @@
5046
</listitem>
5147
</itemizedlist>
5248

49+
<itemizedlist>
50+
<title>Members if implementing the Linking Module</title>
51+
<listitem>
52+
<para><literal>"id"</literal>
53+
<glossterm>optional</glossterm>, string. Entries that have an ID can be members of relations.</para>
54+
</listitem>
55+
</itemizedlist>
56+
5357
<itemizedlist>
5458
<title>Members if implementing the Annotation Module</title>
5559
<listitem>

dmlex-v1.0/specification/serializations/JSON/objects/lexicographicResource.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@
9191
<itemizedlist>
9292
<title>Members if implementing the Etymology Module</title>
9393
<listitem>
94-
<para><literal>"etymonLanguage"</literal>
94+
<para><literal>"etymonLanguages"</literal>
9595
<glossterm>optional</glossterm>, array of zero or more <literal><olink
96-
targetptr="json_etymonLanguage">etymonLanguage</olink></literal> instances</para>
96+
targetptr="json_etymonLanguage">etymonLanguage</olink></literal>
97+
instances</para>
9798
</listitem>
9899
<listitem>
99100
<para><literal>"etymonTypes"</literal>

dmlex-v1.0/specification/serializations/JSON/objects/member.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
<itemizedlist>
1414
<title>Members</title>
1515
<listitem>
16-
<para><literal>"memberID"</literal>
17-
<glossterm>required</glossterm>, string</para>
16+
<para><literal>"ref"</literal>
17+
<glossterm>required</glossterm>, string: the <code>id</code> of an <code>entry</code>, a <code>sense</code> or a <code>collocateMarker</code>.</para>
1818
</listitem>
1919
<listitem>
2020
<para><literal>"role"</literal>
2121
<glossterm>optional</glossterm>, string</para>
2222
</listitem>
2323
<listitem>
2424
<para><literal>"obverseListingOrder"</literal>
25-
<glossterm>required</glossterm>, number</para>
25+
<glossterm>optional</glossterm>, number</para>
2626
</listitem>
2727
</itemizedlist>
2828

dmlex-v1.0/specification/serializations/JSON/objects/memberType.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<title>Members</title>
1515
<listitem>
1616
<para><literal>"role"</literal>
17-
<glossterm>required</glossterm>, string</para>
17+
<glossterm>optional</glossterm>, string</para>
1818
</listitem>
1919
<listitem>
2020
<para><literal>"type"</literal>

dmlex-v1.0/specification/serializations/JSON/objects/sense.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111

1212
<itemizedlist>
1313
<title>Members</title>
14-
<listitem>
15-
<para><literal>"id"</literal>
16-
<glossterm>optional</glossterm>, string</para>
17-
</listitem>
1814
<listitem>
1915
<para><literal>"indicator"</literal>
2016
<glossterm>optional</glossterm>, string</para>
@@ -36,6 +32,16 @@
3632
</listitem>
3733
</itemizedlist>
3834

35+
<itemizedlist>
36+
<title>Members if implementing the Linking Module</title>
37+
<listitem>
38+
<para><literal>"id"</literal>
39+
<glossterm>optional</glossterm>, string.
40+
Senses that have an ID can be members of relations.
41+
</para>
42+
</listitem>
43+
</itemizedlist>
44+
3945
<itemizedlist>
4046
<title>Members if implementing the Crosslingual Module</title>
4147
<listitem>

dmlex-v1.0/specification/serializations/JSON/specification.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@
5555
</itemizedlist>
5656
</listitem>
5757
</itemizedlist>
58+
<para>The names of objects are:</para>
59+
<itemizedlist>
60+
<listitem>
61+
<para>plural if the value is an array, for example <code>labels</code>, <code>partsOfSpeech</code></para>
62+
</listitem>
63+
<listitem>
64+
<para>singular if the value is anything else, for example <code>headword</code>, <code>indicator</code></para>
65+
</listitem>
66+
</itemizedlist>
5867
</listitem>
5968
</itemizedlist>
6069
</section>

0 commit comments

Comments
 (0)