com.github.monnetproject.lemon.api.oils OSGi Bundle

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

License

License

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

Categories

Net
GroupId

GroupId

com.github.monnetproject
ArtifactId

ArtifactId

lemon.api.oils
Last Version

Last Version

1.18.4
Release Date

Release Date

Type

Type

jar
Description

Description

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

Download lemon.api.oils

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
com.github.monnetproject : ontology jar 1.18.4

test (2)

Group / Artifact Type Version
junit : junit jar 4.8.2
org.apache.felix : org.osgi.compendium jar 1.4.0

Project Modules

There are no modules declared in this project.

The Lemon API

The lemon (Lexicon Model for Ontologies) API provides a programmatic interface for the lemon model. The lemon model is a model for describing lexica and their relationships to ontologies given in the OWL format. Lemon was designed with the following goals

  • RDF-native
  • Concise
  • Descriptive not Prescriptive
  • Modular
  • Semantics by Reference

For more details of the lemon model see http://lemon-model.net

JavaDoc

JavaDoc is available at http://monnetproject.github.com/lemon.api/

Usage Example

final LemonSerializer serializer = LemonSerializer.newInstance();
final LemonModel model = serializer.create();
final Lexicon lexicon = model.addLexicon(
        URI.create("http://www.example.com/mylexicon"),
        "en" /*English*/);
final LexicalEntry entry = LemonModels.addEntryToLexicon(
        lexicon,
        URI.create("http://www.example.com/mylexicon/cat"),
        "cat",
        URI.create("http://dbpedia.org/resource/Cat"));

final LemonFactory factory = model.getFactory();
final LexicalForm pluralForm = factory.makeForm();
pluralForm.setWrittenRep(new Text("cats", "en"));
final LinguisticOntology lingOnto = new LexInfo();
pluralForm.addProperty(
        lingOnto.getProperty("number"),
        lingOnto.getPropertyValue("plural"));
entry.addOtherForm(pluralForm);

serializer.writeEntry(model, entry, lingOnto, 
        new OutputStreamWriter(System.out));
com.github.monnetproject

Monnet Project

Versions

Version
1.18.4