Serd subproject with meson
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Alexandros Theodotou 488d29bb6a
remove tests
7 months ago
doc fixup! WIP: Switch to Meson 8 months ago
include Only use modern deprecated attributes on clang 7 and newer 8 months ago
meson WIP: Switch to Meson 8 months ago
resources Generate documentation with Sphinx 9 months ago
scripts dox_to_sphinx.py: Emit documentation in groups 8 months ago
src Add missing includes 8 months ago
test WIP: Switch to Meson 8 months ago
.clang-format Format all code with clang-format 9 months ago
.clant.json Add clant configuration 8 months ago
.gitattributes Add gitattributes to disable newline mangling for RDF files 1 year ago
.gitignore WIP: Switch to Meson 8 months ago
.gitlab-ci.yml WIP: Switch to Meson 8 months ago
.includes.imp Add clant configuration 8 months ago
.travis.yml Add Travis configuration 4 years ago
AUTHORS Add AUTHORS file. 11 years ago
COPYING Update date in version output 9 months ago
INSTALL Update INSTALL file 6 years ago
NEWS Fix SERD_DISABLE_DEPRECATED 8 months ago
README.md Fix plots in README 8 months ago
meson.build remove tests 7 months ago
meson_options.txt WIP: Switch to Meson 8 months ago
serd.ttl Update metadata 2 years ago

README.md

Serd

Serd is a lightweight C library for RDF syntax which supports reading and writing Turtle, TriG, NTriples, and NQuads. Serd is suitable for performance-critical or resource-limited applications, such as serialising very large data sets or embedded systems.

Features

  • Free: Serd is Free Software released under the extremely liberal ISC license.

  • Portable and Dependency-Free: Serd has no external dependencies other than the C standard library. It is known to compile with GCC, Clang, and MSVC (as C++), and is tested on GNU/Linux, MacOS, and Windows.

  • Small: Serd is implemented in a few thousand lines of C. It typically compiles to about 100 KiB, or about 50 KiB stripped with size optimizations.

  • Fast and Lightweight: Serd can stream abbreviated Turtle, unlike many tools which must first build an internal model. This makes it particularly useful for writing very large data sets, since it can do so using only a small amount of memory. Serd is, to the author's knowledge, the fastest Turtle reader/writer by a wide margin (see Performance below).

  • Conformant and Well-Tested: Serd passes all tests in the Turtle and TriG test suites, correctly handles all "normal" examples in the URI specification, and includes many additional tests which were written manually or discovered with fuzz testing. The test suite is run continuously on many platforms, has 100% code coverage by line, and runs with zero memory errors or leaks.

Performance

The benchmarks below compare serdi, rapper, and riot re-serialising Turtle data generated by sp2b on an i7-4980HQ running Debian 9. Of the three, serdi is the fastest by a wide margin, and the only one that uses a constant amount of memory (a single page) for all input sizes.

Time Throughput Memory

Documentation

-- David Robillard d@drobilla.net