This document explains how to configure httpd (Apache HTTP Server) to use the. StrixDB RDF store. ... Size of the inital index (bitmap). default=8*1024*1024 ... With StrixDB, Lua can be used as a nice alternative to php. We propose 2 uses of.
Overview This document explains how to configure httpd (Apache HTTP Server) to use the StrixDB RDF store. Configured Apache Server could :
download and upload RDF graphs into the RDF store (in XML or turtle format), respond to SPARQL and SPARQL/Update HTTP requests with the SPARQL protocol respond to HTTP requests with dynamic Lua pages o created from Lua scripts or o created from files with embedded Lua code.
Status and License Current version of StrixStore is 0.92 The current version is a beta release and could be used free of charges for any purpose. The current version is ruled by the terms of the StrixDB license for beta releases. Lua API is not final: it could be extended.
History
14-07-2010 Initial release v 0.9 02-09-2010 release 0.91: improved XML/RDF and RFC 2396 compliance 06-11-2010 release 0.92: could be used with APACHE http server. StrixServer no more maintained.
Download and installation (for Windows) Install an httpd (Apache HTTP Server) of version 2.2. The standard Windows installation at http://httpd.apache.org/ could be used. Download a StrixStore from http://www.strixDB.com/download.html (minimum version 0.92). Installation is easy : just unzip files into a folder. Copy the file mod_strixdb.so into the modules folder of Apache Server (with standard installation, this folder is C:\Program Files\Apache Software Foundation\Apache2.2\modules )
Configuration You have to modify the Apache server configuration file : the default configuration file with standard installation is C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf Example of configuration : LoadModule strixdb_module modules/mod_strixdb.so StrixRoot "C:/Program Files/StrixDB/" StrixFilename "D:/RDF/strix.db" StrixInitfile "D:/RDF/initDatabase.lua" StrixDefaultURI "http://mydefault/graph/uri/" StrixTruncate true SetHandler strix-db-handler AddHandler strix-luapage-handler .hlua AddHandler strix-lua-handler .lua
REQUIRED: load the strixdb module StrixRoot "C:/Program Files/StrixDB/"
REQUIRED: defines location of StrixDB installation (where are StrixStore.dll, etc...) StrixFilename
"D:/RDF/strix.db"
Defines the path of the persistence file used to store graphs. NOTES: this parameter is not required (by default it is "./strix.db"). If not specified, file will be located in the directory of Apache httpd. StrixInitfile
"D:/RDF/initDatabase.lua"
Use this parameter to specify a file to run at creation (first opening) of the database file (specified with parameter StrixFilename). StrixDefaultURI "http://www.myfoaf.com/"
Defines the default graph URI. If not specified, use URI returned by gethostname C function. StrixTruncate
true
If this parameter is set to true, the database file is deleted at the server start. AddHandler strix-luapage-handler .hlua
Associate an extension file (here .hlua) to the dynamic pages (containing embedded lua code inside tags). AddHandler strix-lua-handler .lua
Associate an extension file (here .lua) to full interpreted Lua pages.
Advanced parameters (be carefull) StrixPoolsize
the number of pages cached in the poolSize. Each page has 4K. Big poolSize improves speed but consumes
default=100*1024
memory. StrixInitindex Size of the inital index (bitmap). StrixQuantum Size of the new allocated quantum (bitmap) when the allocated file is full. StrixSafe StrixNobuffer if true, wait disk write acknowledge event StrixWritethrough for each write transaction (safer but slower with SPARQL/Update transactions).
Dynamic Lua Pages With StrixDB, Lua can be used as a nice alternative to php. We propose 2 uses of Lua:
as script generating the HTTP response with print function. as embedded Lua code inside a file (code is inside tags).
First we have to configure Apache httpd.conf : AddHandler strix-luapage-handler .hlua AddHandler strix-lua-handler .lua
Explanations: the strix-luapage-handler handler associate file with a .hlua extension with the embedded Lua code execution. The strix-lua-handler handler associate .lua extension with the script generation. You could change the extensions as needed. These association are available for all Apache accessible files. To test, just copy the folder tests/scripts from the StrixDB distribution into your DocumentRoot folder specified in httpd.conf. Embedded Lua code Lua code must be included inside . See test.hlua for an example. The MIME type of the file is set by the Lua function apache.setContent
apache.setContent('text/html')
In the sample testCreatedRdf.hlua, the content type is set to application/rdf+xml; charset=utf-8 so that the browser will interpret the response as RDF/XML. Script generated responses In this case, all the file is generated by the Lua script. The sample test.lua shows how to generate an HTML file. The sample testCreateRdf.lua shows how to generate a RDF/turtle file. As for embedded code, the Lua function apache.setContent set the MIME type of the response.
Lua functions reference With dynamic Lua pages, a Lua table named 'apache' make the bindings with apache.
apache.host returns the hostname of the request.
apache.filename returns the filename requested (this file is the current file executed as a script for strix-lua-handler handler and sended for the strix-luapage-handler handler)
apache.method "GET" for a HTTP GET request, "POST" for a HTTP POST request.
apache.uri the uri of the request.
apache.authentication
returns 2 values : the user and authentication type.
apache.root () returns the root folder of Apache (specified with DocumentRoot in the Apache configuration file).
apache.datas () returns a table of the content datas (only avalaible with a POST request).
apache.headers () returns a table of the apache headers_i.
apache.args () returns a table of the arguments of the request. NOTE: with a POST request, use apache.datas() to get the content.
apache.setStatus ( ) Set the status of the response (for example, apache.setStatus( 404 ) ....)
apache.setContent ( ) Set the MIME type of the response.
Jun 10, 2008 - in making MAD a complete solution. :) Generated on Tue Jun 10 ...... Definition at line 862 of file huffman.c. 9.14.3.6 union huffpair const ...
Apr 4, 2007 - No intellectual key opens the door unto a total comprehension of human evolution. Theory ... other hand don't have an answer for everything. Theories ..... Using the same word for 19th or 21st century Western .... 1958, of South African
Nov 4, 2012 - Econometry of Financial Markets ... 3.4.2 Measure and Backtesting of the VaR and Active Management . ... Ë [pdf] Prsentation of R-projets and examples ... practical work is to provide an empirical case study of factor decom-.
Apr 6, 2018 - High Energy Accelerator Research Organization (KEK). 10:15. 10:50. 11:40 12:20. 13:25 13:50. 14:40 15:20. Building Research Institute (BRI).
8 avr. 1994 - nœud de peurs, en une boule de nerfs, afin de le priver de tout libre- ...... circuits impliquent à l'origine des pays comme Israël, l'Albanie, les.
Enregistrer les modifications. La procédure est la même lorsque vous voulez changer votre photo de profil, en dirigeant le curseur de votre souris sur l'icône.
In point of fact, history teaches that, like all the people of Europe, the English ... II. At the height of the Russian Revolution of 1917, the world was in the throes ... Surely, this proletariat would struggle in defense of his or her class interes
Graphic and Web/UI Design: Html5/CSS3/jQuery, web services, internal and external communication, corporate identity. 2011 - 2013. Travellution - Art Director ...
21 janv. 2013 - Brève description du pays: L'Institut National de Recherche en Education ... l'enseignement secondaire, l'enseignement supérieur et pour .... Département des Sciences et de la Technologie de l'Education ... développer des recherches f
Mineral precipitation in the pores of a rock may exert a force, which is called crystallization .... of most common minerals (calcite, quartz, gypsum, and halite) and.
17 sept. 2010 - l'AGEPoly, l'association des étudiants de l'EPFL. ... des tiers; en effet, vous pourriez être tenu responsable .... semble des formations menant à un Master d'ingénieur. ..... français. Le but de cet article est de donner une introduc
La catastrophe, le revirement, le coup de théâtre ne suffisent .... Mais je me demande si c'est le bon terme à ... mondial ou bien global, mais surtout planétaire.
Le cycle de vie d'un aliment commence souvent par la phase de production agricole. Celle-ci a connu de profondes .... sur toute la durée de son cycle de vie, soit sur une partie seulement. De plus, il existe de ... des externalités environnementales
movement. 1st HQ Platoon. Section du Cap Villard. This card allows all squads within the named platoon to spot, move, and/or fire. Each squad has its own dice; ...