Main elements

The lemon core module is intended to have a similar expressive power to that of SKOS (Miles and Bechhofer, 2009), while providing distinctions that allow for more powerful linguistic modeling. For example the simplest version of a lemon entry is as follows:1

@base <http://www.example.org/lexicon>
@prefix ontology: <http://www.example.org/ontology#>
@prefix lemon: <http://www.monnetproject.eu/lemon#>

:myLexicon a lemon:Lexicon ; 
   lemon:language "en" ;
   lemon:entry :animal .
   
:animal a lemon:LexicalEntry ;
   lemon:form [ lemon:writtenRep "animal"@en ] ;
   lemon:sense [ lemon:reference ontology:animal ] .
Example 1

Please note, for the course of this book we will use Turtle notation2 as it is the quickest and most legible way to write lemon (and RDF in general). Furthermore we will mostly omit the type declarations (e.g., myLexicon is a lemon:Lexicon), as they are generally not necessary and can in all cases be inferred from the RDF Schema document. Also we shall assume in all cases that the prefixes lemon, ontology and the base prefix are as in the first example. For the sake of completion we will present the above example in RDF/XML.

<?xml version="1.0"?>

<rdf:RDF xmlns="http://www.example.org/lexicon#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:lemon="http://www.monnetproject.eu/lemon#">
     
  <lemon:Lexicon rdf:about="myLexicon" lemon:language="en">
    <lemon:entry>
      <lemon:LexicalEntry rdf:about="animal">
        <lemon:form rdf:parseType="Resource">
            <lemon:writtenRep xml:lang="en">animal</lemon:writtenRep>
        </lemon:form>
        <lemon:sense rdf:parseType="Resource">
        	<lemon:reference rdf:resource="http://www.example.org/ontology#animal"/>
        </lemon:sense>
      </lemon:LexicalEntry>
    </lemon:entry>
  </lemon:Lexicon>
</rdf:RDF>

Image core-ex1

Example 2

This example defines the following entities

  1. Lexicon: This is the lexicon containing all elements in the lexicon. This approximately corresponds to a SKOS scheme. Each lexicon is marked with a language in the form of an ISO 639 tag.
  2. Lexical Entry: This represents the given lexical entry.
  3. Lexical Sense: Represents the relationship between the lexical entry and the ontology entity.
  4. Reference: The reference to the resource that can be described by this lexical entry. In the examples above the reference is in a separate ontology, with its own name space.
  5. Form: A surface realisation of a given lexical entry, typically a written representation.

A second example showing two lexical entries referring to the same ontology entity is as follows:

:myLexicon lemon:entry :animal , :creature ;
  lemon:language "en" .

:animal lemon:form [ lemon:writtenRep "animal"@en ] ;
   lemon:sense [ lemon:reference ontology:animal ] .

:creature lemon:form [ lemon:writtenRep "creature"@en ] ;
   lemon:sense [ lemon:reference ontology:animal ] .
Example 3

This indicates that “animal” and “creature” can refer to the same ontology concept and as such they can be considered to be “synonymous” in a sense. The semantics of the lemon model are further discussed in section [*].

John McCrae 2012-07-31