Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the ontologies stored in this repository? #287

Open
andremdemori opened this issue Sep 9, 2024 · 1 comment
Open

How to use the ontologies stored in this repository? #287

andremdemori opened this issue Sep 9, 2024 · 1 comment

Comments

@andremdemori
Copy link

Hello, I am doing some research and I am interested in the ontologies stored in this repository. More specifically, the .ttl files.

However, all the files seem to have undergone a transformation. All the files that I open in Protegé have the same structure as shown in the image below.

Captura de tela de 2024-09-09 15-50-20

All the .ttl files seem to have the same header:

@prefix : <http://purl.org/ontouml-models/dataset/demori2023miscon/>.
@prefix ontouml: <https://purl.org/ontouml-models/vocabulary/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.

Can you tell me how I can use the ttl files in their original versions?

Thank you.

@pedropaulofb
Copy link
Member

pedropaulofb commented Sep 10, 2024

Hi @andremdemori ,

The .ttl files are generated after converting the .json files exported from the Visual Paradigm files (.vpp) using the ontouml-vp-plugin. Except for the : prefix, which is specific to each model, all .ttl files share the same header. This is expected behavior, as they utilize the same vocabularies.

By the way, if you want to transform the json files to ttl files yourself, you can use the ontouml2json Python library. To manipulate the catalog concepts, you can use the ontouml-models-lib (still in beta version). And to manipulate the concepts in graph version you can use the ontouml_vocabulary_lib library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants