åèãµã¤ã
ã¾ãããã±ã¼ã¸ãææ°çã¸
% sudo aptitude update % sudo aptitude safe-upgrade
ã¤ã³ã¹ãã¼ã«ã«å¿ è¦ãªããã±ã¼ã¸ã確èª
Building Virtuoso Open-Source Editionã«ããã¤ã³ã¹ãã¼ã«ã«å¿ è¦ãªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«æ¸ã¿ãã確èªããã
ã¤ã³ã¹ãã¼ã«ããå ´åã
% sudo apt-get install libssl-dev % sudo apt-get install autoconf automake bison flex gawk gperf libtool
確èªããå ´å
% dpkg -l | grep ããã±ã¼ã¸å
ãã¦ã³ãã¼ãï¼ã¤ã³ã¹ãã¼ã«
gitãç¨ãã¦ã½ã¼ã¹ã³ã¼ãããã¦ã³ãã¼ã
% git clone git://github.com/openlink/virtuoso-opensource.git % cd virtuoso-opensource.git % git branch -a ï¼ãã¼ã¸ã§ã³ã確èªï¼ % git checkout stable/7 ï¼å®å®çã®7ç³»ãé¸æï¼ % git pull origin stable/7 ï¼å®å®çã®ã½ã¼ã¹ã³ã¼ãåå¾ï¼ % ./autogen.sh
Makefileã®ä½æã64bit OSãªã®ã§Building Virtuoso Open-Source Edition: Linux 64-bitã«åºã¥ãç°å¢å¤æ°ãæå®ãã¾ããThe isql commandã«åºã¥ããisqlããªãã¼ã ãããã¦ãrubyã¨é£æºããããRubyã¯RVMã使ã£ã¦ç°å¢ãç¨æãã¦ãããã©ãç¹ã«ç¹æ®ãªæå®ã¯ä¸è¦ã ã£ãï¼Ruby 2.1.0 + Ruby on Rails 4.0.2ï¼
% ./configure --program-transform-name="s/isql/isql-v/" --enable-ruby |& tee configure.log % make |& tee make.log % make check % sudo make install
使ã£ã¦ããã·ã§ã«ã®è¨å®ãã¡ã¤ã«ï¼~/.bashrcãªã©ã«ï¼ãã¹ã®è¿½å ã
## For Virtuoso export PATH=$PATH:/usr/local/virtuoso-opensource/bin
åæ ãããã
% source ~/.bashrc
èµ·å確èª
% sudo /usr/local/virtuoso-opensource/bin/virtuoso-t -fd \\ -c /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.ini
http://localhost:8890 ã§ã¢ã¯ã»ã¹ã§ãããGetting Startedã«æ¸ãã¦ããã¨ãããããã©ã«ãIDã¯ãdbaããããã©ã«ããã¹ã¯ã¼ãã¯ãdbaãã§ãã°ã¤ã³ããã
RDFãã¡ã¤ã«ã®æ ¼ç´
http://localhost:8890 ã§ã¢ã¯ã»ã¹ãããConductorããã¯ãªãã¯ãã¦ãã°ã¤ã³ã
- ãLinked Dataããã¯ãªãã¯
- ãQuad Store Uploadããã¯ãªãã¯
- ãFileãã®ã©ã¸ãªãã¿ã³ãé¸æããç¨æããRDFãã¡ã¤ã«ãã¢ãããã¼ããããã試ãRDFãã¡ã¤ã«ã®ä½ãæ¹ã¯こちら
- ãNamed Graph IRIãããhttp://localhost:8890/mybibãã«ãã¦ãUploadããã¿ã³ãæ¼ã
SPARQLã使ã£ãæ¤ç´¢
- ãSPARQLããã¯ãªãã¯ãã
- ãDefault Graph IRIãã«ãhttp://localhost:8890/mybibãï¼æ¬å½ã«å¿ è¦ãã¯èªä¿¡ãªãï¼
- ãQueryãã«ä»¥ä¸ãå ¥åããä½æããRDFã¨ããã®çµæãåºåããããOK
SELECT * WHERE { ?s rdf:type ?o }