Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
SAX-based implementation of an RDFa Processor in C
branch: master

Import fixes from raptor

* const'ify string literals and char pointers that needn't be changed
  - librdfa (start_element): const'ify umap_key
  - librdfa (rdfa_complete_object_literal_triples): const'ifty
    current_object_literal
* (rdfa_init_base): Fix <base href >
* (end_element): Do not call rdfa_complete_list_triples() with no
  new subject [coverity]
* (rdfa_init_base): Fix uri_start dead code [coverity]
* (end_element): Add parent_context check around block [coverity]
* (rdfa_init_base): Check for uri_start before use [coverity]
* librdfa fixes for -Wunreachable-code [clang]
* (rdfa_complete_object_literal_triples) strchr on NULL [coverity]
* (rdfa_complete_object_literal_triples): Need non NULL
  context->xml_literal to do strchr() on it [coverity]
* (rdfa_complete_current_property_value_triples): Remove duplicate
  variable [coverity]
* (rdfa_complete_object_literal_triples): NULL check for
  context->xml_literal [coverity]
latest commit 10e530433c
Dave Beckett dajobe authored
Failed to load latest commit information.
c
docs Added all automake files.
installers/debian Use debhelper python support.
python Build fixes from Daniel Richard G.
setup Removed config.guess and config.sub files as they keep changing too o…
tests
.gitignore.in Ignore generated files.
AUTHORS Fixed AUTHORs file.
LICENSE Added GPL 2.0 as possible license alternative for librdfa.
LICENSE-apache-2.0 Added dual-license for LGPL 2.1 and Apache 2.0 to ensure compatability
LICENSE.gpl-2.0 Added GPL 2.0 as possible license alternative for librdfa.
LICENSE.lgpl-2.1 Added dual-license for LGPL 2.1 and Apache 2.0 to ensure compatability
Makefile.am Fixing build issues when using a pure C (non-C++) compiler.
README.md Added required packages to README for building various subsystems.
autogen.sh
configure.ac
librdfa-uninstalled.pc.in Migrated configuration system from expat to libxml2.
librdfa.pc.in Migrated configuration system from expat to libxml2.

README.md

librdfa - The Fastest RDFa Processor on the Internet

librdfa is a SAX-based RDFa processor written in C for XML and HTML family languages. It currently supports XML+RDFa, XHTML+RDFa, SVG+RDFa, HTML4+RDFa and HTML5+RDFa for both RDFa 1.0 and RDFa 1.1.

Building and Running librdfa

Make sure that you have the following software installed on your system before attempting to build librdfa:

autoconf
automake
gcc
make
pkg-config
libtool
libxml2-dev

Make sure you have the following packages installed if you're attempting to build the Python RDFa libraries:

g++
python-dev 
swig

Make sure you have the following packages installed if you are attempting to build the Debian/Ubuntu packages:

dpkg-buildpackage
dpkg-dev
python-all-dev 
dh-buildinfo 
debhelper

Change into the librdfa source directory and run the following:

./autogen.sh
./configure
make
./tests/speed 

If everything goes well, the speed test should be able to crank through documents at 32 MB/sec and generate roughly 6.5k triples/sec.

Optionally, you can build the Python bindings with the following:

./configure --enable-python
make

Development

pkg-config support is provided to setup cflags and libs. The .pc file is installed along with development files. Add the librdfa source dir to the PKG_CONFIG_PATH environment var to use the uninstalled library.

Building a simple program using librdfa pkg-config support:

cc `pkg-config --libs --cflags librdfa` -o test test.c

Installation

Use configure options to setup install directories. For more information:

./configure --help

To install:

make install
Something went wrong with that request. Please try again.