Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 923 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 923 Bytes

Lemon Mustache grammar generation

This is a framework for generating grammars from lemon lexica. The program consists of the following components:

  • main: The converter
  • web: The web interface to the converter

The converter requires the creation of two external files:

SPARQL Extractor

SPARQL files consist of a file containing queries of the form

id <<<
    SELECT ?x WHERE {
       ?x a owl:Class .
    }
>>>

The form of the query is standard SPARQL

Mustache Generation

Generation is performed using Mustache templates

The matches to a given query can be extracted using {{#id}} and the query variables are then available as normal variables.

{{#id}}
   {{x}} is an OWL class
{{/#id}}

Example grammars can be seen at here