vti knowledge database: a linkeddata project

25
Knowledge Database by VTi A LinkedData store

Upload: tom-klaasen

Post on 11-May-2015

762 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: VTi Knowledge Database: a LinkedData project

Knowledge Databaseby VTi

A LinkedData store

Page 2: VTi Knowledge Database: a LinkedData project

Tom Klaasen

• Developer at (http://10to1.be)

• Consultant to VTi

• Working on Knowledge Database

Page 3: VTi Knowledge Database: a LinkedData project

LinkedData

• Data

• Everything has a URI

• RDF

• HTTP

• Link with other datasources

Page 4: VTi Knowledge Database: a LinkedData project

Ruby

• Programming language

• ˚1993

• Made popular by Rails ~1995

• Object-oriented

• Dynamic typing (“scripting”)

• Duck typing

Page 5: VTi Knowledge Database: a LinkedData project

Rails

• Web application framework

• “Convention over configuration”

• OR mapping

• Model - View - Controller

Page 6: VTi Knowledge Database: a LinkedData project

Ruby and Rails

• Open Source

Page 7: VTi Knowledge Database: a LinkedData project

Architecture

DB

Server

Desktop PC

Internet

Page 8: VTi Knowledge Database: a LinkedData project

OR Mapping

DB

Server

Page 9: VTi Knowledge Database: a LinkedData project

OR Mapping

Person Production

peoplepeople_prod

uctionsproductions

Page 10: VTi Knowledge Database: a LinkedData project

OR Mapping in Rails

• ActiveRecord

Page 11: VTi Knowledge Database: a LinkedData project

• Model

• View

• Controller

MVC

Model

View

Controller

Page 12: VTi Knowledge Database: a LinkedData project

Rails

• Model: ActiveRecord

• View: ActionView

• Controller: ActionController

Page 13: VTi Knowledge Database: a LinkedData project

How is this interesting?

• Replace the HTML view with an RDF view!

Page 14: VTi Knowledge Database: a LinkedData project

Code

Page 15: VTi Knowledge Database: a LinkedData project

ReST

• Service Oriented Architecture

• HTTP methods

• Simple!

Page 16: VTi Knowledge Database: a LinkedData project

ReST principles

• Everything has a URI

• Actions are defined via URIs

• Actions are executed with HTTP methods: GET, PUT, POST, DELETE

Page 17: VTi Knowledge Database: a LinkedData project

Rails and ReST

• ActiveResource

Page 18: VTi Knowledge Database: a LinkedData project

LinkedData and Rails

• Data : ActiveRecord

• Everything has a URI: ReST

• HTTP : ReST

• RDF : MVC, writing plugin

• Link with other datasources: Enrichment

Page 19: VTi Knowledge Database: a LinkedData project

VTi

• People

• Organisations

• Productions

• Documentation

Page 20: VTi Knowledge Database: a LinkedData project

VTi

• Existing database in MS SQL Server

• Migrated to PostgreSQL

Page 21: VTi Knowledge Database: a LinkedData project

VTi Migration

• Migration script in Ruby (+ ActiveRecord)

Page 22: VTi Knowledge Database: a LinkedData project

Migration opportunities

• Data cleaning

• Data restructuring

• Discovering new data structures:

• Seasons

• Genres

• …

Page 23: VTi Knowledge Database: a LinkedData project

Seasons

Page 24: VTi Knowledge Database: a LinkedData project

State

• Basic RDF: automatically

• Mid-term future: plugins

• Near future:

• add existing ontologies

• enrichment with other datasources