I'm doing my master thesis and I'm working in serval files which most of them have a csv extension .
I have also a foaf file and I have no idea how to modelize and read this kind of file. What should I do?
I'm doing my master thesis and I'm working in serval files which most of them have a csv extension .
I have also a foaf file and I have no idea how to modelize and read this kind of file. What should I do?
Copyright © 2021 Jogjafile Inc.
It is a little bit problematic to save RDF data (which "FOAF file" actually is) into some table-like file without sacrificing semantics, because RDF is richer format and converting to CSV is in a way "lossy".
Below is a Python script for naive conversion of RDF into CSV, where each RDF triple is mapped into CSV row (install rdflib library before trying this):
To make more sense from RDF one should use some query language and write query (for example, in SPARQL) exactly for the data, which is desired from the RDF file.
Another question/answer which might help you: RDF file to excel-readable format (ttl is another encoding of RDF: RDF/Turtle )