Skip to content

monnetproject/lemon.mustache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Lemon Mustache grammar conversions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published