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.