Skip to content

Commit 7658e16

Browse files
committed
bump to 0.1.10a5
1 parent 33abfbe commit 7658e16

File tree

4 files changed

+39
-22
lines changed

4 files changed

+39
-22
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77
resolver = "2"
88

99
[workspace.package]
10-
version = "0.1.10-a4"
10+
version = "0.1.10-a5"
1111
authors = ["Gabe Fierro <[email protected]>"]
1212
license = "BSD-3-Clause"
1313
edition = "2021"
@@ -35,4 +35,8 @@ clap = { version = "4.4.18", features = ["derive"] }
3535
derive_builder = "0.20"
3636
oxigraph = "0.4.4"
3737

38-
ontoenv = { version = "0.1.10-a4", path = "lib" }
38+
ontoenv = { version = "0.1.10-a5", path = "lib" }
39+
40+
[profile.profiling]
41+
inherits = "release"
42+
debug = true

README.md

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,36 @@
22

33
`ontoenv` is an environment manager for ontology management. It eventually wants to be a package manager for RDF ontologies and graphs.
44

5+
- A CLI tool (`cargo install ontoenv-cli`)
6+
- `ontoenv`, a [Rust library](https://docs.rs/ontoenv/latest/ontoenv/)
7+
- `pyontoenv`, a [Python library](https://pypi.org/project/pyontoenv/)
8+
59
## Overview
610

7-
Imagine you have an RDF graph which imports
11+
Imagine you have an RDF graph which imports some ontologies in order to use those concepts.
12+
Those ontologies might in import other ontologies, and so on.
13+
14+
The design goals of this project are:
15+
- **be lightweight**: big fancy ontology tools will handle ontology imports automatically, but do so within a heavyweight GUI and usually without an easy-to-use API; I wanted something that could be used in a Python library or a command line tool
16+
- **configurable**: when doing ontology development, I want to refer to some files locally, and others on the web; I want to be able to control which files are included and which are not.
17+
- **fast**: I want to be able to quickly refresh my workspace when I make changes to local files.
18+
19+
## How does it work?
20+
21+
Specifically, `ontoenv` looks for patterns like the following inside local ontology files:
22+
23+
```ttl
24+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
25+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
26+
@prefix : <urn:my_ontology/> .
27+
28+
<urn:my_ontology> rdf:type owl:Ontology ;
29+
owl:imports <https://brickschema.org/schema/1.4/Brick>,
30+
<http://qudt.org/2.1/vocab/quantitykind> .
31+
```
32+
33+
When initialized, `ontoenv` searches for all local files defining ontologies, identifies their dependencies, and then recursively pulls in those dependencies, *their* dependencies, and so on.
34+
It saves this in a local [Oxigraph](https://github.com/oxigraph/oxigraph) database inside the local `.ontoenv`.
835

936
## Command Line Interface
1037

@@ -23,21 +50,7 @@ Begin by initializing an `ontoenv` workspace in a directory containing some onto
2350
ontoenv init
2451
```
2552

26-
This may take a couple minutes. `ontoenv` searches for all local files defining ontologies, identifies their dependencies, and then recursively pulls in those dependencies, *their* dependencies, and so on.
27-
28-
Specifically, `ontoenv` looks for patterns like the following inside local ontology files:
29-
30-
```ttl
31-
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
32-
@prefix owl: <http://www.w3.org/2002/07/owl#> .
33-
@prefix : <urn:my_ontology/> .
34-
35-
<urn:my_ontology> rdf:type owl:Ontology ;
36-
owl:imports <https://brickschema.org/schema/1.4/Brick>,
37-
<http://qudt.org/2.1/vocab/quantitykind> .
38-
```
39-
40-
It is possible to adjust which directories `ontoenv` searches for, which files it traverses, and whether it pulls ontologies from the web.
53+
This may take a couple minutes. `ontoenv` searches for all local files defining ontologies, identifies their dependencies, and then recursively pulls in those dependencies, *their* dependencies, and so on. It is possible to adjust which directories `ontoenv` searches for, which files it traverses, and whether it pulls ontologies from the web.
4154

4255
```
4356
$ ontoenv init -h

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ features = ["pyo3/extension-module"]
1818

1919
[tool.poetry]
2020
name = "ontoenv"
21-
version = "0.1.10a4"
21+
version = "0.1.10a5"
2222
description = "Python bindings for the OntoEnv Rust library. Manages ontology-based environments for building knowledge graphs."
2323
license = "bsd-3-clause"
2424
authors = ["Gabe Fierro <[email protected]>"]

0 commit comments

Comments
 (0)