protegeproject / protege

Protege Desktop
http://protege.stanford.edu
Other
970 stars 229 forks source link

Assigning individuals from a CSV file to an ontology in Protégé #1167

Open Haythamyounus opened 9 months ago

Haythamyounus commented 9 months ago

Hello everyone,

I am a PhD researcher and my thesis is based on ontology. I am using Protégé for this purpose. I have created an ontology and defined classes, subclasses, and object properties. I want to assign individuals from a CSV file that I have. I tried to enter individuals manually one by one, but this is not a reliable solution. Could you guide me on how to do this?

Thanks in advance

jamesaoverton commented 9 months ago

If you are comfortable with command-line tools, you might consider ROBOT and specifically the robot template command. ROBOT is built on the same OWLAPI library as Protégé and designed to be completely compatible.

Haythamyounus commented 9 months ago

Thanks for your reply. However, I am more comfortable doing it with Protege as already released a paper with the same tools. so i

gouttegd commented 9 months ago

Your best shot is probably the Cellfie plugin, which accepts an Excel spreadsheet (and only that apparently, not CSV/TSV files) and allows you to create arbitrary axioms (including definitions of individuals) from its contents using MappingMaster rules.

The plugin is bundled with the default distribution of Protégé and is available through Tools > Create axioms from Excel workbook.

I have never used it though, so I can’t be of any more help.

ElhamamiCh commented 2 months ago

I'm having the same problem. Could you share the solution with me, please?

yasenstar commented 2 months ago

I'm having the same problem. Could you share the solution with me, please?

Hi @ElhamamiCh ,

I experience the similar situation when build one of my ontology, here I've included "create axioms base on Excel" in this video: https://youtu.be/GfhqEe4A2eU, it's in Chinese language but hope you can refer to the video demoed steps. When I have time, would like to record one specific guide to show this bulk axiom load in English as well.

Good luck, Xiaoqi