Skip to content

Commit

Permalink
Added documentation of excel2onto. (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis authored Sep 8, 2022
1 parent 499a56b commit 3f4297d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ On top of that EMMOntoPy provides:
Documents an ontology.
- [`ontoconvert`](docs/tools-instructions.md#ontoconvert):
Converts between ontology formats.
- [`excel2onto`](docs/tools-instructions.md#excel2onto):
Generate an EMMO-based ontology from an excel file.

Some examples of what you can do with EMMOntoPy includes:

Expand Down
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ On top of that EMMOntoPy provides:
Documents an ontology.
- [`ontoconvert`](tools-instructions.md#ontoconvert):
Converts between ontology formats.
- [`excel2onto`](tools-instructions.md#excel2onto):
Generate an EMMO-based ontology from an excel file.

Some examples of what you can do with EMMOntoPy includes:

Expand Down
44 changes: 44 additions & 0 deletions docs/tools-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [ontograph](#ontograph)
- [ontodoc](#ontodoc)
- [ontoconvert](#ontoconvert)
- [excel2onto](#excel2onto)

---

Expand Down Expand Up @@ -361,3 +362,46 @@ ontoconvert --recursive emmo.ttl owl/emmo.owl
### Bugs
Since parsing the results from the reasoner is currently broken in Owlready2 (v0.37), a workaround has been added to ontoconvert.
This workaround only only supports FaCT++. Hence, HermiT and Pellet are currently not available.


## `excel2onto`

Tool for converting EMMO-based ontologies from Excel to OWL, making it easy for non-ontologists to make EMMO-based domain ontologies.

The Excel file must be in the format provided by ontology_template.xlsx.

### Usage

```console
excel2onto [options] excelpath
```

### Dependencies

- `pandas` (Python package)

### Options

```console
positional arguments:
excelpath path to excel book

options:
-h, --help show this help message and exit
--output OUTPUT, -o OUTPUT
Name of output ontology, ´ontology.ttl´ is default
--force, -f Whether to force generation of ontology on non-fatal
error.
```

### Examples

Create a `new_ontology.ttl` turtle file from the Excel file `new_ontology.xlsx`:
```console
excel2onto -o new_ontology.ttl new_ontology.xlsx
```


### Bugs

`equivalentTo` is currently not supported.

0 comments on commit 3f4297d

Please sign in to comment.