4

Currently there are many tools for RDF file type conversion. RDF2RDF, EasyRDF, and rrdf in R has some conversion functionalities. However, NONE of these conversion tools include converting .nq files to the other file types (.nt, .ttl, .rdf, .xml, etc).

I know N-QUAD is an N-TRIPLE file with just a 4th column, being the graph's IRI; however, there are many other considerations that need to be changed when converting from .nq to .nt.

I want to, ultimately, convert my .nq file to a .ttl file, including PREFIXs being declared at the beginning of the file. RDF2RDF doesn't seem to accommodate for prefix declarations. Is there a tool out there I don't know about that can help me do this?

lrthistlethwaite
  • 494
  • 2
  • 6
  • 23

1 Answers1

-1

you can use rdf2rdf to convert .nq to .ttl

archur
  • 19
  • 1
  • 1
    Instead of posting links as answer add some text to explanation how this answer help to OP in fixing current issue.Thanks – ρяσѕρєя K Jul 14 '17 at 08:05
  • 3
    This does not work. nQuads (nq) is not stated within the supported extensions of the referred library. – João Rocha da Silva Nov 13 '17 at 18:56
  • I understand the sentiment to down vote here, but this link is more than sufficient to follow in case someone is stick in a similar situation. thanks @archur – Kiran Jun 13 '20 at 07:01