Skip to content
Ian Ibbotson edited this page Feb 11, 2015 · 6 revisions

OS Config

apt-get install dpkg-dev build-essential autoconf automake bison build-essential checkinstall flex 
apt-get install gawk gperf libiodbc2 libiodbc2-dev libssl-dev libtool python-dev 
apt-get install odbcinst1debian2
apt-get install unixodbc
git clone https://github.com/openlink/virtuoso-opensource.git
cd virtuoso-opensource/
./autogen.sh 
./configure --with-layout=debian
make
make install
cp debian/init.d /etc/init.d/virtuoso
chmod ugo+rx /etc/init.d/virtuoso

To enable remote query::

grant select on "DB.DBA.SPARQL_SINV_2" to “SPARQL”;
grant execute on "DB.DBA.SPARQL_SINV_IMP" to "SPARQL";

Test federated sparql

[See https://thoughtsasaservice.wordpress.com/2012/05/17/sparql-1-1-and-openlink-virtuoso-first-steps-with-federated-queries/]

SELECT ?p ?o
WHERE
{
 SERVICE <http://DBpedia.org/sparql >
 { SELECT ?p ?o
     WHERE { <http://dbpedia.org/resource/Saquarema > ?p ?o . }
 }
}