Skip to content

Latest commit

 

History

History
74 lines (61 loc) · 1.63 KB

README.md

File metadata and controls

74 lines (61 loc) · 1.63 KB

OML Adapter for OWL

Build Status Download

An OML adapter for OWL2-DL + SWRL Rules

Clone

    git clone https://github.com/opencaesar/owl-adapter.git
    cd owl-adapter

Build

Requirements: java 8, node 8.x

    cd owl-adapter
    ./gradlew build

Run as CLI

MacOS/Linux:

    ./gradlew oml2owl:run --args="-i path/to/oml/folder -o path/to/owl/folder"

Windows:

    gradlew.bat oml2owl:run --args="-i path/to/oml/folder -o path/to/owl/folder"

Run from Gradle

Optionally install it in your local maven repo (if you modified it)

    ./gradlew install

In a build.gradle script, add the following:

buildscript {
	repositories {
		mavenLocal()
		maven { url 'https://dl.bintray.com/opencaesar/owl-adapter' }
		maven { url 'https://dl.bintray.com/opencaesar/oml' }
		jcenter()
	}
	dependencies {
		classpath 'io.opencaesar.owl:oml2owl:+'
	}
}

apply plugin: 'io.opencaesar.oml2owl'

oml2owl {
	inputPath = 'path/to/oml/folder'
	outputPath = 'path/to/owl/folder'
}

task build {
	dependsOn generateOwl
}

task clean(type: Delete) {
	delete 'path/to/owl/folder'
}

Release

Replace <version> by the version, e.g., 1.2

  ./setversion <version>
  git tag -a <version> -m "<version>"
  git push origin <version>