com.github.monnetproject.lemon.mustache OSGi Bundle

com.github.monnetproject.lemon.mustache OSGi Bundle from the Monnet Project's lemon.mustache.project project.

License

License

BSD 3-clause "New" or "Revised" License
Categories

Categories

Net
GroupId

GroupId

com.github.monnetproject
ArtifactId

ArtifactId

lemon.mustache
Last Version

Last Version

1.18.4
Release Date

Release Date

Type

Type

jar
Description

Description

com.github.monnetproject.lemon.mustache OSGi Bundle
com.github.monnetproject.lemon.mustache OSGi Bundle from the Monnet Project's lemon.mustache.project project.

Download lemon.mustache

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.monnetproject/lemon.mustache/ -->
<dependency>
    <groupId>com.github.monnetproject</groupId>
    <artifactId>lemon.mustache</artifactId>
    <version>1.18.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.monnetproject/lemon.mustache/
implementation 'com.github.monnetproject:lemon.mustache:1.18.4'
// https://jarcasting.com/artifacts/com.github.monnetproject/lemon.mustache/
implementation ("com.github.monnetproject:lemon.mustache:1.18.4")
'com.github.monnetproject:lemon.mustache:jar:1.18.4'
<dependency org="com.github.monnetproject" name="lemon.mustache" rev="1.18.4">
  <artifact name="lemon.mustache" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.monnetproject', module='lemon.mustache', version='1.18.4')
)
libraryDependencies += "com.github.monnetproject" % "lemon.mustache" % "1.18.4"
[com.github.monnetproject/lemon.mustache "1.18.4"]

Dependencies

compile (3)

Group / Artifact Type Version
com.samskivert : jmustache jar 1.5
com.hp.hpl.jena : jena jar 2.6.4
com.hp.hpl.jena : arq jar 2.8.8

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

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

com.github.monnetproject

Monnet Project

Versions

Version
1.18.4