An open API service indexing awesome lists of open source software.

https://github.com/jeromewu/jenaontapp

Jena Ontology Application
https://github.com/jeromewu/jenaontapp

Last synced: about 1 year ago
JSON representation

Jena Ontology Application

Awesome Lists containing this project

README

          

# JenaOntApp

## Introduction

JenaOntApp is a program to combine the ontology and jena generic reasoner for the application, the goal is to create a program that user only have to define the ontology, input data and the rule without modifying the program to achieve the goal.

This program is still under construction, more features on the way.

## Build

The program is build by using the [maven](http://maven.apache.org/) build tools, you only need to key in

```
$ mvn clean compile assembly:single
```

The source code will be compiled into an independent jar file, so you don't have to add lots of class path to execute :)

## Execute

For executing this program you will need 3 input files, and the command line will be like this

```
$ java -cp com.delta.JenaOntApp
```

* jarfile : the file you compiled
* rdffile : the ontology file in RDF/XML format
* rulefile : the rule file for reasoner, please check [here](http://jena.apache.org/documentation/inference/#rules) for more info
* jsonfile : the json file is the runtime data for the program, see the example below to know more, the abbr. of the namespace is defined in rule file

```
{
"args": [
{"property":"subClassOf", "propertyNS":"rdfs", "value":"Thing", "valueNS":"owl"},
...
]
}
```

You can also check makefile to see how to build and execute, and there are some sample data in the directory data

## Contact

Please feel free to contact jeromewus@gmail.com