https://github.com/jeromewu/rdfdrools
Combine ontology and drools rule engine
https://github.com/jeromewu/rdfdrools
Last synced: about 1 year ago
JSON representation
Combine ontology and drools rule engine
- Host: GitHub
- URL: https://github.com/jeromewu/rdfdrools
- Owner: jeromewu
- Created: 2015-03-06T02:41:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-08T04:30:39.000Z (over 11 years ago)
- Last Synced: 2025-02-05T06:43:47.362Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 18.9 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RDFDrools
## Introduction
RDFDrools is a program to combine the power of ontology and drools rule engine, so far it is still in an early stage.
## Build
The program is built by [maven](http://maven.apache.org/) build tool, just simple key in
```
$ mvn clean compile assembly:single
```
It will built into a signle jar file with all dependencies, so you don't have to add lots of jar file in the class path to run the program :)
## Execution
To execute the program, you will need to define rdf file, abbr file, rule file, json file and a sleep time
```
$ java -cp com.delta.RDFDrools
```
* rdffile : the ontology in RDF/XML format
* abbrfile : the abbr file define the abbr. of the namespace, need to start with @prefix, a quick example
```
@prefix rdfs:
```
* jsonfile : the json file to define the input data, an example here
```
{
"args": [
{"property":"subClassOf", "propertyNS":"rdfs", "value":"Thing", "valueNS":"owl"},
...
]
}
```
* sleeptime : the sleep time is in ms, to specify how long the program will read the json file
* rulefile : the rule file is included in the jar file, the path is src/main/resources/com/delta/rule.drl, please check drools official website to write a rule
You can check makefile in the root directory to see the full example of Build and Execution, and the sample data is in the data directory
## Contact
Please feel free to contact jeromewus@gmail.com