Serd is a lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples.