Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change DefinitionType to DefinitionTypeTag #146

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dmlex-v1.0/specification/schemas/RDF/dmlex-core.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ dmlex:Definition a owl:Class ;
dmlex:definitionType a owl:ObjectProperty ;
rdfs:label "Definition Type"@en ;
rdfs:domain dmlex:Definition ;
rdfs:range dmlex:DefinitionType .
rdfs:range dmlex:DefinitionTypeTag .

dmlex:Label a owl:Class ;
rdfs:comment "Represents a restriction on its parent such as temporal (old-fashioned, neologism), regional (dialect), register (formal, colloquial), domain (medicine, politics) or grammar (singular-only)."@en ;
Expand Down
2 changes: 1 addition & 1 deletion dmlex-v1.0/specification/schemas/RDF/dmlex.shacl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
sh:path dmlex:definitionType ;
sh:minCount 0 ;
sh:maxCount 1 ;
sh:class dmlex:DefinitionType ] ;
sh:class dmlex:DefinitionTypeTag ] ;
sh:property [
sh:path dmlex:headwordMarker ;
sh:class dmlex:HeadwordMarker ] ;
Expand Down
2 changes: 1 addition & 1 deletion dmlex-v1.0/specification/schemas/RDF/dmlex.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ dmlex:Definition a owl:Class ;
dmlex:definitionType a owl:ObjectProperty ;
rdfs:label "Definition Type"@en ;
rdfs:domain dmlex:Definition ;
rdfs:range dmlex:DefinitionType .
rdfs:range dmlex:DefinitionTypeTag .

dmlex:Label a owl:Class ;
rdfs:comment "Represents a restriction on its parent such as temporal (old-fashioned, neologism), regional (dialect), register (formal, colloquial), domain (medicine, politics) or grammar (singular-only)."@en ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<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>
<para><literal>dmlex:definitionType</literal> OPTIONAL (at most 1) reference to <olink targetptr="rdf_DefinitionTypeTag">DefinitionTypeTag</olink></para>
</listitem>
<listitem>
<para><literal>dmlex:headwordMarker</literal> OPTIONAL reference to <olink targetptr="rdf_HeadwordMarker">HeadwordMarker</olink></para>
Expand All @@ -31,4 +31,4 @@
</itemizedlist>


</section>
</section>
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def describe_property(g, property, file, restrictions):

def parse_rdf():
g = rdflib.Graph()
g.parse("ontology/dmlex.ttl", format="turtle")
g.parse("../../schemas/RDF/dmlex.ttl", format="turtle")

props = defaultdict(list)
# First scan for domains
Expand Down
Loading