Library for RDF syntax which supports reading and writing Turtle and NTriples
http://drobilla.net/software/serd/