Академический Документы
Профессиональный Документы
Культура Документы
a SPARQL endpoint
2012 VIVO Implementation
Fest
SPARQL Endpoint
Overview
University of Florida
VIVO (http://sparql.vivo.ufl.edu/sparql.html)
Bio2RDF
PubMed SPARQL (
http://pubmed.bio2rdf.org/sparql)
Fuseki Installation
JAVA 6 JDK
Can I use the open-jdk?
Yes, you can. However, if you are installing it on the same
server as your VIVO, you need to make sure it is configured
correctly not to interfere with Sun Java and the VIVO application
What is Java?
Write once, run anywhere popular quote about java
Installation
Debian/Ubuntu
apt-get install sun-java6-jdk
apt-get install openjdk-6-jre
Centos/Redhat
yum install java (need to configure alternatives)
yum install java-1.6.0-openjdk
Apache
Why do I need Apache too?
Allows for AJP for redirecting 2020 to a standard
web port (80, 443)
What is Apache?
a secure, efficient and extensible server that
provides HTTP services in sync with current
HTTP standards httpd.apache.org
Installation
Debian/Ubuntu apt-get install apache2
Centos/Redhat yum install httpd
Windows: download and follow the instructions
13
Fuseki
Download Fuseki (tar/zip)
wget
https://repository.apache.org/content/repositories/snapshots/
org/apache/jena/jena-fuseki/0.2.2-incubating-SNAPSHOT/jena-fu
seki-0.2.2-incubating-20120506.050243-16distribution.tar.gz
Supporting Libraries
Download Jena-ARQ-2.9.9
wget
http://www.apache.org/dist/incubator/jena/jena-arq-2.9.0-incubating/jena-ar
q-2.9.0incubating.jar
Download Jena-IRI-0.9.0
wget
http://www.apache.org/dist/incubator/jena/jena-iri-0.9.0-incubating/jena-iri-0
.9.0incubating.jar
Download Jena-SDB-1.3.4
wget http://sourceforge.net/projects/jena/files/SDB/SDB-1.3.4/sdb-1.3.4.zip/
download
cp download sdb-1.3.4.zip
Download MySQL-Connector-Java-5.1.19
wget
http://mirrors.ibiblio.org/pub/mirrors/maven2/mysql/mysql-connector-java/5
.1.19/mysql-connector-java-5.1.19.
jar
15
Fuseki Configuration
17
18
:
<#> .
fuseki: <http://jena.apache.org/fuseki#> .
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
rdfs:
<http://www.w3.org/2000/01/rdf-schema#> .
tdb:
<http://jena.hpl.hp.com/2008/tdb#> .
ja:
<http://jena.hpl.hp.com/2005/11/Assembler#> .
jumble:
<http://rootdev.net/vocab/jumble#> .
sdb: <http://jena.hpl.hp.com/2007/sdb#> .
sdb:DatasetStore ;
25
Go to www.example.com:3030
Select Control Panel from the Server Management area
Select /VIVO from the dropdown that appears, and click Select
Lets enter a SPARQL query to test:
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX geo: <http://aims.fao.org/aos/geopolitical.owl#>
PREFIX core: <http://vivoweb.org/ontology/core#>
#
# This example query gets 50 geographic locations
# and (if available) their labels
#
SELECT ?countryName ?iso3
WHERE {
?country rdf:type core:Country
OPTIONAL { ?country geo:nameListEN ?countryName }
OPTIONAL { ?country geo:codeISO3 ?iso3 }
}
LIMIT 50
Select Text from the Output dropdown
Click Get Results
If the result returned 50 lines, then you now have a working endpoint. CONGRATULATIONS!
29
Securing Fuseki
Basic - Firewall
The easiest method of protecting your
SPARQL endpoint would be a firewall
You can block access to the specific
ports that Fuseki is running on
This is more a kin to using a machete,
when a scalpel might be better suited
Works well if you have no interest in
sharing data with the outside world
31
33
Questions?