Science Score: 57.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.0%) to scientific vocabulary
Keywords
Repository
Tool to transform an ontology diagram into OWL code.
Basic Info
Statistics
- Stars: 25
- Watchers: 5
- Forks: 6
- Open Issues: 17
- Releases: 1
Topics
Metadata Files
README.md

Chowlk Converter
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:
bib
@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 https://chowlk.linkeddata.es/ web application.
- Download the Chowlk template.
Complete version of the template: https://github.com/oeg-upm/chowlk_spec/blob/master/resources/chowlk-library-complete.xml
Lightweight version of the template: https://github.com/oeg-upm/chowlk_spec/blob/master/resources/chowlk-library-lightweight.xml
- 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.
bash
curl -F data=@path_to_diagram/diagram.xml https://chowlk.linkeddata.es/api
where pathtodiagram can be a relative path (e.g. diagrams/diagram.xml) or an absolute path (e.g. /home/user/diagrams/diagram.xml).
The service will return the following dictionary:
json
{
"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"}]},
"xml_error_generated": true,
"xml_error_file": "<mxfile ...",
"warnings": {"Base": [{"message": "A base has not been declared. The first namespace has been taken as base"}]}
}
- 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. These are the prefixes found in the model but not declared in the namespace block of the diagram. The returned object is a dictionary with the following format: {"prefix1": "namespace1", "prefix2": "namespace2"}.
- errors: Contains the errors found in the ontology diagram, organised by category. The keywords are the categories and the value for these keywords is an array that may contain objects that have the following structure:
json
{
"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"
}
* xmlerrorgenerated: Specifies whether an xml file highlighting the errors has been generated.
* xmlerrorfile: It contains an xml file in which the shapes involved in an error are marked in red. In addition, for each error a new shapes is generated containing a message explaining the error. This xml file can be uploaded to drawio.io.
* warnings: Contains the warnings found in the ontology diagram, organised by category. The keywords are the categories and the value for these keywords is an array that may contain objects that have the following structure:
json
{
"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 docker:
Copy the project:
bash
git clone https://github.com/oeg-upm/Chowlk.git
git checkout webservice
Docker:
- Intall and run Docker Desktop
- Open a command line located in the Chowlk repository and execute:
bash docker compose up - Open a web browser and go to localhost:5000
4. Running it from source:
Copy the project:
bash
git clone https://github.com/oeg-upm/Chowlk.git
git checkout webservice
Install python 3.12.6
Requirements:
bash
pip install -r requirements.txt
To convert a diagram:
positional arguments:
diagram_path the path where the diagram is located
output_path the desired location for the generated ontology
options:
-h, --help show this help message and exit
--xml_error_path XML_ERROR_PATH the desired location for the xml file with the marked errors found in the diagram
--type TYPE ontology or rdf data
--format FORMAT file format: ttl or xml
If the desired format is ttl:
bash python converter.py path/to/diagram.xml output/path/ontology.ttl --type ontology --format ttlIf the desired format is ttl and the path to the xml error is indicated:
bash python converter.py path/to/diagram.xml output/path/ontology.ttl --xml_error_path output/path/error_xml.xml --type ontology --format ttlIf the desired format is rdf/xml:
bash python converter.py path/to/diagram.xml output/path/ontology.xml --type ontology --format xmlIf the desired format is rdf/xml and the path to the xml error is indicated:
bash python converter.py path/to/diagram.xml output/path/ontology.xml --xml_error_path output/path/error_xml.xml --type ontology --format xml
To run the app locally:
bash
python entrypoint.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
Poveda-Villalón, M., Chávez-Feria, S., Carulli-Pérez, S., & García-Castro, R. (2023). Towards a UML-based notation for OWL ontologies. Proceedings of the 8th International Workshop on the Visualization and Interaction for Ontologies, Linked Data and Knowledge Graphs co-located with the 22nd International Semantic Web Conference (ISWC 2023). https://ceur-ws.org/Vol-3508/paper2.pdf
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
- Maria Poveda-Villalón (chowlk@delicias.dia.fi.upm.es)
Owner
- Name: Ontology Engineering Group (UPM)
- Login: oeg-upm
- Kind: organization
- Email: oeg-dev@delicias.dia.fi.upm.es
- Location: Boadilla del Monte, Madrid, Spain
- Website: https://oeg.fi.upm.es/
- Repositories: 294
- Profile: https://github.com/oeg-upm
Citation (citation.cff)
title: "Chowlk: from UML-Based Ontology Conceptualizations to OWL"
license: Apache-2.0
authors:
- family-names: Chávez-Feria
given-names: Serge
orcid: "http://orcid.org/0000-0002-7454-9202"
cff-version: 1.2.0
preferred-citation:
authors:
- family-names: Chávez-Feria
given-names: Serge
- family-names: García-Castro
given-names: Raúl
- family-names: Poveda-Villalón
given-names: Maria
title: "Chowlk: from UML-Based Ontology Conceptualizations to OWL"
type: article
collection-title: The Semantic Web
doi: 10.1007/978-3-031-06981-9_20
year: 2022
publisher: "Springer International Publishing"
pages: "338--352"
keywords:
- "Ontology engineering"
- "Ontology conceptualization "
- "OWL"
GitHub Events
Total
- Issues event: 2
- Watch event: 7
- Issue comment event: 4
- Push event: 7
- Pull request event: 9
Last Year
- Issues event: 2
- Watch event: 7
- Issue comment event: 4
- Push event: 7
- Pull request event: 9
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 2
- Total pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- GordianDziwis (3)
- idomingu (2)
- paoespinozarias (1)
Pull Request Authors
- Sergio-Carulli (12)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- Flask ==1.1.2
- Flask-Bootstrap ==3.3.7.1
- Flask-Migrate ==2.5.2
- Flask-SQLAlchemy ==2.5.1
- Flask-Script ==2.0.6
- Flask-Uploads ==0.2.1
- Jinja2 ==2.11.2
- MarkupSafe ==1.1.1
- Pillow ==9.0.1
- Werkzeug ==0.16.1
- beautifulsoup4 ==4.9.1
- build ==0.5.0
- click ==7.1.2
- dominate ==2.5.1
- flask-swagger-ui ==3.36.0
- flask_cors *
- gunicorn ==19.0.0
- isodate ==0.6.0
- itsdangerous ==1.1.0
- numpy ==1.22.0
- packaging ==20.9
- pandas ==1.0.3
- pep517 ==0.10.0
- psycopg2 *
- pyparsing ==2.4.7
- python-dateutil ==2.8.1
- pytz ==2020.1
- rdflib ==5.0.0
- six ==1.14.0
- soupsieve ==2.0.1
- toml ==0.10.2
- visitor ==0.1.3
- python 3.7 build