rdf4cpp aims to be a stable, modern RDF library for C++
check out the examples directory.
Currently, rdf4cpp builds only on linux with a C++20 compatible compiler. Tests are build with gcc 10 and clang 10. Newer version of the compilers should also work.
To load RDF data from files, you need additionally the library serd. It is available on most distributions package managers. On Ubuntu, install it with
sudo apt install libserd-dev
rdf4cpp uses CMake. To build it, run:
cmake -B build
cd build
make rdf4cpp
To install it to your system, run afterwards:
sudo make install
-Drdf4cpp_BUILD_EXAMPLES=ON/OFF [default: OFF]
: configure cmake for building examples
-Drdf4cpp_BUILD_TESTS=ON/OFF [default: OFF]
: configure cmake for building tests
-Drdf4cpp_SHARED_LIBS=ON/OFF [default: OFF]
: build a shared library instead of a static