Please restart Tomcat after this step.

advertisement

Ontology Application

Management (OAM) Framework

User Tutorial

• Part 1: Database to Ontology Mapping &

Semantic Search System

• Part 2: Recommender Application Management http://lst.nectec.or.th/oam/

© LST Lab, NECTEC, Thailand

Last updated: Aug 28, 2013

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/ )

Note: OAM framework was originally developed as a companion application framework for OWL ontologies developed using Hozo ontology editor. It also works with OWL ontologies created using Protege 4.x Ontology Editor (although with some limitation).

3

OAM Tutorial: Part 1 -

Database to Ontology Mapping

& Semantic Search System

Semantic KM Tools Workshop

LST Lab, NECTEC

Required Software

1. Java Development Kit (JDK) 6

2. AppServ

3. Navicat for MySQL

4. Notepad++ or EditPlus

5. Mozilla Firefox or Google Chrome Web

Browser

6. OpenOffice Calc or Microsoft Excel

5

5-Step Process

1. Preparing OWL Ontology File

2. Create a Database in MySQL

3. Database to Ontology Mapping Configuration

4. Search Application Configuration

5. 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.xls

11

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

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 property

Search condition

Display property

42

OAM Tutorial: Part 2 -

Recommender Application

Management

Semantic KM Tools Workshop

LST Lab, NECTEC

4-Step Process

1. Prepare OWL ontology and update RDF data

2. Recommender Application Configuration

3. Create and Link Recommendation Rules

4. Search and View Recommendation Results

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

Add recommendation class in ontology

2

1

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

** Please restart Tomcat after this step.**

52

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://lst.nectec.or.th/oam/

68

Download