From d31c409a0c2cad99ce1b287261645e59673772dc Mon Sep 17 00:00:00 2001 From: "John P. McCrae" Date: Thu, 26 Nov 2026 11:06:08 +0000 Subject: [PATCH] Fix ranges that point at the grammaticalMeaning property; regenerate morph.ttl After GrammaticalMeaning was renamed GrammaticalMeaningValue (#79), the term reference [=Grammatical Meaning=] resolves to the grammaticalMeaning property, so the ranges of baseConstraint and grammaticalMeaning were that property. They now refer to [=Grammatical Meaning Value=]. morph.ttl is regenerated from the specification; build_ontology.py replaces the non-breaking spaces that Pandoc inserts after abbreviations. Co-Authored-By: Claude Sonnet 5.5 --- build_ontology.py | 3 +++ index.md | 6 ++--- morph.ttl | 67 ++++++++++++++++++++++++++++------------------- 3 files changed, 46 insertions(+), 30 deletions(-) diff --git a/build_ontology.py b/build_ontology.py index 992cd95..be1d990 100644 --- a/build_ontology.py +++ b/build_ontology.py @@ -39,6 +39,9 @@ def convert_turtle(input_data, base_url, custom_namespaces=NAMESPACES): cleaned_value = str(o).strip() # Remove any tags like [=text=] cleaned_value = cleaned_value.replace("[=", "").replace("=]", "") + # Pandoc turns the space after abbreviations such as "e.g." into a + # non-breaking space, which does not belong in the ontology + cleaned_value = cleaned_value.replace("\u00a0", " ") # Recreate the Literal with original datatype/language tag new_o = Literal(cleaned_value, lang=o.language, datatype=o.datatype) cleaned_g.add((s, p, new_o)) diff --git a/index.md b/index.md index da2388e..de5b5ce 100644 --- a/index.md +++ b/index.md @@ -283,7 +283,7 @@ The grammatical meaning property assigns a grammatical meaning to a m
ontolex:Form OR [=Morph=] OR [=Rule=] -[=Grammatical Meaning=] +[=Grammatical Meaning Value=]
@@ -306,7 +306,7 @@ For instance, we can update the previous example of the English plural form *cat In this case, we create a blank node for the grammatical meaning that corresponds to a single feature in Lexinfo. We could also define instances for common morphological meanings and reuse these objects. -For example, in the Latin form *lupus*, the nominative case and singular number are expressed cumulatively by the affix *-us*. This is a common combination; therefore, an instance of [=Grammatical Meaning=] is introduced for that feature bundle. This time we use Lexinfo vocabulary alongside the [Paralex vocabulary](https://www.paralex-standard.org/) — even though Lexinfo is the preferred way to represent grammatical features in OntoLex, there is no restriction on this. +For example, in the Latin form *lupus*, the nominative case and singular number are expressed cumulatively by the affix *-us*. This is a common combination; therefore, an instance of [=Grammatical Meaning Value=] is introduced for that feature bundle. This time we use Lexinfo vocabulary alongside the [Paralex vocabulary](https://www.paralex-standard.org/) — even though Lexinfo is the preferred way to represent grammatical features in OntoLex, there is no restriction on this.