Example: Jena and Fuseki

Slides:



Advertisements
Similar presentations
Requirements. UC&R: Phase Compliance model –RIF must define a compliance model that will identify required/optional features Default.
Advertisements

SPARQL Dimitar Kazakov, with references to material by Noureddin Sadawi ARIN, 2014.
Jena Sparql 4/11/2017.
Linked Data browsers. Linked Data Browser One reason DBpedia is successful is its data browser for humans Given a URL to a Dbpedia resourse, it shows.
Triple Stores
Let’s try Oracle. Accessing Oracle The Oracle system, like the SQL Server system, is client / server. For SQL Server, –the client is the Query Analyser.
Introduction to Backend James Kahng. Install Node.js.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 8 Introduction to Printers in a Windows Server 2008 Network.
An Introduction to ASP.NET Web Pages 2 Module 1: Webmatrix Installation and Your First Web Site Tom Perkins.
Triple Stores.
1 Yasin N. Silva Arizona State University This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
WP 5 Data management & analysis Michel Bohms and Philomena M. Bluyssen – TNO Isabella Annesi-Maesano - UMPC Paris 06 Aileen Yang and Alena Bartonova –
Integrating XML with Microsoft SQL Server ©NIITeXtensible Markup Language/Lesson 9/Slide 1 of 31 Objectives In this lesson, you will learn to: * Generate.
RDF Triple Stores Nipun Bhatia Department of Computer Science. Stanford University.
Oracle8 JDBC Drivers Section 2. Common Features of Oracle JDBC Drivers The server-side and client-side Oracle JDBC drivers provide the same basic functionality.
Example: Jena and Fuseki
Java Mobile Apps with GWT & PhoneGap Josh Marinacci, webOS Developer Advocate.
Entity Recognition via Querying DBpedia ElShaimaa Ali.
SchwartzGBIF Nodes III29 April 2003 DiGIR Portal Installation And Configuration.
Application Servers: Tomcat. What is an application server? Servlets are Java’s answer to server-side programming. Servlets are a special type of Java.
Apache Web Server v. 2.2 Reference Manual Chapter 1 Compiling and Installing.
A Little More Mihail Stoynov mihail.stoynov.com mihail.stoynov.com.
Vim Editor and Unix Command gcc compiler Computer Networks.
 Open source RDF framework in Java.  Supports RDF Schema inferencing and querying.  Supports SPARQL 1.1 query, update, federated query.
Steven Seida D2RQ Blog Integration Lab. Data to RDF Integration Approaches* 1 of 2 *Summarized from Ch 9 of Semantiic Web Programming, 2009, by Hebeler.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 12 Understanding database managers on z/OS.
RDF and triplestores CMSC 461 Michael Wilson. Reasoning  Relational databases allow us to reason about data that is organized in a specific way  Data.
EXAM 1 NEXT TUESDAY…. EXAMPLE QUESTIONS 1.Why is the notion of a “state” important in relational database technology? What does it refer to? 2.What do.
A Short Tutorial to Semantic Media Wiki (SMW) [[date:: July 21, 2009 ]] At [[part of:: Web Science Summer Research Week ]] By [[has speaker:: Jie Bao ]]
Ontology engineering Lab #8 – October 20, 2014.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
ZHT Hands-on tutorial How to install, configure and run ZHT on a multi-nodes cluster.
Triple Stores. What is a triple store? A specialized database for RDF triples Can ingest RDF in a variety of formats Supports a query language – SPARQL.
RDF and Relational Databases
Everyday Tools for the Semantic Web Developer Rob Vesse Cray Inc.
CMPE58H Project Progress Presentation QAPoint H.Tuğçe Özkaptan Gözde Kaymaz Serkan Kırbaş
© Copyright 2014 STI INNSBRUCK OpenRDF & SPARQL Short guide on how to use the STI LOI OpenRDF workbench.
In this session, you will learn to: Understand managed code Create managed database objects Define the Hypertext Transfer Protocol endpoints Implement.
7.5 Using Stored-Procedure and Triggers NAME MATRIC NUM GROUP Muhammad Azwan Bin Khairul Anwar CS2305A Muhammad Faiz Bin Badrol Shah CS2305B.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
1 Knowledge Representation XI – IKT437 Knowledge Representation XI – IKT437 Part I RDF Jan Pettersen Nytun, UiA Apache Jena.
Integrating ArcSight with Enterprise Ticketing Systems
RDF and RDB 2 D2RQ.
Introduction to Computers, the Internet and the World Wide Web
Data Virtualization Demoette… Custom Java Procedures
Web Technologies IT230 Dr Mohamed Habib.
Introduction and Principles
Triple Stores.
RDF and RDB 2 D2RQ.
Data Virtualization Demoette… JDBC Clients
Middleware independent Information Service
Linked Data browsers.
DATA MINING Python.
Jan Pettersen Nytun, UiA
PHP / MySQL Introduction
Jena Sparql (for Mac) 9/22/2018.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Shodan.
Triple Stores.
CPRE 583 Reconfigurable Computing (Tools overview)
OmniEdit Brought to you by:.
CSE 491/891 Lecture 21 (Pig).
Cordova & Cordova Plugin Installation and Management
These slides are for reference only. They are not "lecture notes"
Getting Started With Solr
RDF and RDB 2 D2RQ.
Triple Stores.
Triple Stores.
Web Servers (IIS and Apache)
Presentation transcript:

Example: Jena and Fuseki

Jena and Fuseki Jena is a solid and widely used system Scales reasonably well using its TDB native store Has support for reasoning via a native rules engine and an API for DIG-compliant reasoners Subsets run on Android phones Fuseki is a sparql endpoint that comple-ments Jena Both are easy to install and use with Java or any other language via the API or endpoint

Download jena and fuseki curl -O http://www.apache.org/dist/jena/binaries/apache-jena-2.11.1.tar.gz curl -O http://www.apache.org/dist/jena/binaries/jena-fuseki-1.0.1-distribution.tar.gz > tar -xzf jena-fuseki-0.2.6-distribution.tar.gz > tar -xzf apache-jena-2.10.0.tar.gz > rm *.gz > ls apache-jena-2.10.0 jena-fuseki-0.2.6 > export JENA=/Users/finin/.../apache-jena-2.10.0/ export FUSEKI=/Users/finin/S.../jena-fuseki-0.2.6/ export TS=/Users/finin/S…/examples/triplestore/ RDF stores can be divided into 3 broad categories based upon how they are implemented. These are not precisely defined terms with rigid boundaries but something that can serve as rough guide to what a triple store is. Native Stores: Provide support for transactions, own SQL compiler and generally their own procedure language. Will explain in detail what I mean by this term in the later slides.

Start the Fuseki server # create directory for the RDF data > Mkdir $TS/MYTDB # launch server allowing updates, using our data directory # and naming the default store ds > cd $FUSEKI > fuseki-server --update --loc=/Users/finin/MYTDB /ds & 17:01 INFO Server :: TDB dataset: directory=/Users/finin/MYTDB 17:01 INFO Server :: Dataset path = /ds 17:01 INFO Server :: Fuseki 0.2.5 2012-10-20T17:03:29+0100 17:01 INFO Server :: Started 2013/03/31 17:01:20 EDT on port 3030 # put some data into it from a file > s-put http://localhost:3030/ds/data default Data/books.ttl

Add some data > Head Data/books.ttl @prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix vcard: <http://www.w3.org/2001/vcard-rdf/3.0#> . @prefix ns: <http://example.org/ns#> . @prefix : <http://example.org/book/> . > s-put http://localhost:3030/ds/data default Data/books.ttl 18:00 INFO Fuseki :: [2] PUT http://localhost:3030/ds/data?default 18:00 INFO Fuseki :: [2] 204 No Content

Access Fuseki via Browser

Control panel: select the store

Enter a SPARQL query

Here are the results

Other interactions From the control panel you can also Enter SPARQL update queries Upload a file of RDF data into the store To bulk load data, use Jena’s tdbloader command Loads at ~50K triples/sec ~ 80 minutes to ~250M triples in DBpedia’s dataset

For CIA Fact Book PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX ciafb: <http://www.cia.gov/cia/publications/factbook#> SELECT * WHERE { ?C ciafb:Name ?N; ciafb:Area ?A } limit 10