Rasqal is a C library for querying RDF graphs, supporting the SPARQL, RDQL, and LAQRS languages. It provides APIs for creating a query and parsing query syntax. It features pluggable triple-stores and matching interfaces, query engines for executing the queries, an API for manipulating results as bindings, and multiple ways to format the results to XML, CSV, TSV, and JSON. It uses the Raptor RDF parser to return triples from RDF content, and can alternatively work with the Redland RDF library's persistent triple stores. It is portable across many POSIX systems.