# emerge –ask rasqal raptor

These are the packages that would be merged, in order:

Calculating dependencies… done!
[ebuild N ] media-libs/raptor-1.4.18 USE=“unicode –curl –xml“
[ebuild N ] dev-libs/rasqal-0.9.16 USE=“pcre –gmp –test –xml”

Then I downloaded and unpaked the 4store from http://​4store​.org/, then when running configure…

# ./​configure
[OK ] pkg-​config installed
[OK ] raptor installed
[OK ] rasqal installed
[OK ] glib2 installed
[OK ] pcre installed
[OK ] readline installed
[OK ] ncurses installed
[FAIL] no termcap devel system

I installed sys-​libs/​libtermcap-​compat but did not helped, after a quick chat on #gentoo (irc​.freenode​.net), I downloaded and installed the GNU termcap from http://​ftp​.gnu​.org/​g​n​u​/​t​e​r​m​c​ap/ (version 1.3.1 dated 2002!) and all went fine:

# ./​configure
[OK ] pkg-​config installed
[OK ] raptor installed
[OK ] rasqal installed
[OK ] glib2 installed
[OK ] pcre installed
[OK ] readline installed
[OK ] ncurses installed
[OK ] termcap installed
[OPT ] no avahi, will build without cluster support

# make

The compilation is quite fast, hmmm, I remember 3store was taking longer…but those were different hardware times.

# mkdir /​var/​lib/​4store/​

(cd tests && make –w test)
make[1]: Entering directory ‘/usr/local/src/4store-v0.9.2/tests’
(cd query && pwd && ./setup.sh –autorun)
/usr/local/src/4store-v0.9.2/tests/query
4store[20927]: backend-setup.c:178 erased files for KB query_​test_​root
4store[20927]: backend-setup.c:302 created RDF metadata for KB query_​test_​root
removing old data
Reading <file:///usr/local/src/4store-v0.9.2/tests/query/../../data/swh.xrdf>
into <http://​example​.com/​s​w​h​.​x​rdf>
Pass 1, processed 63 triples (63)
Reading <file:///usr/local/src/4store-v0.9.2/tests/query/../../data/tiger/TGR06001.nt>
into <http://​example​.com/​T​G​R​06001​.nt>
Pass 1, processed 764610 triples (764547)
Reading <file:///usr/local/src/4store-v0.9.2/tests/query/../../data/nasty.ttl>
into <http://​example​.com/​n​a​s​t​y​.​ttl>
Pass 1, processed 764638 triples (28)
Pass 2, processed 764638 triples, 29045 triples/​s
Updating index
Index update took 28.432670 seconds
Imported 764638 triples, average 18167 triples/​s
[PASS] add-​and-​delete
[FAIL] count (expected see http://​4store​.org/​t​r​a​c​/​w​i​k​i​/​D​e​p​e​n​d​e​n​c​ies endnotes)
[PASS] distinct-​predicate
[PASS] foaf-​all-​limit
[PASS] foaf-​bnode-​vs-​variable
[PASS] foaf-​construct
[PASS] foaf-​disjunctive-​filter
[PASS] foaf-​distinct
[PASS] foaf-​graph-​all
[PASS] foaf-​graph-​pred
[PASS] foaf-​knows-​name
[PASS] foaf-​knows-​name-​sha1
[PASS] foaf-​knows-​sha1
[PASS] foaf-​knows-​sha1-​xml
[PASS] foaf-​multi-​disjunctive-​filter
[PASS] foaf-​nested-​optional
[PASS] foaf-​nothing
[PASS] foaf-​optional-​order
[PASS] foaf-​optional-​pair
[PASS] foaf-​optional-​regex
[PASS] foaf-​repeat-​var
[PASS] graphs
[PASS] integrity
[PASS] null-​optional
[PASS] null-​optional-​double
[PASS] optimiser-​disjunction
[PASS] select-​bnodes
[PASS] select-​order
[PASS] select-​unused
[PASS] size
[PASS] tiger-​broadway
[PASS] tiger-​explosion
[PASS] tiger-​fail-​optional
[PASS] tiger-​harold-​ave
[PASS] tiger-​landmarks
[PASS] tiger-​mixed-​optional
[PASS] tiger-​reverse
[PASS] tiger-​sugar-​hill
[PASS] tiger-​sugar-​hill-​filter
[PASS] tiger-​typical
[PASS] tiger-​water-​names
[FAIL] union-​nobind (expected see http://​4store​.org/​t​r​a​c​/​w​i​k​i​/​D​e​p​e​n​d​e​n​c​ies endnotes)
Tests completed: passed 4042 (2 fails)

now downloading some DMOZ rdf data to feel the speed…