Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

13
KIT Universität des Landes Baden-Württemberg und nationales Forschungszentrum in der Helmholtz-Gemeinschaft www.kit.edu Using the example of the SMW Surgipedia Visualization of Semantic Relations: The Knowledge Base Visualizer Tutor: Benedikt Kämpgen (KIT) Student: Tim Stein

description

Based on VisualRDF, the Knowledge Base Visualizer (see demo below) allows to visualize RDF-data delivered from a SPARQL-Endpoint as a netzwork-graph. It is possible, to filter nodes and links via and their apperance (color, shape, size) via two seperate SPARQL-queries completely customizable.

Transcript of Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

Page 1: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

KIT – Universität des Landes Baden-Württemberg und

nationales Forschungszentrum in der Helmholtz-Gemeinschaft www.kit.edu

Using the example of the SMW Surgipedia

Visualization of Semantic Relations:

The Knowledge Base Visualizer Tutor: Benedikt Kämpgen (KIT)

Student: Tim Stein

Page 2: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

3

Motivation

Surgipedia is a SMW to organize and structure

knowledge and terminologies of

„SFB/Cognition-Guided Surgery“

Many Semantic Relations, authors, pages,…

Emerging Questions:

Which Ontologies are widely spread and used?

Who is working on project A, B, C…?

What are the most interconnected people on the SMW?

Tim Stein – Vertrauen und Sicherheit im E-Commerce

02.10.2014

Page 3: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

4

The answers are alreadystored in semantic

relations. But not easily readable.

SPARQL-Input: („Show all participants connected with project A01“)

Output:

Tim Stein – Sicherheit und Vertrauen im E-Commerce 02.10.2014

PREFIX surgi:<http://surgipedia.sfb125.de/wiki/Special:URIResolver/>

SELECT ((?firstLevelNode)) as ?nodetitle (?firstLevelNode) as ?nodeuri

(if(?type=surgi:Category-3ASFB_participant,"rect","circle")) as ?shape

(if(?type=surgi:Category-3ASFB_participant,"#ff0000","#0000ff")) as

?color WHERE {

?firstLevelNode ?firstLink ?target .

?firstLevelNode rdf:type ?type

FILTER ((?type = surgi:Category-3ASFB_participant OR ?type =

<http://semantic-mediawiki.org/swivt/1.0#Subject>) AND

(?target=surgi:A01 OR ?firstLevelNode=surgi:A01))

} LIMIT 100

Page 4: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

5

Idea: Visualizing SPARQL-Query-Results in a

customizable way.

Graphs are easier to understand for the human brain than lists

BUT: Displayed semantic data has to be filtered by use case.

Visualization has to be very customizable to be useful.

Tim Stein – Vertrauen und Sicherheit im E-Commerce

02.10.2014

Page 5: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

6

Knowledge Base Visualizer - Context

Knowledge Base Visualizer is…

a tool to visualize SPARQL-Query results as

a graph

a result of Seminar Semantic Mediawiki at

the Karlsruhe Insitute of Technology, Tutor:

Benedikt Kämpgen

Published on GitHub

Tim Stein – Sicherheit und Vertrauen im E-Commerce 02.10.2014

Page 6: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

7

Idea: Filtering and customizing Visualization

via SPARQL

Two SPARQL-Queries to filter data:

Nodes

Links

Controlling visualization also by SPARQL-Variables

Shape

Color

Size

Tim Stein – Sicherheit und Vertrauen im E-Commerce 02.10.2014

Page 7: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

8

Variables to customize the visualization

Nodes:

Links:

Tim Stein – Sicherheit und Vertrauen im E-Commerce 02.10.2014

Variable Description

Nodeuri URI of the node

Nodetitle Dísplayed Title in graph

shape Rectangle, circle or ellipse

Color Hexadecimal color code

size Displayed size in pixel

priority Styling priority in case of one node

beeing selected multiple times with

different stylings

Variable Description

source URI of source node

target URI of target node

linkuri URI describing the link type

linktitle Displayed link title

Page 8: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

9

Demo - SPQARL

„Show all participants conntected to project A01 and mark ASFB-Participants with a red

rectangle.“

Node-Query:

PREFIX surgi:http://surgipedia.sfb125.de/wiki/Special:URIResolver/

SELECT ((?firstLevelNode)) as ?nodetitle (?firstLevelNode) as ?nodeuri

(if(?type=surgi:Category-3ASFB_participant,"rect","circle")) as ?shape

(if(?type=surgi:Category-3ASFB_participant,"#ff0000","#0000ff")) as

?color WHERE {

?firstLevelNode ?firstLink ?target .

?firstLevelNode rdf:type ?type

FILTER ((?type = surgi:Category-3ASFB_participant OR ?type =<http://semantic-mediawiki.org/swivt/1.0#Subject>) AND

(?target=surgi:A01 OR ?firstLevelNode=surgi:A01))

}

Link-Query:

PREFIX surgi:http://surgipedia.sfb125.de/wiki/Special:URIResolver/

SELECT ((?firstLevelNode)) as ?source (?target) as ?target (?link) as

?linkuri (?link) as ?linktitle {

?firstLevelNode ?link $target .

FILTER (?target = surgi:A01)

}

Tim Stein – Vertrauen und Sicherheit im E-Commerce

02.10.2014

Page 9: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

10

Demo - Result

„Show all participants conntected to project A01 and mark ASFB-Participants with a red

rectangle.“ (Live-Demo)

Tim Stein – Vertrauen und Sicherheit im E-Commerce

02.10.2014

Page 10: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

11

Demo 2 - Result

„Show all nodes connected to project A01, recursively up to 2 levels“ (in different colors).

(Live-Demo)

Tim Stein – Vertrauen und Sicherheit im E-Commerce

02.10.2014

Project A01

Directly connected (1st level)

Indirectly connected (2nd level)

Page 11: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

12

Demo 2 - Result

„Show all nodes connected to project A01, recursively up to 2 levels“ (in different colors).

(Live-Demo)

Tim Stein – Vertrauen und Sicherheit im E-Commerce

02.10.2014

Project A01

Directly connected (1st level)

Indirectly connected (2nd level)

Page 12: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

13

Lessons Learned

Filtering data and customization is key to usefulness

Large amounts of nodes and links still a challenge

Ideas

Dynamic frontend filters

Manually moving of nodes

HTML5 and JavaScript Technology is great, but can easily drain the

computer‘s resources

Tim Stein – Vertrauen und Sicherheit im E-Commerce

02.10.2014

Page 13: Visualisualisation of Semantic Relations, Tim Stein, SMWCon Fall 2014

FZI, AIFB - Seminar Entwicklung betrieblicher

Informationssysteme

14

Current State and Discussion

Current State

Functional prototype (Usability and performance improvements)

Continuing Development is possible

Published under Apache License on Github

Questions?

Use Cases? Ideas?

Tim Stein – Vertrauen und Sicherheit im E-Commerce

02.10.2014