Skip to content

Commit

Permalink
Merge pull request #114 from jmccrae/sameAs
Browse files Browse the repository at this point in the history
Implement change from owl:sameAs -> dmlex:sameAs
  • Loading branch information
michmech authored Apr 18, 2024
2 parents 8c94e89 + 8c3ff47 commit 772b5f2
Show file tree
Hide file tree
Showing 24 changed files with 77 additions and 26 deletions.
4 changes: 2 additions & 2 deletions dmlex-v1.0/specification/examples/examples/source/6.rdf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ ex:lexicon a dmlex:LexicographicResource;
dmlex:partOfSpeechTag [ a dmlex:PartOfSpeechTag;
dmlex:tag "n-masc";
dmlex:description "masculine noun";
owl:sameAs
dmlex:sameAs
<http://www.lexinfo.net/ontology/3.0/lexinfo#noun>,
<http://www.lexinfo.net/ontology/3.0/lexinfo#masculine> ],
[ a dmlex:PartOfSpeechTag;
owl:sameAs
dmlex:sameAs
<http://www.lexinfo.net/ontology/3.0/lexinfo#feminine>,
<http://www.lexinfo.net/ontology/3.0/lexinfo#noun>;
dmlex:tag "n-fem";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<itemizedlist>
<title>Can additionally be a property of</title>
<listitem>
<para><literal><olink targetptr="linking_relationTypeTag">relationTypeTag</olink></literal></para>
<para><literal><olink targetptr="linking_relationTypeTag">relationType</olink></literal></para>
</listitem>
<listitem>
<para><literal><olink targetptr="linking_memberRoletag">memberRoleTag</olink></literal></para>
<para><literal><olink targetptr="linking_memberRoletag">memberType</olink></literal></para>
</listitem>
</itemizedlist>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
dmlex:min 0 ;
dmlex:max 0 ;
dmlex:hint "..." ;
owl:sameAs ... ] .
dmlex:sameAs ... ] .
</programlisting>
</example>
<example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
dmlex:type "..." ;
dmlex:scopeRestriction "..." ;
dmlex:memberType ... ;
owl:sameAs ... ] .
dmlex:sameAs ... ] .
</programlisting>
</example>
<example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
a dmlex:DefinitionTypeTag ;
dmlex:tag "..." ;
dmlex:description "..." ;
owl:sameAs ... ] .
dmlex:sameAs ... ] .
</programlisting>
</example>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
dmlex:tag "..." ;
dmlex:description "..." ;
dmlex:for "..." ;
owl:sameAs ... ] .
dmlex:sameAs ... ] .
</programlisting>
</example>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
dmlex:description "..." ;
dmlex:typeTag "..." ;
dmlex:for "..." ;
owl:sameAs ... ] .
dmlex:sameAs ... ] .
</programlisting>
</example>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
a dmlex:LabelTypeTag ;
dmlex:tag "..." ;
dmlex:description "..." ;
owl:sameAs ... ].
dmlex:sameAs ... ].
</programlisting>
</example>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
dmlex:tag "..." ;
dmlex:description "..." ;
dmlex:for "..." ;
owl:sameAs ... ] .
dmlex:sameAs ... ] .
</programlisting>
</example>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
a dmlex:SourceIdentityTag ;
dmlex:tag "..." ;
dmlex:description "..." ;
owl:sameAs ... ] .
dmlex:sameAs ... ] .
</programlisting>
</example>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<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:sameAs</literal> OPTIONAL</para>
</listitem>
</itemizedlist>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<para><literal>dmlex:pronunciation</literal> OPTIONAL reference to <olink targetptr="rdf_Pronunciation">Pronunciation</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink></para>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink> (subproperty of <literal>http://www.w3.org/ns/lemon/ontolex#otherForm</literal>)</para>
</listitem>
<listitem>
<para><literal>dmlex:placeholderMarker</literal> OPTIONAL reference to <olink targetptr="rdf_PlaceholderMarker">PlaceholderMarker</olink></para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<para><literal>dmlex:pronunciation</literal> OPTIONAL reference to <olink targetptr="rdf_Pronunciation">Pronunciation</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink></para>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink> (subproperty of <literal>http://www.w3.org/ns/lemon/ontolex#otherForm</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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink></para>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink> (subproperty of <literal>http://www.w3.org/ns/lemon/ontolex#otherForm</literal>)</para>
</listitem>
<listitem>
<para><literal>dmlex:tag</literal> REQUIRED (exactly 1)</para>
Expand All @@ -23,7 +23,10 @@
<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:for</literal> OPTIONAL of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
<para><literal>dmlex:forPartOfSpeech</literal> OPTIONAL of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:sameAs</literal> OPTIONAL</para>
</listitem>
</itemizedlist>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink></para>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink> (subproperty of <literal>http://www.w3.org/ns/lemon/ontolex#otherForm</literal>)</para>
</listitem>
<listitem>
<para><literal>dmlex:tag</literal> REQUIRED (exactly 1)</para>
Expand All @@ -23,7 +23,13 @@
<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:for</literal> OPTIONAL of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
<para><literal>dmlex:forPartOfSpeech</literal> OPTIONAL of type <literal>http://www.w3.org/2000/01/rdf-schema#Literal</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:forCollocates</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#boolean</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:sameAs</literal> OPTIONAL</para>
</listitem>
</itemizedlist>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<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:sameAs</literal> OPTIONAL</para>
</listitem>
<listitem>
<para><literal>dmlex:type</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2001/XMLSchema#string</literal></para>
</listitem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink></para>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink> (subproperty of <literal>http://www.w3.org/ns/lemon/ontolex#otherForm</literal>)</para>
</listitem>
<listitem>
<para><literal>dmlex:tag</literal> REQUIRED (exactly 1)</para>
Expand All @@ -23,7 +23,10 @@
<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:for</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#boolean</literal></para>
<para><literal>dmlex:forEtymology</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#boolean</literal></para>
</listitem>
<listitem>
<para><literal>dmlex:sameAs</literal> OPTIONAL</para>
</listitem>
</itemizedlist>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<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:sameAs</literal> OPTIONAL</para>
</listitem>
<listitem>
<para><literal>dmlex:type</literal> REQUIRED (exactly 1) of type <literal>http://www.w3.org/2001/XMLSchema#string</literal></para>
</listitem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<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:sameAs</literal> OPTIONAL</para>
</listitem>
</itemizedlist>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@
<itemizedlist>
<title>Properties</title>
<listitem>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink></para>
<para><literal>dmlex:inflectedForm</literal> OPTIONAL reference to <olink targetptr="rdf_InflectedForm">InflectedForm</olink> (subproperty of <literal>http://www.w3.org/ns/lemon/ontolex#otherForm</literal>)</para>
</listitem>
<listitem>
<para><literal>dmlex:tag</literal> REQUIRED (exactly 1)</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:for</literal> OPTIONAL (at most 1) of type <literal>http://www.w3.org/2001/XMLSchema#boolean</literal></para>
</listitem>
</itemizedlist>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,14 @@ dmlex:TranscriptionSchemeTag a owl:Class ;
a owl:Restriction ;
owl:onProperty dmlex:forTranslations ;
owl:maxCardinality 1 ] .

dmlex:sameAs a owl:ObjectProperty ;
rdfs:label "Same As"@en ;
rdfs:domain dmlex:HasSameAs .

dmlex:DefinitionTypeTag rdfs:subClassOf dmlex:HasSameAs .
dmlex:InflectedFormTag rdfs:subClassOf dmlex:HasSameAs .
dmlex:LabelTag rdfs:subClassOf dmlex:HasSameAs .
dmlex:PartOfSpeechTag rdfs:subClassOf dmlex:HasSameAs .
dmlex:SourceIdentityTag rdfs:subClassOf dmlex:HasSameAs .

Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ dmlex:HeadwordTranslation rdfs:subClassOf dmlex:HasPronunciation .
dmlex:inflectedForm a owl:ObjectProperty ;
rdfs:label "Inflected Form"@en ;
rdfs:domain dmlex:HasInflectedForm ;
rdfs:range dmlex:InflectedForm .
rdfs:range dmlex:InflectedForm ;
rdfs:subPropertyOf ontolex:otherForm .

dmlex:Entry rdfs:subClassOf dmlex:HasInflectedForm .
dmlex:HeadwordTranslation rdfs:subClassOf dmlex:HasInflectedForm .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,7 @@ dmlex:action a owl:DatatypeProperty ;
rdfs:domain dmlex:MemberType ;
rdfs:range xsd:string .

dmlex:MemberType rdfs:subClassOf dmlex:HasSameAs .
dmlex:RelationType rdfs:subClassOf dmlex:HasSameAs .
dmlex:MemberType rdfs:subClassOf dmlex:HasSameAs .

17 changes: 16 additions & 1 deletion dmlex-v1.0/specification/serializations/RDF/ontology/dmlex.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ dmlex:HeadwordTranslation rdfs:subClassOf dmlex:HasPronunciation .
dmlex:inflectedForm a owl:ObjectProperty ;
rdfs:label "Inflected Form"@en ;
rdfs:domain dmlex:HasInflectedForm ;
rdfs:range dmlex:InflectedForm .
rdfs:range dmlex:InflectedForm ;
rdfs:subPropertyOf ontolex:otherForm .

dmlex:Entry rdfs:subClassOf dmlex:HasInflectedForm .
dmlex:HeadwordTranslation rdfs:subClassOf dmlex:HasInflectedForm .
Expand Down Expand Up @@ -622,6 +623,16 @@ dmlex:TranscriptionSchemeTag a owl:Class ;
owl:onProperty dmlex:forTranslations ;
owl:maxCardinality 1 ] .

dmlex:sameAs a owl:ObjectProperty ;
rdfs:label "Same As"@en ;
rdfs:domain dmlex:HasSameAs .

dmlex:DefinitionTypeTag rdfs:subClassOf dmlex:HasSameAs .
dmlex:InflectedFormTag rdfs:subClassOf dmlex:HasSameAs .
dmlex:LabelTag rdfs:subClassOf dmlex:HasSameAs .
dmlex:PartOfSpeechTag rdfs:subClassOf dmlex:HasSameAs .
dmlex:SourceIdentityTag rdfs:subClassOf dmlex:HasSameAs .

################################################################################
## Linking Module

Expand Down Expand Up @@ -762,6 +773,10 @@ dmlex:action a owl:DatatypeProperty ;
rdfs:domain dmlex:MemberType ;
rdfs:range xsd:string .

dmlex:MemberType rdfs:subClassOf dmlex:HasSameAs .
dmlex:RelationType rdfs:subClassOf dmlex:HasSameAs .
dmlex:MemberType rdfs:subClassOf dmlex:HasSameAs .

################################################################################
## Annotation Module

Expand Down

0 comments on commit 772b5f2

Please sign in to comment.