Skip to content

Commit 7437ae4

Browse files
committed
ont-converter: 2.0.1 release
1 parent 7ed5cf4 commit 7437ae4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ This is a kind of [ONT-API](https://github.com/owlcs/ont-api) extension.
66
Can work both with single ontology file source and with directory containing dependent or independent ontology document sources.
77
The utility automatically transforms the source RDF Graph to the OWL2 DL syntax according to the internal rules and command-line options.
88
For example, if there is no `owl:Ontology` section inside rdf-graph (which is required by OWL), an anonymous ontology header will be generated.
9-
The tool is available in the form of code and prebuilt jar (see [/releases](https://github.com/sszuev/ont-converter/releases)).
9+
The tool is available in the form of code and prebuilt jar (see [/releases](https://github.com/sszuev/ont-converter/releases)),
10+
and as a library at [jitpack.io](https://jitpack.io).
1011

1112
### Usage: `java -jar ont-converter.jar [-f] [-h] -i <path> [-if <format>] -o <path> -of <format> [-p <0|1|2>] [-r] [-v] [-w]`
1213

@@ -37,6 +38,11 @@ where
3738
Some facilities from the tool internals can be used as a library to simplify bulk loading.
3839
This can be helpful to properly handle all `owl:imports` dependencies. See examples:
3940
```java
41+
import com.github.owlcs.ontapi.OntFormat;
42+
import com.github.sszuev.ontconverter.api.LoadersKt;
43+
import com.github.sszuev.ontconverter.api.ManagersKt;
44+
import com.github.sszuev.ontconverter.api.OntologyMap;
45+
4046
List<OntologyMap> maps = LoadersKt.loadDirectory(Path.of("/path-to-dir-with-ontologies"), null, false, ManagersKt::createSoftManager);
4147
maps.forEach(map -> map.getIds().forEach((iri, id) -> System.out.println("document-iri = " + iri + " => id=" + id)));
4248
maps.forEach(map -> map.getGraphs().forEach((iri, g) -> System.out.println("document-iri = " + iri + " => triples=" + g.size())));

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = "com.github.sszuev"
9-
version = "2.0.1-SNAPSHOT"
9+
version = "2.0.1"
1010
description = "A simple command-line utility to convert any RDF graph to OWL2-DL ontology"
1111

1212
repositories {

0 commit comments

Comments
 (0)