Зачем конвертировать RDF в CSV?
RDF stores data as a graph of subject-predicate-object triples, while .csv stores flat rows and columns. Exporting a SPARQL result set to CSV lets you load RDF-sourced data into spreadsheets, analytics platforms, or any tool that reads comma-separated files. There is no automatic mapping - you define the columns via your query.
Способы конвертации RDF в CSV
Apache Jena (ARQ) OPEN-SOURCE
Run arq --data file.rdf --query query.sparql --results CSV > output.csv; write a SELECT query targeting the specific properties you want as columns.
GraphDB FREE
Import your .rdf file into a GraphDB repository, run a SELECT query in the SPARQL workbench, and use the Download button to save the results as CSV.
Protege (with SPARQL plugin) FREE
Open the .rdf in Protege, use the SPARQL tab to run a SELECT query, and export the results as CSV from the results panel.
Об этих форматах
Файл RDF содержит данные W3C Resource Description Framework - основу семантической паутины - сериализованные в виде текста RDF/XML. Откройте его в любом текстовом редакторе или браузере,…
Открыть детали .RDF →Файл CSV хранит табличные данные в виде обычного текста - по одной строке на запись, значения разделены запятыми (или точкой с запятой в европейских регионах). Его открывает любая…
Открыть детали .CSV →Качество и на что обратить внимание
- This is not a format conversion - you export the result of a SPARQL query, not the full RDF graph; the output is inherently lossy.
- Multi-valued properties and relationships between resources that do not fit neatly into columns are dropped or flattened in the CSV output.
- Dumping all triples with
SELECT ?s ?p ?oproduces a three-column table that is rarely useful on its own - target the specific properties you need.