Small 4store How-To
From PaskvilWiki
The 4store RDF storage is "an efficient, scalable and stable RDF database".
Even though it's creators Garlik are currently using new 5store, the project is still developed, and honestly, became even more interesting with v1.1.5, esp. since it adds support for ORDER BY together with GROUP BY - e.g. ordering by average - which was not supported in previous versions.
It's recommended that you download tarball, not the Git snapshot. Then
./configure --prefix /some/folder/ --with-storage-path=/some/folder/4store --with-config-file=/some/folder/4store.conf CFLAGS=-O2 CPPFLAGS=-O3 make -j8 make install
Of course, you can leave the folders to their defaults if you so choose.
Then to start the 4store:
4s-backend-setup [kbname] 4s-backend [kbname] 4s-httpd -p [port] [kbname]
The above will setup storage for kbname, run backend to support it, and open HTTP server at port (default 8080).
Import some data using
curl -T data.ttl 'http://localhost:8000/data/data.ttl'
Then go to http://localhost:[port]/test/ and test some SPARQL queries!