From e17dd56f366e6ca6b5f1afce4603949796e23570 Mon Sep 17 00:00:00 2001 From: "John P. McCrae" Date: Thu, 5 Sep 2024 11:42:36 +0100 Subject: [PATCH] Change DefinitionType to DefinitionTypeTag Fixes #145 --- dmlex-v1.0/specification/schemas/RDF/dmlex-core.ttl | 2 +- dmlex-v1.0/specification/schemas/RDF/dmlex.shacl | 2 +- dmlex-v1.0/specification/schemas/RDF/dmlex.ttl | 2 +- .../specification/serializations/RDF/elements/Definition.xml | 4 ++-- .../specification/serializations/RDF/gen_docbook_from_rdf.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dmlex-v1.0/specification/schemas/RDF/dmlex-core.ttl b/dmlex-v1.0/specification/schemas/RDF/dmlex-core.ttl index f68df1c8..ac32a709 100644 --- a/dmlex-v1.0/specification/schemas/RDF/dmlex-core.ttl +++ b/dmlex-v1.0/specification/schemas/RDF/dmlex-core.ttl @@ -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 ; diff --git a/dmlex-v1.0/specification/schemas/RDF/dmlex.shacl b/dmlex-v1.0/specification/schemas/RDF/dmlex.shacl index 6a07bcd5..f01f4565 100644 --- a/dmlex-v1.0/specification/schemas/RDF/dmlex.shacl +++ b/dmlex-v1.0/specification/schemas/RDF/dmlex.shacl @@ -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 ] ; diff --git a/dmlex-v1.0/specification/schemas/RDF/dmlex.ttl b/dmlex-v1.0/specification/schemas/RDF/dmlex.ttl index 5abcb5ce..10dc4b1c 100644 --- a/dmlex-v1.0/specification/schemas/RDF/dmlex.ttl +++ b/dmlex-v1.0/specification/schemas/RDF/dmlex.ttl @@ -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 ; diff --git a/dmlex-v1.0/specification/serializations/RDF/elements/Definition.xml b/dmlex-v1.0/specification/serializations/RDF/elements/Definition.xml index e4b1c1be..61d79806 100644 --- a/dmlex-v1.0/specification/serializations/RDF/elements/Definition.xml +++ b/dmlex-v1.0/specification/serializations/RDF/elements/Definition.xml @@ -20,7 +20,7 @@ dmlex:text REQUIRED (exactly 1) of type http://www.w3.org/2000/01/rdf-schema#Literal - dmlex:definitionType OPTIONAL (at most 1) reference to DefinitionType + dmlex:definitionType OPTIONAL (at most 1) reference to DefinitionTypeTag dmlex:headwordMarker OPTIONAL reference to HeadwordMarker @@ -31,4 +31,4 @@ - \ No newline at end of file + diff --git a/dmlex-v1.0/specification/serializations/RDF/gen_docbook_from_rdf.py b/dmlex-v1.0/specification/serializations/RDF/gen_docbook_from_rdf.py index 1ba120d9..f363e0e3 100644 --- a/dmlex-v1.0/specification/serializations/RDF/gen_docbook_from_rdf.py +++ b/dmlex-v1.0/specification/serializations/RDF/gen_docbook_from_rdf.py @@ -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