Sord is a lightweight C library for storing RDF data in memory.

Homepage:
https://drobilla.net/software/sord/
