How to create an ontology from raw data (CSV)?
Asked Answered
A

2

6

I am modelling university data using an OWL ontology with relevant classes, object properties, etc. I have the university data lying in a simple text file (say CSV). I want to create ontologies using my model for these data. My questions are:

  1. Is this how ontologies work?
  2. If so, how can this be done using using Jena?
Avaria answered 30/10, 2012 at 21:30 Comment(0)
P
12

If I understood your question, you have an ontology that represents a university model and you want to create owl instances using the data set which is in the form of CSV. Please correct me if you need something else.

The answer to your first question is Yes.

There are multiple ways to solve this problem.

  1. CSV data can be converted to RDF using available libraries with the help of Jena. here is the link link ; And here is the more detailed answer : link

  2. This can also be done using XSLT, write an xsl to convert the data from csv to owl individuals. And append those owl individuals to ontology using OWL API.

  3. If you are using Protege to build the ontologies, Protege provides a plugin to import CSV data. Link

  4. There are few other ways also.

All the above 3 approaches are used by many people and there is no one particular standard for solving this problem. You can choose an approach as per your requirement.

Psychophysics answered 31/10, 2012 at 2:3 Comment(2)
Thank you so much Swamy. You've understood my question correctly. I use Protege for modelling but the plugin you've mentioned is deprecated. I'll check if there is an alternative plugin. I really find the 2nd option to be effective - though it requires some effort.Avaria
I am glad to know that you found it useful.Psychophysics
E
0

if you are new to ontology, I recommend starting with some user-friendly existing tools first. Once you become familiar with ontology concepts and how it works, you can proceed to write your own code using open-source tools like Jena to create an ontology from CSV data. If you're interested, there's a cloud-based web service developed by a Ph.D. student at ENSAM ParisTech France. Here's the its link github: https://github.com/zzheng90/csv2rdf-converter

Evasion answered 22/1 at 12:49 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Appeal

© 2022 - 2024 — McMap. All rights reserved.