ontology application management (oam) framework user tutorial part 1: database to ontology mapping...

Post on 29-Jan-2016

227 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Ontology Application Management (OAM) Framework

User Tutorial

http://text.hlt.nectec.or.th/oam/

• Part 1: Database to Ontology Mapping & Semantic Search System

• Part 2: Recommender Application Management

Last updated: Jan 29, 2012© LST Lab, NECTEC, Thailand

About OAM Framework

• To simplify creation and adoption of a semantic web application.– Provides common application templates that can

process the user's published RDF data.– User's programming skill is NOT REQUIRED in

building a prototype application.– Supports both RDF data publishing from databases

and building ontology-based applications• Semantic search, Recommender system applications.

2

Software used by and bundled with OAM Framework user’s

package• Apache Jena (http://jena.apache.org/)• D2RQ (http://d2rq.org/)• Hozo ontology editor (http://www.hozo.jp/)• Apache Tomcat (http://tomcat.apache.org/)

3

Note: OAM Framework is currently compatible ONLY with OWL ontologies exported from Hozo ontology editor. We plan to add support for OWL ontologies created using other ontology editors, such as Protege ontology editor very soon.

OAM Tutorial: Part 1 -Database to Ontology Mapping

& Semantic Search System

Semantic KM Tools WorkshopLST Lab, NECTEC

Required Software

1. Java Development Kit (JDK) 62. AppServ3. Navacat for MySQL4. Notepad++ or EditPlus5. Mozilla Firefox or Google Chrome Web

Browser6. OpenOffice Calc or Microsoft Excel

5

5-Step Process

1. Preparing OWL Ontology File2. Create a Database in MySQL3. Database to Ontology Mapping Configuration4. Search Application Configuration5. Start Search Application

6

Step 1/5: Preparing OWL Ontology File

Export OWL Ontology from Hozo Ontology Editor

8

9

Step 2/5 - Create a Database in MySQL

Create database data using Microsoft Excel or Openoffice Calc

player_sample.xls

country_sample.xls club_sample.xls11

Import database data to MySQL Database using Navicat

12

Create New Database

13

Import Data from Excel

14

15

16

Step 3/5: Database to Ontology Mapping Configuration

Set up Environment Variable

18

Set up internal database

19

<SKAF_HOME>/database.properties

Start Apache Tomcat

20

Start Mapping Web Interface• Open Firefox or Chrome

http://localhost:8080/config/

21

DB and Ontology Configuration

22

Class - Table Mapping

23

List of Class – Table Mapping

24

Property – Column Mapping

25

Datatype Property Mapping

26

Object Property Mapping

27

List of Property Mapping

28

Vocabulary Mapping

29

List of Vocabulary Mapping

30

Vocabulary Mapping

31

Save Configuration

32

Create/ Update RDF Data

33

Step 4/5: Search Application Configuration

Application Config

35

Search Property

• Properties that are allowed in Search Condition

36

Display Property

• Properties that are allowed to display search results

37

Change Search/Display Property

38

Save Configurations

39

Step 5/5: Start Search Application

Start Semantic Search Web Interface• Open URL: http://localhost:8080/search/

41

Search Conditions and Results

Class to search

Search condition

Display property

Search property

42

OAM Tutorial: Part 2 - Recommender Application

Management

Semantic KM Tools WorkshopLST Lab, NECTEC

4-Step Process

1. Prepare OWL ontology and update RDF data2. Recommender Application Configuration3. Create and Link Recommendation Rules4. Search and View Recommendation Results

Step 1/4: Prepare OWL ontology and update RDF data

Add recommendation class in ontology

1

2

Export OWL Ontology from Hozo Ontology Editor

47

48

Start Mapping Web Interface• Open Firefox or Chrome

http://localhost:8080/config/

49

Update New Ontology File

50

Save Configuration

51

Update RDF Data

52

** Please restart Tomcat after this step.**

Step 2/4: Recommender Application Configuration

Add a new class in Application Config

Player_Recommendation

Define a Recommendation Class

Click to define that this is a recommendation class

Save Configurations

56

Step 3/4: Create and Link Recommendation Rules

Start Recommender Web Interface• Open Firefox or Chrome

http://localhost:8080/recommender/

58

Add a new Recommendation

Recommendation Class

Define conditions of objects attached to this recommendation

Define conditions of objects attached to this recommendation (2)

Players whose age are greater than 23 years old and scored more than or equals to 2 goals

Define details for this recommendation

Assign a name to this recommendation

Add link to this recommendation

Define conditions for objects getting this recommendation

Step 4/4: Search and View Recommendation Results

Browse Recommendation

List of recommended players

View recommendation results

End of Tutorial

http://text.hlt.nectec.or.th/oam/

68

top related