-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from michmech/master
JSON serialization
- Loading branch information
Showing
36 changed files
with
1,198 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
dmlex-v1.0/specification/serializations/JSON/classes/collocateMarker.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.docbook.org/xml/4.5/docbookx.dtd" [ | ||
<!ENTITY % xinclude SYSTEM "../../../docbook/xinclude.mod" > | ||
%xinclude; | ||
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED" > | ||
]> | ||
<section id="json_collocateMarker"> | ||
<title>Class: <literal>collocateMarker</literal></title> | ||
<para>Implements the <olink targetptr="annotation_collocateMarker">collocateMarker</olink> | ||
object type from the Annotation Module.</para> | ||
|
||
<itemizedlist> | ||
<title>Members</title> | ||
<listitem> | ||
<para><literal>"startIndex"</literal> | ||
<glossterm>required</glossterm>, number</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"endIndex"</literal> | ||
<glossterm>required</glossterm>, number</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"id"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"lemma"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"labels"</literal> | ||
<glossterm>optional</glossterm>, array of zero or more strings implementing the | ||
<olink targetptr="core_label">label</olink> object type</para> | ||
</listitem> | ||
</itemizedlist> | ||
|
||
</section> |
38 changes: 38 additions & 0 deletions
38
dmlex-v1.0/specification/serializations/JSON/classes/definition.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.docbook.org/xml/4.5/docbookx.dtd" [ | ||
<!ENTITY % xinclude SYSTEM "../../../docbook/xinclude.mod" > | ||
%xinclude; | ||
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED" > | ||
]> | ||
<section id="json_definition"> | ||
<title>Class: <literal>definition</literal></title> | ||
<para>Implements the <olink targetptr="core_definition">definition</olink> object type.</para> | ||
|
||
<itemizedlist> | ||
<title>Members</title> | ||
<listitem> | ||
<para><literal>"definitionType"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"text"</literal> | ||
<glossterm>required</glossterm>, string</para> | ||
</listitem> | ||
</itemizedlist> | ||
|
||
<itemizedlist> | ||
<title>Members if implementing the Annotation Module</title> | ||
<listitem> | ||
<para><literal>"headwordMarkers"</literal> | ||
<glossterm>optional</glossterm>, array of zero or more <literal><olink | ||
targetptr="json_headwordMarkers">headwordMarker</olink></literal> instances</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"collocateMarkers"</literal> | ||
<glossterm>optional</glossterm>, array of zero or more <literal><olink | ||
targetptr="json_collocateMarkers">collocateMarker</olink></literal> instances</para> | ||
</listitem> | ||
</itemizedlist> | ||
|
||
</section> |
30 changes: 30 additions & 0 deletions
30
dmlex-v1.0/specification/serializations/JSON/classes/definitionTypeTag.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.docbook.org/xml/4.5/docbookx.dtd" [ | ||
<!ENTITY % xinclude SYSTEM "../../../docbook/xinclude.mod" > | ||
%xinclude; | ||
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED" > | ||
]> | ||
<section id="json_definitionTypeTag"> | ||
<title>Class: <literal>definitionTypeTag</literal></title> | ||
<para>Implements the <olink targetptr="values_definitionTypeTag">definitionTypeTag</olink> | ||
object type from the Controlled Values Module.</para> | ||
|
||
<itemizedlist> | ||
<title>Members</title> | ||
<listitem> | ||
<para><literal>"tag"</literal> | ||
<glossterm>required</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"description"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"sameAs"</literal> | ||
<glossterm>optional</glossterm>, array of zero or more strings implementing the | ||
<olink targetptr="values_sameAs">sameAs</olink> object type</para> | ||
</listitem> | ||
</itemizedlist> | ||
|
||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
dmlex-v1.0/specification/serializations/JSON/classes/etymology.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.docbook.org/xml/4.5/docbookx.dtd" [ | ||
<!ENTITY % xinclude SYSTEM "../../../docbook/xinclude.mod" > | ||
%xinclude; | ||
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED" > | ||
]> | ||
<section id="json_etymology"> | ||
<title>Class: <literal>etymology</literal></title> | ||
<para>Implements the <olink targetptr="etymology_etymology">etymology</olink> object type | ||
from the Etymology Module.</para> | ||
|
||
<itemizedlist> | ||
<title>Members</title> | ||
<listitem> | ||
<para><literal>"description"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"etymons"</literal> | ||
<glossterm>optional</glossterm>, array of zero or more <literal><olink | ||
targetptr="json_etymon">etymon</olink></literal> instances</para> | ||
</listitem> | ||
</itemizedlist> | ||
|
||
</section> |
38 changes: 38 additions & 0 deletions
38
dmlex-v1.0/specification/serializations/JSON/classes/etymon.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.docbook.org/xml/4.5/docbookx.dtd" [ | ||
<!ENTITY % xinclude SYSTEM "../../../docbook/xinclude.mod" > | ||
%xinclude; | ||
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED" > | ||
]> | ||
<section id="json_etymon"> | ||
<title>Class: <literal>etymon</literal></title> | ||
<para>Implements the <olink targetptr="etymology_etymon">etymon</olink> object type | ||
from the Etymology Module.</para> | ||
|
||
<itemizedlist> | ||
<title>Members</title> | ||
<listitem> | ||
<para><literal>"when"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"type"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"note"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"etymonUnits"</literal> | ||
<glossterm>required</glossterm>, array of one or more <literal><olink | ||
targetptr="json_etymonUnit">etymonUnit</olink></literal> instances</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"translation"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
</itemizedlist> | ||
|
||
</section> |
25 changes: 25 additions & 0 deletions
25
dmlex-v1.0/specification/serializations/JSON/classes/etymonLanguage.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.docbook.org/xml/4.5/docbookx.dtd" [ | ||
<!ENTITY % xinclude SYSTEM "../../../docbook/xinclude.mod" > | ||
%xinclude; | ||
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED" > | ||
]> | ||
<section id="json_etymonLanguage"> | ||
<title>Class: <literal>etymonLanguage</literal></title> | ||
<para>Implements the <olink targetptr="etymology_etymonLanguage">etymonLanguage</olink> object type | ||
from the Etymology Module.</para> | ||
|
||
<itemizedlist> | ||
<title>Members</title> | ||
<listitem> | ||
<para><literal>"langCode"</literal> | ||
<glossterm>required</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"displayName"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
</itemizedlist> | ||
|
||
</section> |
25 changes: 25 additions & 0 deletions
25
dmlex-v1.0/specification/serializations/JSON/classes/etymonType.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.docbook.org/xml/4.5/docbookx.dtd" [ | ||
<!ENTITY % xinclude SYSTEM "../../../docbook/xinclude.mod" > | ||
%xinclude; | ||
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED" > | ||
]> | ||
<section id="json_etymonType"> | ||
<title>Class: <literal>etymonType</literal></title> | ||
<para>Implements the <olink targetptr="etymology_etymonType">etymonType</olink> object type | ||
from the Etymology Module.</para> | ||
|
||
<itemizedlist> | ||
<title>Members</title> | ||
<listitem> | ||
<para><literal>"type"</literal> | ||
<glossterm>required</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"description"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
</itemizedlist> | ||
|
||
</section> |
38 changes: 38 additions & 0 deletions
38
dmlex-v1.0/specification/serializations/JSON/classes/etymonUnit.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.docbook.org/xml/4.5/docbookx.dtd" [ | ||
<!ENTITY % xinclude SYSTEM "../../../docbook/xinclude.mod" > | ||
%xinclude; | ||
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED" > | ||
]> | ||
<section id="json_etymonUnit"> | ||
<title>Class: <literal>etymonUnit</literal></title> | ||
<para>Implements the <olink targetptr="etymology_etymonUnit">etymonUnit</olink> object type | ||
from the Etymology Module.</para> | ||
|
||
<itemizedlist> | ||
<title>Members</title> | ||
<listitem> | ||
<para><literal>"language"</literal> | ||
<glossterm>required</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"reconstructed"</literal> | ||
<glossterm>optional</glossterm>, boolean</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"text"</literal> | ||
<glossterm>required</glossterm>, string</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"partsOfSpeech"</literal> | ||
<glossterm>optional</glossterm>, array of zero or more strings | ||
implementing the <olink targetptr="core_partOfSpeech">partOfSpeech</olink> object type</para> | ||
</listitem> | ||
<listitem> | ||
<para><literal>"translation"</literal> | ||
<glossterm>optional</glossterm>, string</para> | ||
</listitem> | ||
</itemizedlist> | ||
|
||
</section> |
Oops, something went wrong.