Coder Social home page Coder Social logo

gitklchub / librdfa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rdfa/librdfa

0.0 0.0 0.0 733 KB

SAX-based implementation of an RDFa Processor in C

Home Page: http://rdfa.info/

License: Other

Shell 1.93% C++ 0.41% Python 4.62% C 92.99% Visual Basic 0.05%

librdfa's Introduction

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

librdfa's People

Contributors

dajobe avatar davidlehn avatar dlongley avatar iskunk avatar msporny avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.