Changes

Jump to navigation Jump to search
594 bytes added ,  10:58, 26 August 2018
Line 77: Line 77:     
=== Classes ===
 
=== Classes ===
 +
The classes define the Ingredients, Languages and other concepts used in the ontology.
    
==== Languages ====
 
==== Languages ====
For each language a class is defined. The name of the class, ''English Language'' for instance, is in english and makes clear the what it is about. The annotation data for the language can be taken from lingvoj by hand. Each language has an equivalent to entry, which relates the language with the corresponding languageCode. This entry has the format: ''hasName only xsd:string[pattern "languageCode:.*"]''. Each language is a sibling of the superclass language.
+
For each language a separate class can be defined. The name of the class, ''English Language'' for instance, is in english and makes clear what the class is about. The annotation data for the language can be taken from [http://linkedvocabs.org/lingvoj/ Lingvoj] by hand. [http://linkedvocabs.org/lingvoj/ Lingvoj] has each language defined as a separate individual. We want to assign each ingredient individual to a specific language class.  Each language is a sibling of the superclass '''Language'''.
 +
 
 +
Each language class has a data property, which is necessary and sufficient condition that determines its membership. This data property describes how the language is encoded in an ingredient individual. This encoding consists of the languageCode that corresponds to the language. with the corresponding. For example for an ingredient individual in english:
 +
* DataPropertyAssertion(  :hasName :Butter xsd:string[pattern "en:.*"])
 +
This uses a regex-string for decoding,
    
==== Ingredient ====
 
==== Ingredient ====
3,393

edits

Navigation menu