Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://matpiw.github.io/OntoHub
Desktop app for working on various knowledge representations
https://matpiw.github.io/OntoHub
knowledge-representation ontology thesauri wordnet
Last synced: about 2 months ago
JSON representation
Desktop app for working on various knowledge representations
- Host: GitHub
- URL: https://matpiw.github.io/OntoHub
- Owner: MatPiw
- License: gpl-3.0
- Created: 2018-09-27T14:09:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-29T17:40:32.000Z (over 5 years ago)
- Last Synced: 2024-08-01T01:28:49.011Z (5 months ago)
- Topics: knowledge-representation, ontology, thesauri, wordnet
- Language: Java
- Homepage: https://matpiw.github.io/OntoHub/
- Size: 301 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ontologies-social-sciences - Ontohub
README
# OntoHub
![Alt text](https://raw.githubusercontent.com/MatPiw/OntoHub/master/images/ontohub-logo-small.jpg "OntoHub logo")
Ontohub (Ontology Hub) is an application that allows to use different knowledge representations (ontologies, thesauri, wordnets) in various formats and operate on them to create new representations of domain or expert knowledge.
Starting from choosing various input ontologies, operating on synsets and relations between them, leading to create a brand new knowledge representation.![Alt text](https://raw.githubusercontent.com/MatPiw/OntoHub/master/images/ontohub-view.png "OntoHub view")
OntoHub is easily-extensible. Simple implementation of few interfaces allows to add a new Input or Output knowledge representation format.
Intuitive and simple interface along with a view that can show two ontologies and result ontology at the same time makes work with the application more enjoyable.## Features
- 3-column view to easily navigate between input and output ontologies
- Merging two synsets into one
- Dynamic synset conversion (application chooses the converter based on input / output formats chosen)
- Editing converted synsets to match user's needs
- Extensibility - adding new ontology formats is fairly simple and generic## Formats supported
Ontohub is currently in an early phase and doesn't support many formats yet. Form the sake of example, Ontohub currently supports following formats:### Input formats
- Getty Art and Architecture Thesaurus (http://www.getty.edu/research/tools/vocabularies/aat/)
- PL Wordnet (Słowosieć) (http://plwordnet.pwr.wroc.pl/wordnet/)### Output formats
- Ontology Repository Editor## Extending
Extending OntoHub can be achieved by adding new Input or Output formats. To add a new format, the following steps should be performed:1. Create new Application module (based on gradle).
2. Add module to existing build (Module `onto-hub` is the main one) in `settings.gradle`.
3. Create a format main `.fxml` file that will be loaded to matching column views and corresponding views if applicable in resources folder.
4. Implement Controller file. It is important for it to implement `OntologyViewController` interface so it can be recognised by application main view. Implement necessary methods. You can follow existing examples or implement it on according to your needs.
5. In `common` module there are enums that represent formats that are available for application to use. Add the values for your format in desired enum.
Add a name for knowledge representation and relative path to `.fxml file`. That is why you should place view file in resources folder - it can be found easily by the app that way.
Path should start from slash and point to valid file - for example `/fxml/ontologies/getty_view.fxml`.6. Implement your model layer that will represent an ontology - there are no limitations here, so it can be achieved either by generating classes from schemas or implementing it on your own.
It is important to have at least one term representation class and one that will reflect relations in that ontology.7. Wrap your term-representing class by creating a class that implements `KnowledgeRepresentation` interface. If you wonder what class to include in its generic type, just follow the further instructions.
8. Create a wrapper that will extend `Relationship` abstract class. Pass the `KnowledgeRepresentation` class created in previous step and the Relation-reflecting class from your model. Then add this class implementation as a generic type to `KnowledgeRepresentation`.
>This structure can be a little confusing at the beginnig, but it is the only way to describe proper view of ontology - imagine it by example:
A term in the ontology has its own properties, and the list of relationships with other terms in which it can be either a parent or a child.
The relation is described by its characteristic and defines its parent and child which are the terms.
This created a need to implement a cyclic-generic structure.9. Add your `KnowledgeRepresentation` class to a `SynsetFactory` in `converter` module.
10. All available converters used by application are placed in `converter` module. Implement your own converters according to desired logic. Converter has to implement `FormatConverter` interface with generic types of source and target `KnowledgeRepresentation` implementations.
11. Add your `FormatConverter` implementation to a `ConverterFactory` in a `AVAILABLE_CONVERTERS` constant.
### Implementation hints
- If you are implementing an output format, it is good to use a `TreeRepresentation` class along with `ResultTreeHandler` class in your controller implementation. It will cover most cases of inserting new synsets in a result tree. Pass your `KnowledgeRepresentation` implementation along with **raw** relation model class.
- If you want your view to handle polyhierarchical structures, you can use a `MultiTreeController` class in your view controller. Pass your `KnowledgeRepresentation` implementation and **raw** Relation object.
> It is important to pass a raw relation object here, because it represents the relation in general, not a particular relationship between terms.