File tree 24 files changed +117
-40
lines changed
24 files changed +117
-40
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3
+ "http://www.docbook.org/xml/4.5/docbookx.dtd" [
4
+ <!ENTITY % xinclude SYSTEM " ../../../docbook/xinclude.mod" >
5
+ %xinclude;
6
+ <!ENTITY % local.common.attrib " xml:base CDATA #IMPLIED" >
7
+ ]>
8
+
9
+ <section id =" etymology_sameAs" >
10
+ <title >Extensions to <code >sameAs</code ></title >
11
+ <para >
12
+ Extends the <code ><olink targetptr =" values_sameAs" >sameAs</olink ></code > object type
13
+ from the <olink targetptr =" values" >Controlled Values Module</olink >.
14
+ </para >
15
+
16
+ <itemizedlist >
17
+ <title >Can additionally be a property of</title >
18
+ <listitem >
19
+ <para ><literal ><olink targetptr =" linking_relationTypeTag" >etymonLanguage</olink ></literal ></para >
20
+ </listitem >
21
+ <listitem >
22
+ <para ><literal ><olink targetptr =" linking_memberRoletag" >etymonType</olink ></literal ></para >
23
+ </listitem >
24
+ </itemizedlist >
25
+
26
+ <example >
27
+ <title >Relational database</title >
28
+ <graphic fileref =" modules/linking/databaseDiagrams/sameAs.svg" contentwidth =" 16cm" />
29
+ </example >
30
+
31
+ </section >
Original file line number Diff line number Diff line change 44
44
<para ><literal ><olink targetptr =" etymology_etymonUnit" >etymonUnit</olink ></literal >
45
45
<glossterm >required</glossterm > (one or more) and <glossterm >unique</glossterm >.</para >
46
46
</listitem >
47
- <listitem >
48
- <para ><literal >translation</literal >
49
- <glossterm >optional</glossterm > (zero or one). Normalised string. A translation or
50
- gloss of the etymon in the language of the lexicographic resource.</para >
51
- </listitem >
52
47
<listitem >
53
48
<para ><literal >listingOrder</literal >
54
49
<glossterm >required</glossterm > (exactly one). Number. The position of this origin
Original file line number Diff line number Diff line change 32
32
<glossterm >optional</glossterm > (zero or one). Normalised string. The name of the etymon
33
33
language, in the language of the lexicographic resource.</para >
34
34
</listitem >
35
+ <listitem >
36
+ <para ><literal ><olink targetptr =" etymology_sameAs" >sameAs</olink ></literal >
37
+ <glossterm >optional</glossterm > (zero or more).</para >
38
+ </listitem >
35
39
</itemizedlist >
36
40
37
41
<note >
48
52
<programlisting >
49
53
< etymonLanguage langCode="...">
50
54
< displayName> ...< displayName>
55
+ < sameAs.../>
51
56
< /etymonLanguage>
52
57
</programlisting >
53
58
</example >
57
62
<programlisting >
58
63
{
59
64
"langCode": "..." ,
60
- "displayName": "..."
65
+ "displayName": "...",
66
+ "sameAs": [ ... ]
61
67
}
62
68
</programlisting >
63
69
</example >
66
72
<title >RDF</title >
67
73
<programlisting >
68
74
< #etymonLanguage> dmlex:langCode "..." ;
69
- dmlex:displayName "... " .
75
+ dmlex:displayName "... " ;
76
+ dmlex:sameAs ... .
70
77
</programlisting >
71
78
</example >
72
79
Original file line number Diff line number Diff line change 31
31
<glossterm >optional</glossterm > (zero or one). Normalised string. A human-readable
32
32
explanation of this type.</para >
33
33
</listitem >
34
+ <listitem >
35
+ <para ><literal ><olink targetptr =" etymology_sameAs" >sameAs</olink ></literal >
36
+ <glossterm >optional</glossterm > (zero or more).</para >
37
+ </listitem >
34
38
</itemizedlist >
35
39
36
40
<example >
Original file line number Diff line number Diff line change 20
20
<xi : include href =" objectTypes/etymonType.xml" xmlns : xi =" http://www.w3.org/2001/XInclude" />
21
21
<xi : include href =" objectTypes/etymonLanguage.xml" xmlns : xi =" http://www.w3.org/2001/XInclude" />
22
22
<xi : include href =" extensions/partOfSpeech.xml" xmlns : xi =" http://www.w3.org/2001/XInclude" />
23
+ <xi : include href =" extensions/sameAs.xml" xmlns : xi =" http://www.w3.org/2001/XInclude" />
23
24
24
25
</section >
Original file line number Diff line number Diff line change 906
906
"$ref" : " #/$defs/etymonUnit"
907
907
},
908
908
"minItems" : 1
909
- },
910
- "translation" : {
911
- "type" : " string"
912
909
}
913
910
},
914
911
"additionalProperties" : false
950
947
"description" : {
951
948
"type" : " string" ,
952
949
"minLength" : 1
950
+ },
951
+ "sameAs" : {
952
+ "type" : " array" ,
953
+ "items" : {
954
+ "$ref" : " #/$defs/sameAs"
955
+ },
956
+ "uniqueItems" : true
953
957
}
954
958
},
955
959
"additionalProperties" : false
963
967
},
964
968
"displayName" : {
965
969
"type" : " string"
970
+ },
971
+ "sameAs" : {
972
+ "type" : " array" ,
973
+ "items" : {
974
+ "$ref" : " #/$defs/sameAs"
975
+ },
976
+ "uniqueItems" : true
966
977
}
967
978
},
968
979
"additionalProperties" : false
Original file line number Diff line number Diff line change 709
709
"$ref" : " #/$defs/etymonUnit"
710
710
},
711
711
"minItems" : 1
712
- },
713
- "translation" : {
714
- "type" : " string"
715
- }
716
- },
712
+ } },
717
713
"additionalProperties" : false
718
714
},
719
715
"etymonUnit" : {
753
749
"description" : {
754
750
"type" : " string" ,
755
751
"minLength" : 1
752
+ },
753
+ "sameAs" : {
754
+ "type" : " array" ,
755
+ "items" : {
756
+ "$ref" : " #/$defs/sameAs"
757
+ },
758
+ "uniqueItems" : true
756
759
}
757
760
},
758
761
"additionalProperties" : false
766
769
},
767
770
"displayName" : {
768
771
"type" : " string"
772
+ },
773
+ "sameAs" : {
774
+ "type" : " array" ,
775
+ "items" : {
776
+ "$ref" : " #/$defs/sameAs"
777
+ },
778
+ "uniqueItems" : true
769
779
}
770
780
},
771
781
"additionalProperties" : false
Original file line number Diff line number Diff line change @@ -49,9 +49,6 @@ dmlex:Etymon a owl:Class ;
49
49
a owl:Restriction ;
50
50
owl:onProperty dmlex:etymonUnit ;
51
51
owl:minCardinality 1 ] , [
52
- a owl:Restriction ;
53
- owl:onProperty dmlex:translation ;
54
- owl:maxCardinality 1 ] , [
55
52
a owl:Restriction ;
56
53
owl:onProperty dmlex:listingOrder ;
57
54
owl:cardinality 1 ] .
@@ -140,3 +137,7 @@ dmlex:displayName a owl:ObjectProperty ;
140
137
rdfs:label " Display Name" @en ;
141
138
rdfs:domain dmlex:EtymonLanguage ;
142
139
rdfs:range xsd:string .
140
+
141
+
142
+ dmlex:EtymonLanguage rdfs:subClassOf dmlex:HasSameAs .
143
+ dmlex:EtymonType rdfs:subClassOf dmlex:HasSameAs .
Original file line number Diff line number Diff line change @@ -926,7 +926,6 @@ dmlex:translation a owl:DatatypeProperty ;
926
926
rdfs:domain dmlex:HasTranslation ;
927
927
rdfs:range xsd:string .
928
928
929
- dmlex:Etymon rdfs:subClassOf dmlex:HasTranslation .
930
929
dmlex:EtymonUnit rdfs:subClassOf dmlex:HasTranslation .
931
930
932
931
dmlex:EtymonUnit a owl:Class ;
@@ -990,3 +989,7 @@ dmlex:displayName a owl:ObjectProperty ;
990
989
rdfs:label " Display Name" @en ;
991
990
rdfs:domain dmlex:EtymonLanguage ;
992
991
rdfs:range xsd:string .
992
+
993
+ dmlex:EtymonLanguage rdfs:subClassOf dmlex:HasSameAs .
994
+ dmlex:EtymonType rdfs:subClassOf dmlex:HasSameAs .
995
+
Original file line number Diff line number Diff line change @@ -642,7 +642,6 @@ It might be possible to re-write them as <assert>s using concatenation of values
642
642
<xs : sequence >
643
643
<xs : element name =" note" minOccurs =" 0" type =" xs:string" />
644
644
<xs : element ref =" etymonUnit" maxOccurs =" unbounded" />
645
- <xs : element name =" translation" minOccurs =" 0" type =" xs:string" />
646
645
</xs : sequence >
647
646
<xs : attribute name =" when" use =" optional" type =" xs:string" />
648
647
<xs : attribute name =" type" use =" optional" type =" xs:string" />
@@ -667,6 +666,7 @@ It might be possible to re-write them as <assert>s using concatenation of values
667
666
<xs : complexType name =" etymonTypeType" >
668
667
<xs : sequence >
669
668
<xs : element name =" description" minOccurs =" 0" type =" nonEmptyString" />
669
+ <xs : element ref =" sameAs" minOccurs =" 0" maxOccurs =" unbounded" />
670
670
</xs : sequence >
671
671
<xs : attribute name =" type" use =" required" type =" nonEmptyString" />
672
672
</xs : complexType >
@@ -676,6 +676,7 @@ It might be possible to re-write them as <assert>s using concatenation of values
676
676
<xs : complexType name =" etymonLanguageType" >
677
677
<xs : sequence >
678
678
<xs : element name =" displayName" minOccurs =" 0" type =" xs:string" />
679
+ <xs : element ref =" sameAs" minOccurs =" 0" maxOccurs =" unbounded" />
679
680
</xs : sequence >
680
681
<xs : attribute name =" langCode" use =" required" type =" xs:language" />
681
682
</xs : complexType >
Original file line number Diff line number Diff line change @@ -527,7 +527,6 @@ It might be possible to re-write them as <assert>s using concatenation of values
527
527
<xs : sequence >
528
528
<xs : element name =" note" minOccurs =" 0" type =" xs:string" />
529
529
<xs : element ref =" etymonUnit" maxOccurs =" unbounded" />
530
- <xs : element name =" translation" minOccurs =" 0" type =" xs:string" />
531
530
</xs : sequence >
532
531
<xs : attribute name =" when" use =" optional" type =" xs:string" />
533
532
<xs : attribute name =" type" use =" optional" type =" xs:string" />
@@ -552,6 +551,7 @@ It might be possible to re-write them as <assert>s using concatenation of values
552
551
<xs : complexType name =" etymonTypeType" >
553
552
<xs : sequence >
554
553
<xs : element name =" description" minOccurs =" 0" type =" nonEmptyString" />
554
+ <xs : element ref =" sameAs" minOccurs =" 0" maxOccurs =" unbounded" />
555
555
</xs : sequence >
556
556
<xs : attribute name =" type" use =" required" type =" nonEmptyString" />
557
557
</xs : complexType >
@@ -561,6 +561,7 @@ It might be possible to re-write them as <assert>s using concatenation of values
561
561
<xs : complexType name =" etymonLanguageType" >
562
562
<xs : sequence >
563
563
<xs : element name =" displayName" minOccurs =" 0" type =" xs:string" />
564
+ <xs : element ref =" sameAs" minOccurs =" 0" maxOccurs =" unbounded" />
564
565
</xs : sequence >
565
566
<xs : attribute name =" langCode" use =" required" type =" xs:language" />
566
567
</xs : complexType >
Original file line number Diff line number Diff line change 29
29
<glossterm >required</glossterm >, array of one or more <literal ><olink
30
30
targetptr =" json_etymonUnit" >etymonUnit</olink ></literal > instances</para >
31
31
</listitem >
32
- <listitem >
33
- <para ><literal >"translation"</literal >
34
- <glossterm >optional</glossterm >, string</para >
35
- </listitem >
36
32
</itemizedlist >
37
33
38
34
</section >
Original file line number Diff line number Diff line change 20
20
<para ><literal >"displayName"</literal >
21
21
<glossterm >optional</glossterm >, string</para >
22
22
</listitem >
23
+ <listitem >
24
+ <para ><literal >"sameAs"</literal >
25
+ <glossterm >optional</glossterm >, array of zero or more strings implementing the
26
+ <olink targetptr =" values_sameAs" >sameAs</olink > object type</para >
27
+ </listitem >
23
28
</itemizedlist >
24
29
25
30
</section >
Original file line number Diff line number Diff line change 20
20
<para ><literal >"description"</literal >
21
21
<glossterm >optional</glossterm >, string</para >
22
22
</listitem >
23
+ <listitem >
24
+ <para ><literal >"sameAs"</literal >
25
+ <glossterm >optional</glossterm >, array of zero or more strings implementing the
26
+ <olink targetptr =" values_sameAs" >sameAs</olink > object type</para >
27
+ </listitem >
23
28
</itemizedlist >
24
29
25
30
</section >
Original file line number Diff line number Diff line change 23
23
<listitem >
24
24
<para ><literal ><olink targetptr =" nvh_etymonUnit" >etymonUnit</olink ></literal > <glossterm >required</glossterm > (one or more)</para >
25
25
</listitem >
26
- <listitem >
27
- <para ><literal >translation</literal > <glossterm >optional</glossterm > (zero or one)</para >
28
- </listitem >
29
26
</itemizedlist >
30
27
31
28
Original file line number Diff line number Diff line change 21
21
<listitem >
22
22
<para ><literal >displayName</literal > <glossterm >optional</glossterm > (zero or one)</para >
23
23
</listitem >
24
+ <listitem >
25
+ <para ><literal ><olink targetptr =" nvh_sameAs" >sameAs</olink ></literal > <glossterm >optional</glossterm > (zero or more)</para >
26
+ </listitem >
24
27
</itemizedlist >
25
28
26
29
Original file line number Diff line number Diff line change 21
21
<listitem >
22
22
<para ><literal >description</literal > <glossterm >optional</glossterm > (zero or one)</para >
23
23
</listitem >
24
+ <listitem >
25
+ <para ><literal ><olink targetptr =" nvh_sameAs" >sameAs</olink ></literal > <glossterm >optional</glossterm > (zero or more)</para >
26
+ </listitem >
24
27
</itemizedlist >
25
28
26
29
Original file line number Diff line number Diff line change 32
32
<listitem >
33
33
<para ><literal >note: nvarchar</literal ></para >
34
34
</listitem >
35
- <listitem >
36
- <para ><literal >translation: nvarchar</literal ></para >
37
- </listitem >
38
35
<listitem >
39
36
<para ><literal >listingOrder: int</literal ></para >
40
37
</listitem >
Original file line number Diff line number Diff line change 28
28
<listitem >
29
29
<para ><literal >dmlex:etymonUnit</literal > REQUIRED (at least 1) reference to <olink targetptr =" rdf_EtymonUnit" >EtymonUnit</olink ></para >
30
30
</listitem >
31
- <listitem >
32
- <para ><literal >dmlex:translation</literal > OPTIONAL (at most 1) of type <literal >http://www.w3.org/2001/XMLSchema#string</literal ></para >
33
- </listitem >
34
31
</itemizedlist >
35
32
36
33
37
- </section >
34
+ </section >
Original file line number Diff line number Diff line change 19
19
<listitem >
20
20
<para ><literal >dmlex:displayName</literal > OPTIONAL (at most 1) of type <literal >http://www.w3.org/2001/XMLSchema#string</literal ></para >
21
21
</listitem >
22
+ <listitem >
23
+ <para ><literal >dmlex:sameAs</literal > OPTIONAL</para >
24
+ </listitem >
22
25
</itemizedlist >
23
26
24
27
25
- </section >
28
+ </section >
Original file line number Diff line number Diff line change 19
19
<listitem >
20
20
<para ><literal >dmlex:type</literal > REQUIRED (exactly 1) of type <literal >http://www.w3.org/2001/XMLSchema#string</literal ></para >
21
21
</listitem >
22
+ <listitem >
23
+ <para ><literal >dmlex:sameAs</literal > OPTIONAL</para >
24
+ </listitem >
22
25
</itemizedlist >
23
26
24
27
25
- </section >
28
+ </section >
Original file line number Diff line number Diff line change 27
27
<listitem >
28
28
<para ><literal ><olink targetptr =" xml_etymonUnit" >< etymonUnit> </olink ></literal > <glossterm >required</glossterm > (one or more)</para >
29
29
</listitem >
30
- <listitem >
31
- <para ><literal >< translation> </literal > <glossterm >optional</glossterm > (zero or one)</para >
32
- </listitem >
33
30
</itemizedlist >
34
31
35
32
Original file line number Diff line number Diff line change 21
21
<listitem >
22
22
<para ><literal >< displayName> </literal > <glossterm >optional</glossterm > (zero or one)</para >
23
23
</listitem >
24
+ <listitem >
25
+ <para ><literal ><olink targetptr =" xml_sameAs" >< sameAs> </olink ></literal > <glossterm >optional</glossterm > (zero or more)</para >
26
+ </listitem >
24
27
</itemizedlist >
25
28
26
29
You can’t perform that action at this time.
0 commit comments