Users Guide

Terms and Definitions

We use the official definitions of https://www.w3.org/TR/rdf11-concepts/.

Framework Basics

The main types of rdf4cpp:

Datatypes

Literal supports common rdf Datatypes and operations on them (as defined in https://www.w3.org/TR/sparql12-query/#SparqlOps), as well as conversions between Literal Datatypes.

You can find all supported Datatypes here:

Parsing Files

The class rdf4cpp::parser::RDFFileParser allows reading files containing rdf Statements and iterate over them. Supported Formats: Turtle, TriG, N-Triples N-Quads and RDF/XML. rdf4cpp::parser::IStreamQuadIterator allows doing the same over arbitrary data streams.

Relaxed Parsing Mode

The setting rdf4cpp::datatypes::registry::relaxed_parsing_mode disables IRI validity checks and allows rdf4cpp to automatically try to correct some faulty Literals. See the linked relaxed_parsing_mode for a full list of changes. Currently aimed at reducing loading errors with DBPedia, more might be added in future versions.

(since rdf4cpp v0.0.24)