Skip to content

Commit

Permalink
Merge pull request #37 from jmccrae/master
Browse files Browse the repository at this point in the history
Add RDF serialization description
  • Loading branch information
DavidFatDavidF authored Aug 28, 2023
2 parents e031b97 + 0e6fb71 commit 4548716
Show file tree
Hide file tree
Showing 43 changed files with 2,182 additions and 598 deletions.
8 changes: 8 additions & 0 deletions dmlex-v1.0/specification/dmlex.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@
</affiliation>
<email>[email protected]</email>
</editor>
<editor>
<firstname>John</firstname>
<surname>McCrae</surname>
<affiliation>
<orgname><ulink url="https://www.universityofgalway.ie/">University of Galway</ulink></orgname>
<address format="linespecific"><email>[email protected]</email></address>
</affiliation>
</editor>
</authorgroup>
<pubdate>&pubdate;</pubdate>
<copyright>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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="rdf_CollocateMarker">
<title>RDF element: <literal>dmlex:CollocateMarker</literal></title>

<para>DEFINITION MISSING</para>


<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:label</literal> reference to <olink targetptr="rdf_Label">Label</olink></para>
</listitem>
</itemizedlist>


</section>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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="rdf_Definition">
<title>RDF element: <literal>dmlex:Definition</literal></title>

<para>Represents one of possibly several definitions of a sense.</para>


<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:listingOrder</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2001/XMLSchema#nonNegativeInteger</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:text</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:definitionType</literal> OPTIONAL (at most 1) reference to <olink targetptr="rdf_DefinitionType">DefinitionType</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:headwordMarker</literal> reference to <olink targetptr="rdf_HeadwordMarker">HeadwordMarker</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:collocateMarker</literal> reference to <olink targetptr="rdf_CollocateMarker">CollocateMarker</olink></para>
</listitem>
</itemizedlist>


</section>
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="rdf_DefinitionTypeTag">
<title>RDF element: <literal>dmlex:DefinitionTypeTag</literal></title>

<para>Represents one (of many) possible values for definitionType of definition.</para>


<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:tag</literal> REQUIRED (exactly 1)</para>
</listitem>
<listitem>
<para><literal>dmlex:description</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
</itemizedlist>


</section>
52 changes: 52 additions & 0 deletions dmlex-v1.0/specification/serializations/RDF/elements/Entry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?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="rdf_Entry">
<title>RDF element: <literal>dmlex:Entry</literal></title>

<para>Represents a dictionary entry</para>

<itemizedlist>
<title>Superclasses</title>
<listitem>
<para><literal>http://www.w3.org/ns/lemon/ontolex#LexicalEntry</literal></para>
</listitem>
</itemizedlist>

<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:headword</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:homographNumber</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#nonNegativeInteger</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:sense</literal> reference to <olink targetptr="rdf_Sense">Sense</olink> (subproperty of <literal>http://www.w3.org/ns/lemon/ontolex#evokes</literal>)</para>
</listitem>
<listitem>
<para><literal>dmlex:etymology</literal> reference to <olink targetptr="rdf_Etymology">Etymology</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:partOfSpeech</literal> reference to <olink targetptr="rdf_PartOfSpeech">PartOfSpeech</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:label</literal> reference to <olink targetptr="rdf_Label">Label</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:pronunciation</literal> reference to <olink targetptr="rdf_Pronunciation">Pronunciation</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:inflectedForm</literal> reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:placeholderMarker</literal> reference to <olink targetptr="rdf_PlaceholderMarker">PlaceholderMarker</olink></para>
</listitem>
</itemizedlist>


</section>
28 changes: 28 additions & 0 deletions dmlex-v1.0/specification/serializations/RDF/elements/Etymology.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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="rdf_Etymology">
<title>RDF element: <literal>dmlex:Etymology</literal></title>

<para>Represents a chain of historical derivations of a word.</para>


<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:listingOrder</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2001/XMLSchema#nonNegativeInteger</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:description</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:etymon</literal> reference to <olink targetptr="rdf_Etymon">Etymon</olink></para>
</listitem>
</itemizedlist>


</section>
34 changes: 34 additions & 0 deletions dmlex-v1.0/specification/serializations/RDF/elements/Etymon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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="rdf_Etymon">
<title>RDF element: <literal>dmlex:Etymon</literal></title>

<para>Represents one stage (of possibly several) in the etymological history of the headword.</para>


<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:type</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#string</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:when</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#string</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:note</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#string</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:etymonUnit</literal> REQUIRED (at least 1) reference to <olink targetptr="rdf_EtymonUnit">EtymonUnit</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:translation</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#string</literal></para>
</listitem>
</itemizedlist>


</section>
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="rdf_EtymonLanguage">
<title>RDF element: <literal>dmlex:EtymonLanguage</literal></title>

<para>Represents one of several allowed values for the language property of etymonUnit objects.</para>


<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:langCode</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2001/XMLSchema#language</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:displayName</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#string</literal></para>
</listitem>
</itemizedlist>


</section>
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="rdf_EtymonType">
<title>RDF element: <literal>dmlex:EtymonType</literal></title>

<para>Represents one of possible values for the type of etymon.</para>


<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:description</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:type</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2001/XMLSchema#string</literal></para>
</listitem>
</itemizedlist>


</section>
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?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="rdf_EtymonUnit">
<title>RDF element: <literal>dmlex:EtymonUnit</literal></title>

<para>Represents a form (typically a word) which is the etymological origin of the headword, or another etymologically related form</para>


<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:listingOrder</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2001/XMLSchema#nonNegativeInteger</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:language</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2001/XMLSchema#language</literal> (subproperty of <literal>http://www.w3.org/ns/lemon/lime#language</literal>)</para>
</listitem>
<listitem>
<para><literal>dmlex:partOfSpeech</literal> reference to <olink targetptr="rdf_PartOfSpeech">PartOfSpeech</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:text</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:translation</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#string</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:reconstructed</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#boolean</literal></para>
</listitem>
</itemizedlist>


</section>
46 changes: 46 additions & 0 deletions dmlex-v1.0/specification/serializations/RDF/elements/Example.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?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="rdf_Example">
<title>RDF element: <literal>dmlex:Example</literal></title>

<para>Represents a sentence or other text fragment which illustrates the headword being used.</para>


<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:listingOrder</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2001/XMLSchema#nonNegativeInteger</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:label</literal> reference to <olink targetptr="rdf_Label">Label</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:text</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:soundFile</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#anyURI</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:sourceIdentity</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:sourceElaboration</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:exampleTranslation</literal> reference to <olink targetptr="rdf_ExampleTranslation">ExampleTranslation</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:headwordMarker</literal> reference to <olink targetptr="rdf_HeadwordMarker">HeadwordMarker</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:collocateMarker</literal> reference to <olink targetptr="rdf_CollocateMarker">CollocateMarker</olink></para>
</listitem>
</itemizedlist>


</section>
Loading

0 comments on commit 4548716

Please sign in to comment.