I have an article coming out soon and I have some data that is produced from a program that I wrote that goes along with the article. I would like to describe the whole thing using RDF and expose it as Linked Data. I am having problems just getting started, however. I know how to use XML and I know about RDF-XML so these are not problems. My main problem is how do I use RDF to link my article, myself, my code (in a file), and the output of the code (the data in CSV format)? I keep becoming confused when I attempt to figure this out. Do I use foaf or MODS wrapped inside rdf:Description tags and what XML tag set describes files with CSV data inside them?

Also, I looked into several CSV to RDF converters but they were either outrageously large and hard to install or were weakly created scripts. Is there anything in-between that is easy for a beginner in Linked Data to get started?

asked 01 Nov '12, 10:45

cyocum's gravatar image

accept rate: 0%

edited 01 Nov '12, 11:34

Signified's gravatar image

Signified ♦

Just to get a better idea ... do you want to represent the content of the CSV data in RDF, or just some meta-data about the CSV data? If you want to represent the content, do you have a large amount of CSV data? Do you have many tables? Many columns, many rows?

(01 Nov '12, 11:33) Signified ♦ Signified's gravatar image

The CSV data is pretty small 4 columns and 2200 rows. I think just to get my head around the entire idea it would be best to just have some metadata about the CSV and a link to the file itself. I can look into representing it in RDF later.

(01 Nov '12, 11:39) cyocum cyocum's gravatar image

Since you are familiar enough with RDF/XML, you could make a quick start by describing the basic metadata of your CSV file using Dublin Core, where you can look through the RDF/XML examples here. These will get you started on some simple templates to work around and extend.

However, this will only get you so far. Judging by your question, you perhaps view RDF through XML-tinted glasses. This is not a good way to learn RDF. RDF is pretty much synonymous with the notion of triples. RDF/XML is just one syntax that can be used to write down RDF triples. First of all, I'd recommend checking out the Turtle syntax. Working with Turtle is a 10x better way to get the feel for RDF and for triples than working with RDF/XML.

Once you're fairly comfortable with RDF in Turtle syntax, you can then move onto describing your CSV in RDF using the RDF Data Cube Vocabulary. This re-uses Dublin Core and FOAF and a few other vocabularies, but adds terms that can be used to provide detailed metadata about statistical data. The RDF Data Cube Vocabulary is quite a difficult vocabulary to learn (due to use of things like n-ary predicates), but examples are given in Turtle that should be easy to prototype from.

permanent link

answered 01 Nov '12, 16:14

Signified's gravatar image

Signified ♦
accept rate: 37%

Ok, thank you for this. I had run into the idea of triples in my searches but I will look more closely into it. I will update things as I go along.

(04 Nov '12, 09:16) cyocum cyocum's gravatar image

You can find a range of CSV2RDF tool at the ODI tools page. I suggest you give Tabels a try.

permanent link

answered 06 Nov '12, 23:50

Michael%20Hausenblas's gravatar image

Michael Haus...
accept rate: 15%

permanent link

answered 02 Feb '14, 09:41

seralf's gravatar image

accept rate: 13%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 01 Nov '12, 10:45

question was seen: 3,655 times

last updated: 02 Feb '14, 09:41