Temporary unofficial fork from Chowlk
Project description
Chowlk Converter - Unofficial fork
IMPORTANT NOTICE: This is an unofficial temporary fork of Chowlk. Please refer to the original repository.
Tool to transform ontology conceptualizations made with diagrams.net into OWL code.
The conceptualizations should follow the Chowlk visual notation. Please visit the specification for more details.
Citing Chowlk: If you used Chowlk in your work, please cite the ESWC paper:
@InProceedings{10.1007/978-3-031-06981-9_20,
author="Ch{\'a}vez-Feria, Serge
and Garc{\'i}a-Castro, Ra{\'u}l
and Poveda-Villal{\'o}n, Mar{\'i}a",
editor="Groth, Paul
and Vidal, Maria-Esther
and Suchanek, Fabian
and Szekley, Pedro
and Kapanipathi, Pavan
and Pesquita, Catia
and Skaf-Molli, Hala
and Tamper, Minna",
title="Chowlk: from UML-Based Ontology Conceptualizations to OWL",
booktitle="The Semantic Web",
year="2022",
publisher="Springer International Publishing",
address="Cham",
pages="338--352"
}
How to use the tool
You have several options to use this tool.
1. The web application
- Go to the chowlk.linkeddata.es web application.
- Download the Chowlk template.
- In diagrams.net go to File > Open Library from > Device ...
- Select the library downloaded.
- Make your conceptualization using the blocks that will appear on the side bar.
- Download the diagram in xml format.
- Drag and drop your diagram in the Service dropping area and download your TTL file.
2. The API
The following command line will return the ontology in Turtle format.
curl -F 'data=@/path/to/diagram.xml' https://chowlk.linkeddata.es/api
The service will return the following dictionary:
{
"ttl_data": "@prefix ns: ...",
"new_namespaces": {"ns1": "https://namespace1.com#", "ns2": "https://namespace2.com#"},
"errors": {"Concepts": [{"message": "Problem in text", "shape_id": "13", "value": "ns:Building Element"}],
"Attributes": [{"message": "Problem in cardinality", "shape_id": 45, "value": "ns:ifcIdentifier"}],
"Arrows": [],
"Rhombuses": [],
"Ellipses": [],
"Namespaces": [],
"Metadata": [],
"Hexagons": [],
"Individual": []}
}
- ttl_data: Contains the ontology generated from the diagram in Turtle format. It is returned in string format.
- new_namespaces: Contains the new namespaces created for the ontology, when prefixes are founded in the model but are not declared in the namespace block in the diagram. The returned object is a dictionary with the following format: {"prefix1": "namespace1", "prefix2": "namespace2"}
- errors: Contains the errors founded in the ontology diagram, organized by types. The following keywords can be founded: "Concepts", "Arrows", "Rhombuses", "Ellipses", "Attributes", "Namespaces", "Metadata", "Hexagons", "Individual". The value for these keywords is an array that may contain objects that have the following structure:
{
"message": "Some message related to the problem",
"shape_id": "An integer id that identify the problematic shape in the diagram",
"value": "the actual text related with the shape"
}
3. Running it from source
Copy the project
git clone https://github.com/oeg-upm/Chowlk.git
git checkout webservice
Requirements
pip install -r requirements.txt
To convert a diagram
- If the desired format is ttl:
python converter.py path/to/diagram.xml output/path/ontology.ttl --type ontology --format ttl
- If the desired format is rdf/xml:
python converter.py path/to/diagram.xml output/path/ontology.xml --type ontology --format xml
To run the app locally
python app.py
Publications
-
Chávez-Feria, S., García-Castro, R., Poveda-Villalón, M. (2022). Chowlk: from UML-Based Ontology Conceptualizations to OWL. In: , et al. The Semantic Web. ESWC 2022. Lecture Notes in Computer Science, vol 13261. Springer, Cham. https://doi.org/10.1007/978-3-031-06981-9_20
-
Chávez-Feria, S., García-Castro, R., Poveda-Villalón, M. (2021). Converting UML-based ontology conceptualizations to OWL with Chowlk. In ESWC (Poster and Demo Track)
Contact
- Serge Chávez-Feria (serge.chavez.feria@upm.es)
- Maria Poveda-Villalón (mpoveda@fi.upm.es)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file chowlk_unofficial_fork-0.0.2.tar.gz
.
File metadata
- Download URL: chowlk_unofficial_fork-0.0.2.tar.gz
- Upload date:
- Size: 32.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddaf21759548f0711848749ea6d3ad8406a7346e2691cb3310b9c99c57588ec4 |
|
MD5 | 1d9e92afadb1cc1b42a80a7b345de2a8 |
|
BLAKE2b-256 | 6bd648049f1800c41e60e837efb821644b41fb758da5293f90a7e8cd7d4d1da1 |
File details
Details for the file chowlk_unofficial_fork-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: chowlk_unofficial_fork-0.0.2-py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d770bee562920b20fdd7a26935ec467cd8974d50ce6b3ed4652f13644a8cabe2 |
|
MD5 | b3349950c314e4db4c032fd5be0d56e2 |
|
BLAKE2b-256 | 7dd5f67f9a4d88171d64131c14d0139e75f0e0d0c2cb3539a5b0bdc5c7e72aba |