| Line | |
|---|
| 1 | librdfa - The Fastest RDFa Parser on the Internet |
|---|
| 2 | ------------------------------------------------- |
|---|
| 3 | |
|---|
| 4 | librdfa is a C-based RDFa parser for XML family languages. |
|---|
| 5 | It currently supports XHTML+RDFa 1.0. |
|---|
| 6 | |
|---|
| 7 | Building and running librdfa |
|---|
| 8 | ---------------------------- |
|---|
| 9 | |
|---|
| 10 | Change into the librdfa directory (the same directory that contains |
|---|
| 11 | this README.txt file). |
|---|
| 12 | |
|---|
| 13 | autoconf |
|---|
| 14 | ./configure |
|---|
| 15 | make |
|---|
| 16 | export LD_LIBRARY_PATH=`pwd`/libs |
|---|
| 17 | ./tests/dist/speed |
|---|
| 18 | |
|---|
| 19 | If everything goes well, the speed test should show you being able to |
|---|
| 20 | process roughly 10k triples/sec. |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | Development |
|---|
| 24 | ----------- |
|---|
| 25 | |
|---|
| 26 | pkg-config support is provided to setup cflags and libs. The .pc file is |
|---|
| 27 | installed along with development files. Add the librdfa source dir to |
|---|
| 28 | the PKG_CONFIG_PATH environment var to use the uninstalled library. |
|---|
| 29 | |
|---|
| 30 | Building a simple program using librdfa pkg-config support: |
|---|
| 31 | |
|---|
| 32 | cc `pkg-config --libs --cflags librdfa` -o test test.c |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | Installation |
|---|
| 36 | ------------ |
|---|
| 37 | |
|---|
| 38 | Use configure options to setup install directories. For more information: |
|---|
| 39 | |
|---|
| 40 | ./configure --help |
|---|
| 41 | |
|---|
| 42 | To install: |
|---|
| 43 | |
|---|
| 44 | make install |
|---|
| 45 | |
|---|