Page 1
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
Page 2
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
Page 3
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.
Page 4
OAM Tutorial: Part 1 -Database to Ontology Mapping
& Semantic Search System
Semantic KM Tools WorkshopLST Lab, NECTEC
Page 5
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
Page 6
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
Page 7
Step 1/5: Preparing OWL Ontology File
Page 8
Export OWL Ontology from Hozo Ontology Editor
8
Page 10
Step 2/5 - Create a Database in MySQL
Page 11
Create database data using Microsoft Excel or Openoffice Calc
player_sample.xls
country_sample.xls club_sample.xls11
Page 12
Import database data to MySQL Database using Navicat
12
Page 13
Create New Database
13
Page 14
Import Data from Excel
14
Page 17
Step 3/5: Database to Ontology Mapping Configuration
Page 18
Set up Environment Variable
18
Page 19
Set up internal database
19
<SKAF_HOME>/database.properties
Page 20
Start Apache Tomcat
20
Page 21
Start Mapping Web Interface• Open Firefox or Chrome
http://localhost:8080/config/
21
Page 22
DB and Ontology Configuration
22
Page 23
Class - Table Mapping
23
Page 24
List of Class – Table Mapping
24
Page 25
Property – Column Mapping
25
Page 26
Datatype Property Mapping
26
Page 27
Object Property Mapping
27
Page 28
List of Property Mapping
28
Page 29
Vocabulary Mapping
29
Page 30
List of Vocabulary Mapping
30
Page 31
Vocabulary Mapping
31
Page 32
Save Configuration
32
Page 33
Create/ Update RDF Data
33
Page 34
Step 4/5: Search Application Configuration
Page 35
Application Config
35
Page 36
Search Property
• Properties that are allowed in Search Condition
36
Page 37
Display Property
• Properties that are allowed to display search results
37
Page 38
Change Search/Display Property
38
Page 39
Save Configurations
39
Page 40
Step 5/5: Start Search Application
Page 41
Start Semantic Search Web Interface• Open URL: http://localhost:8080/search/
41
Page 42
Search Conditions and Results
Class to search
Search condition
Display property
Search property
42
Page 43
OAM Tutorial: Part 2 - Recommender Application
Management
Semantic KM Tools WorkshopLST Lab, NECTEC
Page 44
4-Step Process
1. Prepare OWL ontology and update RDF data2. Recommender Application Configuration3. Create and Link Recommendation Rules4. Search and View Recommendation Results
Page 45
Step 1/4: Prepare OWL ontology and update RDF data
Page 46
Add recommendation class in ontology
1
2
Page 47
Export OWL Ontology from Hozo Ontology Editor
47
Page 49
Start Mapping Web Interface• Open Firefox or Chrome
http://localhost:8080/config/
49
Page 50
Update New Ontology File
50
Page 51
Save Configuration
51
Page 52
Update RDF Data
52
** Please restart Tomcat after this step.**
Page 53
Step 2/4: Recommender Application Configuration
Page 54
Add a new class in Application Config
Player_Recommendation
Page 55
Define a Recommendation Class
Click to define that this is a recommendation class
Page 56
Save Configurations
56
Page 57
Step 3/4: Create and Link Recommendation Rules
Page 58
Start Recommender Web Interface• Open Firefox or Chrome
http://localhost:8080/recommender/
58
Page 59
Add a new Recommendation
Recommendation Class
Page 60
Define conditions of objects attached to this recommendation
Page 61
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
Page 62
Define details for this recommendation
Assign a name to this recommendation
Page 63
Add link to this recommendation
Page 64
Define conditions for objects getting this recommendation
Page 65
Step 4/4: Search and View Recommendation Results
Page 66
Browse Recommendation
List of recommended players
Page 67
View recommendation results
Page 68
End of Tutorial
http://text.hlt.nectec.or.th/oam/
68