LoginSignup
0
0

More than 5 years have passed since last update.

Virtuoso 7とHtmlPivotalViewerをUbuntu 64bitにインストール

Last updated at Posted at 2013-11-24

こちらの手順にしたがって、Virtuoso 7とHtmlPivotalViewerをUbuntu 12.04 LTS 64bitにインストールしたメモ。

githubからvirtuoso-opensourceをgit cloneし、stable7ブランチに切り替えておく。

$ git checkout stable/7

依存パッケージのインストール

$ sudo apt-get install libssl-dev
$ sudo apt-get install autoconf automake bison flex gawk gperf libtool
$ ./autogen.sh

configure

isqlの名前が衝突する可能性があるとのことで、注意書きにしたがってisql-vとリネームする設定でconfigureを実行した。

$ CFLAGS="-O2 -m64"
$ export CFLAGS
$ ./configure --program-transform-name="s/isql/isql-v/"
...
Virtuoso Open Source Edition (Column Store) 7.0.0 configuration summary
=======================================================================

Installation variables
  layout                  default
  prefix                  /usr/local/virtuoso-opensource
  exec_prefix             ${prefix}

Installation paths
  programs                ${exec_prefix}/bin
  include files           ${prefix}/include
  libraries               ${exec_prefix}/lib
  manual pages            ${datarootdir}/man
  vad packages            ${datarootdir}/virtuoso/vad
  database                ${prefix}/var/lib/virtuoso/db
  hosting                 ${exec_prefix}/lib/virtuoso/hosting

Options
  BUILD_OPTS               xml ssl imsg pldebug pthreads

ビルドとインストール

$ make
... (10分くらい)
$ make check
... (20分くらい)

make checkは8902 passed, 6 failedだった。
致命的でないように見えたので、中の人にメールを送った上でインストール続行。

$ sudo make install

サーバの起動

$ export VIRTUOSO_HOME=/usr/local/virtuoso-opensource
$ export PATH=$PATH:$VIRTUOSO_HOME/bin
$ cd $VIRTUOSO_HOME/var/lib/virtuoso/db/
$ sudo $VIRTUOSO_HOME/bin/virtuoso-t -f
...
13:34:50 Server online at 1111 (pid 29590)

動作確認

$ isql-v
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL>

コンソールが無事に立ち上り、 http://localhost:8890/conductor にもアクセス、ログインできた。

HtmlPivotalViewerのセットアップと動作確認

前回中断した、HtmlPivotalViewerのセットアップをやってみる。

前回失敗したsparql_cxml_dav.vadのインストールが、今回は通った。

SQL> vad_install('/tmp/sparql_cxml_dav.vad');
...
00000         Installation of "sparql_cxml" is complete.

http://localhost:8890/HtmlPivotViewer にアクセスし、右上のeditを押して現れる"Dynamic Collection"に、手順にあったサンプルデータ(ドイツで行われたイベントのデータ?)を入れてみる。

Query Service Endpoint フィールド

http://linkeddata.uriburner.com/sparql

Query Text フィールド

describe ?s from <http://www.meetup.com/Frankfurt-Semantic-Web-Meetup/members/> where {?s a foaf:Person} limit 2000

右下の"View"ボタンを押すと、サンプルデータにある人の顔がたくさん表示された。

左のサイドペインでファセット表示や条件の絞り込みがあって、例えば opl:localityプロパティが Frankfurt のデータが30件あることが分かり、チェックすると右側の画像が絞り込まれる。

qrcode? image_magick?

手順どおり、virtuoso.iniに下の2行を追加してサーバを再起動すると、HtmlPivotalViewerへのレスポンスが500になってしまった。

Load6=plain, im
Load7=plain, qrcode

また、エンドポイントを http://localhost:8890/sparql にしてローカルのデータをとろうとしても500が返ってくる。HtmlPivotalViewerについては一旦この辺で追うのをやめよう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0