Top Banner
The Scientific Journal of Cihan University Slemani PP: 01-17 Volume (4), Issue (1), june 2020 ISSN 2520-7377 (Online), ISSN 2520-5102 (Print) DOI: http://dx.doi.org/10.25098/4.1.22 1 Abstract: Ontology data is one of the well-known dataset on web and it is the main dataset of semantic web. Apriori algorithm is one of the best-known algorithms of association rule mining. The result of ontology will be effective by using association rule mining with it. Ontology is rich sources of data to feed Association rule mining algorithms. This paper focuses on how Ontology and data mining can combine. First of all, the semantic web data (ontology, RDF, RDFS or RDFa) need to be prepare and valid. Then, from the semantic web data, traditional dataset will be extracted from ontology using SPARQL as a query language for semantic web. Next, we are going to mining the OWL data using one of the association rule mining (ARM) algorithm. Apriori is one of association rule mining algorithm, which can use to mine frequent item-sets. Furthermore, the proposed model transforms semantic web to traditional dataset using SPARQL query language. Then, to obtain important information from the traditional dataset, therefore new relationships produced between semantic web and data mining, will be generated. Keywords :Ontology, Semantic web, Association rule mining, Aprioir, SPARQL. ال ملخص: ساسيملف ارنت وهي النتت ابيانات شهرة على شبكات الكثر ملفاجي واحدة من انتولوت ار بياناعتب ت لشبكة ا لسيمانتك. نات. وإنلبيانون تعريف امتعلقة بقانبية اللحساول احل واحدة من اشهر اللحسابيةول الحلوري لر أبريعتب ت تيجة انتولوجي ت بدوون جمعيم قانستخدا فعالة با لتغذية جعلومات غنيا بالمنتولوجي مصدرات ار بياناعتب. تلبيانات ة تعريف ا معية قون تعريف انولحل الت اكة بيانااد شب يجب اعدت. اولبيانا تعريف انتولوجي معبحث على كيفية دمج اة. يركز هذا اللحسابي ا لسيمانك و تفعيل ت ها. ثمندية من اتقليت اللبياناص تعريف ا استخ كلغة اسسباركلستخدام اللسيمانتك بات اكة بيانا تولوجي من شبم تع ل شبكة السيم انتك.فة الى ذلكضات. البيانا عدة فقرات من استخدم لتعريفوري تم. أبريرستخدام اوول با نقوم بتعريف ا ثم ا لنموذجمطلوب الدية باستختقليت اللبياناك الى تعريف السيمانتتحويل شبكة ا يقوم بم. وبعد ذلك كلغة استعسباركل دام ال ي تم الحلى مع صول ع لوماتلبيانات.ك و تعريف السيمانتين شبكة اقات جديدة بدية لذلك يتم بناء عتقليت اللبيانامة من ملف ا ها پوختە: دئ( تاکانى ا ۆ نت ۆ ل ۆ جى) يە ک ێ ک ە ل ەسراوتا نا دا ە کان ل ە ت ۆڕ ى ئ ي نت ە رن ێ ت و فا ي لى س ە ر ە کىت( ۆڕ ى س ي مانت ي ک ەئ( .) ە پريۆ ۆ رى) يە ک ێ ک ە ل ە باوتر ي ن چار ە س ە ر ەاتمات م ي ک يە کان ک ە تا ي ب ە ت ە ب ەتاکان. ئنى دا ناساند ە نجامىئ( ۆ نت ۆ ل ۆ جى کار) ي گ ە ر د ە ب ێ ت ب ە ب ە کاره ێانى ن ي اساى ک ۆ م ەڵە ىنى د ناساندتاکان ا . ئ ە م تو ێ ژ ي ن ە ويە ە ج ە خت ل ە س ە ر چ ۆ ن يە تى ت ي ک ەڵئ( کردنى ۆ نت ۆ ل ۆ جى ل) ە گ ەڵتاکان. سنى دا ناساند ە ر ە تا ئاماد ە کردنىت( ۆڕ ى س ي مانت ي کاکردنى دواتر ه و کار) ەڵێجاندنى نتا تقلنى دا ناساند ي ديە ي کان ل ەئ( ۆ نت ۆ ل ۆ جى ل) ەت( ۆڕ ى س ي مانت ي ک ب) ە ب ە کاره يانى ن زمانى س ي مانت ي ک . دواتر ه ەڵ د ە ست ي ن ب ەئ( ناساندنى ۆڵ ب) ە ب ە کاره يانى نئ( ە ىIntegration of OWL data with Apriori Algorithm Payman Othman Rahim 1 , Wria Mohammed Salih Mohammed 2 1,2 Department of Computer Science, College of Science, University of Sulaimani, Sulaimani, Iraq [email protected] 1
17

Integration of OWL data with Apriori Algorithm

Jun 18, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), june 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 1

Abstract:

Ontology data is one of the well-known dataset on web and it is the main dataset of semantic

web. Apriori algorithm is one of the best-known algorithms of association rule mining. The result of

ontology will be effective by using association rule mining with it. Ontology is rich sources of data

to feed Association rule mining algorithms. This paper focuses on how Ontology and data mining

can combine. First of all, the semantic web data (ontology, RDF, RDFS or RDFa) need to be

prepare and valid. Then, from the semantic web data, traditional dataset will be extracted from

ontology using SPARQL as a query language for semantic web. Next, we are going to mining the

OWL data using one of the association rule mining (ARM) algorithm. Apriori is one of association

rule mining algorithm, which can use to mine frequent item-sets. Furthermore, the proposed model

transforms semantic web to traditional dataset using SPARQL query language. Then, to obtain

important information from the traditional dataset, therefore new relationships produced between

semantic web and data mining, will be generated.

Keywords : Ontology, Semantic web, Association rule mining, Aprioir, SPARQL.

:ملخصال

لسيمانتك. الشبكة تعتبر بيانات الانتولوجي واحدة من اكثر ملفات البيانات شهرة على شبكات الانترنت وهي الملف الاساسي

بدو تلانتولوجي تيجة اتعتبر أبريوري للحلول الحسابية واحدة من اشهر الحلول الحسابية المتعلقة بقانون تعريف البيانات. وإن ن

الحلول انون تعريفمعية قة تعريف البيانات. تعتبر بيانات الانتولوجي مصدرا غنيا بالمعلومات لتغذية جفعالة باستخدام قانون جمعي

ها. ثم تك و تفعيللسيمانالحسابية. يركز هذا البحث على كيفية دمج الانتولوجي مع تعريف البيانات. اولا يجب اعداد شبكة بيانات ا

انتك. شبكة السيملتعلام تولوجي من شبكة بيانات السيمانتك باستخدام السباركل كلغة اساستخلاص تعريف البيانات التقليدية من الان

المطلوب لنموذجا ثم نقوم بتعريف الاوول باستخدام الارم. أبريوري تستخدم لتعريف عدة فقرات من البيانات. اضافة الى ذلك

لومات صول على معتم الحيدام السباركل كلغة استعلام. وبعد ذلك يقوم بتحويل شبكة السيمانتك الى تعريف البيانات التقليدية باستخ

هامة من ملف البيانات التقليدية لذلك يتم بناء علاقات جديدة بين شبكة السيمانتك و تعريف البيانات.

:پوختە

( رىۆيۆپرە(. )ئەکيمانتيس ىۆڕ)ت کىەرەس لىيو فا تێرنەنتيئ ىۆڕت ەل کانەداتا ناسراو ەل ەکێکيە( جىۆلۆنتۆاتاکانى )ئد

ەب تێبەد رەگي( کارجىۆلۆنتۆ)ئ نجامىەناساندنى داتاکان. ئ ەب ەتەبيتا ەک کانيەکيماتمات ەرەسەچار نيباوتر ەل ەکێکيە

ەڵگە( لجىۆلۆنتۆکردنى )ئ ەڵکيت تىيەنۆچ رەسەل ختەج ەيەوەنيژێتو مە. ئاتاکانناساندنى د ىەڵەمۆک اساىي نانىێکارهەب

ەل کانييەديناساندنى داتا تقل نجاندنىەڵێ( و کاراکردنى دواتر هکيمانتيس ىۆڕ)ت کردنىەئاماد تاەرەناساندنى داتاکان. س

ىە)ئ نانىيکارهەب ە( بۆڵناساندنى )ئ ەب نيستەدەڵ. دواتر هکيمانتيزمانى س نانىيکارهەب ە( بکيمانتيس ىۆڕ)ت ە( لجىۆلۆنتۆ)ئ

Integration of OWL data with Apriori Algorithm

Payman Othman Rahim1, Wria Mohammed Salih Mohammed2

1,2Department of Computer Science, College of Science, University of Sulaimani, Sulaimani, Iraq

[email protected]

Page 2: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), June 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 2

( کيمانتيس ىۆڕ)ت ەداواکراو ل ىەنمون اتريز شەوەداتاکان. ل ەل کەيەگڕب ندەناساندنى چ ۆب تێکاردە( برىۆيۆپرە(. )ئميئار ئ

.داتاکان دنى( و ناسانکيمانتيس ىۆڕ)ت وانێن ەل ەتاز ندىەوەي. دروستکردنى پکانييەديناساندنى داتا تقل ۆب تۆڕێگەد

1- Introduction:

Association rule mining is one of the most widely used groups of data mining and have been

extensively used for the relationship among items in transactions. Also, Evidence suggests that

semantic web is among the most important factors for making computer to be able to understand

data and information because, semantic web is machine-interpretable published data and

information on the web. It can say that semantic web adds further description to existing web data

to make understandable. From 1990s ontology has astonishing developed and has been focused on

by many AI and semantic web researchers. The aim of using ontology is to share common

understanding of domain that can be relate among people and systems (Giri, 2011).

The main goals of proposing to integrate Ontology with Apriori algorithm is to mine ontology

data which is part of semantic web and it is not structured dataset, ontology has extra information to

illustrate the web data to make understandable. Another aim of integration both areas to have an

accurate result from ontology data using Apriori algorithm. This technique can be widely use on the

webs, because there are many places that needs Apriori algorithm which have ontologies, for

instance, profile analyzing, customer basket market in online ecommerce.

2- Related work:

In a survey and analysis research (Singh & Aswal, 2018), they explain semantic web mining

deals with these challenges, this paper shows the differences between semantic web mining

approaches and compare them based on domain, languages, ontology structures. Paper (Berendt,

Hotho, & Stumme, 2002), illustrates semantic web mining, which has new sematic structures in the

web. They show how to integrate two areas today, how they can be beneficial by combine them.

(Mohammed & Saraee2, Mining Semantic Web Data Using K-means Clustering, 2016)In

researchers found the benefits of combination of semantic web and data mining, they use RDF data

with SPARQL to extract information from semantic web data, after they used cluster algorithm

which is K-means, the research gives an overview of semantic web mining and the combination of

well-known area to obtain better result. Another research (Kaur & Kaur, 2015) is an aim of this

research is to mine unstructured data into machine understandable data using semantic web tools, it

means machine can reply to human questions in less time and automatically extract important

information that is hidden inside the data of the web. They emphasis on various semantic web

techniques. The purpose of this paper (Shukla, Akanksha, & Yadav, 2013) is to use mining

semantic web and web mining, semantic web adds structure to meaningful content of web pages;

hence information is given a well-defined meaning; This paper gives an overview of where the two

areas meet today.

Page 3: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), june 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 3

3- Preliminaries:

3-1. OWL (Ontology Web Language):

The theoretical structures to define ontology (shows in Figure 1) is the key point of machine-

process able data on the semantic web. Ontology serves as metadata schemas which provides

concepts to define machine-process able semantics. People and machine can communicate with

each other’s using ontologies (Maedche & Staab, 2001).

Applications

Ontology Languages ( OWL Full, OWL DL and OWL Lite)

RDF Schema Individuals

RDF and RDF/XML

XML and XMLS Data-Types

URIs and Namespaces

Figure 1: the Structure of Semantic web

OWL has been designed to meet the necessity of OWL. OWL is part of the developing of W3C

references related to the semantic web:

XML is mostly used with web technologies, it uses to transport and store data. Also, XML has

focused by many researchers because XML is written by humans not computers. It is easily

exchange among different applications. As well as, it is easier than HTML to code (Mohammed W.

M., Mining XML data using K-means and Manhattan, 2016).

RDF (Resource Description Framework)

- Resource: everything in semantic web refer to a resource, web pages, video, images place,

device, person, event, product…etc., everything has URL can be a resources.

- Description: it is understanding the meaning of resources. It is set of features, relations that

are explaining the meaning of resources.

- Framework, description can have languages, models and syntax because of framework

(Domingue, Fensel, & Hendler, 2011).

As a result, RDF has data structure and model to encode data and metadata about any subject on

the web.

The graphical part of RDF is RDF triples, RDF triples connect the objects on the web by

combining resources, predicate and the objects, as shows in Figure 2 (Domingue, Fensel, &

Hendler, 2011).

Page 4: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), June 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 4

Figure 2: The structure of RDF triples (Domingue, Fensel, & Hendler, 2011)

RDF-Schema: it is data-modeling vocabulary for RDF data. RDFS appeared in 1998, and it became

a part of recommendation in 2004. There are the main classes in RDFS.

rdfs:class => the class of all classes.

rdfs: literal => the class of all literal values.

Rdfs:resource => the class of everything.

Rdfs:DataType => the class of all datatypes.

RDFS contains several properties like

Rdfs:label

Rdfs:domain

Rdfs:range

Rdfs:type

Rdfs:subClassOf

Rdfs:subpropertyof

OWL: OWL (Web Ontology Language) published by W3C recommendation in 2004. It has new

version which is OWL 2, was accepted in 2009. It is RDF-based syntax. It can say it defines

vocabularies for explaining ontologies based on description. The main concepts of owl are the

followings:

Classes: class can show set of individuals; any class can be subclass of other classes.

Individuals: it can be part of OWL class. It can be the elements in the domain.

Properties: it shows the relations among data-type properties, object properties, and

annotation properties. Data-type is describing the data values such as a sting or integer.

Object properties relate an individual with another (Gayo J. E., Prud'hommeaux, Boneva, &

Kontokostas, 2018).

There is an example of OWL which has two main classes (Man and Woman) that have property

(gender) with values (or Female), shows in Figure 3.

Page 5: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), june 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 5

Figure 3: classes of OWL

Ontology can be defined in several domains, also, several tools can be used for OWL such as

Protégé which can facility for using ontology (Gayo J. E., Prud'hommeaux, Boneva, &

Kontokostas, 2018). There are the types of OWL as explain in the followings:

OWL Full: it shows the complete features of the OWL language. Also, it can be seen as the

extension of RDF and it is part of semantic web structure. In the OWL Full, anything can be

used by semantic web developers such as RDF, RDFS and OWL vocabularies themselves

(Lacy, 2006).

OWL DL: the majority of the ontology editors choose OWL DL because it helps those

developers who want to maximum expressiveness without losing computational entirely and

decidability of reasoning system (Bringas, Hameurlain, & Quirchmayr, 2010). The DL in

OWL DL stands for Description Logic, which give the name to the subset of first-order

logic that OWL Dl utilizes (Hart, 2013).

OWL Lite: The implementation of OWL lite is fading, it is skipped by ontology

developers, it is going away, and the developers directly go to OWL Full or OWL DL (Dean

Allemang, 2008).

The main differences among OWL Full with others is that it can able to show true met classes. But

OWL DL is most widely utilized and it is original version as well. On the other hand, OWL Lite

went away, and OWL Full was updated (Uschold, 2018).

3-2. Association Rule Mining (ARM):

Let’s consider that there is a supermarket with large products, typically it needs to decision

to manage the items inside the supermarket, for example, deciding which items put on sale, also,

how to design the shelves, and where to place the items to find easily by customers in order to have

maximum profits, also, the supermarket needs to analysis the past transaction data to improve the

quality of sales. This needs daily, weekly and monthly reports which are available on the computer.

Another requirement is market basket analysis, for example it needs to know the type of products

sale together in the same transaction at the same time. Some items can be purchased in the period of

Page 6: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), June 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 6

time. Also, how likely two items purchase together (Agrawal, Imielinski, & Swami, 1993).

Association rule mining is widely used in business, biology, medication and so on, it attracted a lot

of interest, many researcher work on it. From static rules to dynamic rules (Luo, 2003).

3-3. Apriori algorithm:

Apriori algorithm is one of the well-known algorithm in Association Rule Mining (ARM) of data

mining area, it is mining frequent item-sets for learning association rules. This algorithm can work

with huge databases which contain many transactions (Juneja & Dixit, 2019). ARM is beneficial

for retail storages to help in inventory, advertising, marketing and predicting missing value or faults

in fields (Singh, Ram, & Sodhi, 2013).

Apriori algorithm utilize prior knowledge of frequent item-set properties. First, the set of frequent

1-itemsets is found by scanning the database to accumulate the count for each item. And collecting

those items that satisfy both min support and min confident.

Apriori algorithm works in two steps:

Generate all frequent item-sets: a frequent item-set is the set of items that have transaction

support above minimum support.

Generate all confident association rules from the frequent item-set: a confident of two items

with having minimum confidents.

4- Problem statement:

The main difficulty of this paper is to combine both ontology and Apriori algorithm of semantic

web data. the combination of both data mining and semantic web using Apriori is a new method to

create a relationship between both areas which is faced difficulties. in this paper, we are going to fill

the gap of using this combination. Another problem of this paper is having mining OWL data which

is not structured dataset. It is not like relational dataset or traditional dataset to mine. The OWL data

needs several preprocessing to mine. First of all, it needs to check the validity of semantic web data.

Then, it also needs to retrieve dataset from Ontology data using SPARQL query language,

following by apply Priori algorithm on traditional dataset. The proposed system for this research

needs various tools and techniques to have accurate result.

5- Methodology:

The method of this research is about mining OWL (Ontology) data using Apriori algorithm which

is a well-known algorithm of association rule mining, this research needs some steps as shows in

Figure 4. The first step of this research is having Ontology dataset, then it needs to apply SPARQL

on the ontology then obtaining traditional dataset. The traditional dataset needs data preprocessing

to have a pure dataset without having missing data or fault data item. In the data mining, we are

going to apply Apriori algorithm to get pattern, finally it has the result which is knowledge.

Page 7: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), june 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 7

Figure 4: Research Proposal

5-1. OWL Data:

This project needs ontology dataset, for the creating dataset, we are going to use a tool like

protégé. The proposed dataset in this research includes courses, lecture and student. It means it is

about university. For example, a module may study by different student, a lecturer can teach

different module. OWL has common RDF model. RDF data describe the relationship between two

items, also, OWL data signify rich and complex knowledge about items and having relationship

among them. There is a sample of Semantic web data which is ontology that shows as following.

<?xml version="1.0"?>

<rdf:RDF xmlns="http://bedu.univsul.edu.iq/university.owl#"

xml:base="http://bedu.univsul.edu.iq/university.owl"

xmlns:owl="http://www.w3.org/2002/07/owl#"

xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

xmlns:xml="http://www.w3.org/XML/1998/namespace"

xmlns:xsd="http://www.w3.org/2001/XMLSchema#"

xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"

xmlns:university="http://bedu.univsul.edu.iq/university.owl#">

<owl:Ontology rdf:about="http://bedu.univsul.edu.iq/university.owl"/>

<owl:ObjectProperty rdf:about="http://bedu.univsul.edu.iq/university.owl#studies">

<rdfs:domain rdf:resource="http://bedu.univsul.edu.iq/university.owl#student"/>

<rdfs:range rdf:resource="http://bedu.univsul.edu.iq/university.owl#module"/>

</owl:ObjectProperty>

<owl:ObjectProperty rdf:about="http://bedu.univsul.edu.iq/university.owl#teaches">

<rdfs:domain rdf:resource="http://bedu.univsul.edu.iq/university.owl#lecturer"/>

Page 8: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), June 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 8

<rdfs:range rdf:resource="http://bedu.univsul.edu.iq/university.owl#module"/>

</owl:ObjectProperty>

<owl:DatatypeProperty rdf:about="http://bedu.univsul.edu.iq/university.owl#First_name">

<rdfs:domain rdf:resource="http://bedu.univsul.edu.iq/university.owl#person"/>

<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>

</owl:DatatypeProperty>

<owl:DatatypeProperty rdf:about="http://bedu.univsul.edu.iq/university.owl#Last_name">

<rdfs:domain rdf:resource="http://bedu.univsul.edu.iq/university.owl#person"/>

<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>

</owl:DatatypeProperty>

<owl:DatatypeProperty rdf:about="http://bedu.univsul.edu.iq/university.owl#Staff_Email"/>

<owl:Class rdf:about="http://bedu.univsul.edu.iq/university.owl#lecturer">

<rdfs:subClassOf rdf:resource="http://bedu.univsul.edu.iq/university.owl#person"/>

</owl:Class>

<owl:Class rdf:about="http://bedu.univsul.edu.iq/university.owl#module"/>

<owl:Class rdf:about="http://bedu.univsul.edu.iq/university.owl#person"/>

<owl:Class rdf:about="http://bedu.univsul.edu.iq/university.owl#student">

<rdfs:subClassOf rdf:resource="http://bedu.univsul.edu.iq/university.owl#person"/>

</owl:Class>

<owl:NamedIndividual rdf:about="http://bedu.univsul.edu.iq/university.owl#Lec006">

<rdf:type rdf:resource="http://bedu.univsul.edu.iq/university.owl#lecturer"/>

<teaches rdf:resource="http://bedu.univsul.edu.iq/university.owl#OOP"/>

<First_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Azhee</First_nam

e>

<Last_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Wria</Last_name>

<Staff_Email rdf:datatype="http://www.w3.org/2001/XMLSchema#string">azhee.wria@univs

ul.edu.iq</Staff_Email>

</owl:NamedIndividual>

<owl:NamedIndividual rdf:about="http://bedu.univsul.edu.iq/university.owl#OOP">

<rdf:type rdf:resource="http://bedu.univsul.edu.iq/university.owl#module"/>

</owl:NamedIndividual>

<owl:NamedIndividual rdf:about="http://bedu.univsul.edu.iq/university.owl#3001">

<rdf:type rdf:resource="http://bedu.univsul.edu.iq/university.owl#student"/>

<studies rdf:resource="http://bedu.univsul.edu.iq/university.owl#OOP"/>

<First_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Shanya</First_na

me>

<Last_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Salam</Last_name

>

</owl:NamedIndividual>

<owl:NamedIndividual rdf:about="http://bedu.univsul.edu.iq/university.owl#3007">

<rdf:type rdf:resource="http://bedu.univsul.edu.iq/university.owl#student"/>

<studies rdf:resource="http://bedu.univsul.edu.iq/university.owl#OOP"/>

<First_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Chovin</First_na

Page 9: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), june 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 9

me>

<Last_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Khalid</Last_nam

e>

</owl:NamedIndividual>

</rdf:RDF>

5-2. Validation OWL data

Figure 5: Sample of Graphic Ontology data

Page 10: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), June 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 10

The Ontology data is not structured dataset, which needs to check the validation for the data, the

dataset of this project is completely valid, the data is checked using different techniques. One of the

technique to check the data is an online W3 website (https://www.w3.org/RDF/Validator/), then the

data is ready to apply SPARQL on it.

5-3. Convert Ontology to traditional dataset:

In this part, semantic web data, which is ontology, has to change it to traditional dataset. This

technique need SPARQL to retrieve traditional dataset. SPARQL is a query language on Semantic

web. SPARQL can be used to represent the query result from diverse data sources. The data can be

shows as traditional dataset, there is some example of SPARQL which is used in this page.

PRPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

PREFIX owl: <http://www.w3.org/2002/07/owl#>

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

PREFIX uni: <http://bedu.univsul.edu.iq/university.owl#>

SELECT ?Student_id ?S_FirstName ?S_LastName ?Modules ?Lecturer ?L_FirstName ?L_Last

Name

WHERE {

?Student_id rdf:type uni:student.

?Student_id uni:First_name ?S_FirstName.

?Student_id uni:Last_name ?S_LastName.

?Student_id uni:studies ?Modules.

?Lecturer uni:teaches ?Modules.

?Lecturer uni:First_name ?L_FirstName.

?Lecturer uni:Last_name ?L_LastName.

}

ORDER BY ?Student_id

Page 11: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), june 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 11

The data will be the traditional dataset, which shows in the following Table.

Table 1: Traditional Dataset

Student

_id

S_FirstNam

e

S_LastNam

e Modules Lectuers

L_FisrtNam

e

L_LastNa

me

3001 Shanya Salam Web_Design Lec004 Shadan Rashid

3001 Shanya Salam Structre_Programming Lec003 Ari Arif

3001 Shanya Salam OS Lec001 Salam Hussain

3001 Shanya Salam OOP Lec006 Azhee Wria

3001 Shanya Salam DataBase Lec002 Payman Othman

3002 Shnar Burhan Web_Design Lec004 Shadan Rashid

3002 Shnar Burhan Structre_Programming Lec003 Ari Arif

3002 Shnar Burhan OOP Lec006 Azhee Wria

3002 Shnar Burhan DataBase Lec002 Payman Othman

3002 Shnar Burhan Security Lec005 Karwan Mustafa

3004 Shaduman Faiaq Web_Design Lec004 Shadan Rashid

3004 Shaduman Faiaq Structre_Programming Lec003 Ari Arif

3004 Shaduman Faiaq OOP Lec006 Azhee Wria

3004 Shaduman Faiaq DataBase Lec002 Payman Othman

3004 Shaduman Faiaq Security Lec005 Karwan Mustafa

3005 Khalat Mohammed OS Lec001 Salam Hussain

3005 Khalat Mohammed OOP Lec006 Azhee Wria

3006 Kale Hama Salih Web_Design Lec004 Shadan Rashid

3006 Kale Hama Salih OS Lec001 Salam Hussain

3007 Chovin Khalid OS Lec001 Salam Hussain

3007 Chovin Khalid OOP Lec006 Azhee Wria

3008 CHawan Hashm Web_Design Lec004 Shadan Rashid

3008 CHawan Hashm OS Lec001 Salam Hussain

3008 CHawan Hashm DataBase Lec002 Payman Othman

3008 CHawan Hashm Security Lec005 Karwan Mustafa

3009 Kozhin Hamid Web_Design Lec004 Shadan Rashid

3009 Kozhin Hamid Structre_Programming Lec003 Ari Arif

Page 12: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), June 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 12

3009 Kozhin Hamid OOP Lec006 Azhee Wria

3009 Kozhin Hamid DataBase Lec002 Payman Othman

3010 Hawnaz Rashid Structre_Programming Lec003 Ari Arif

3010 Hawnaz Rashid OOP Lec006 Azhee Wria

3010 Hawnaz Rashid Security Lec005 Karwan Mustafa

5-4. Data Mining with Apriori Algorithm

from the above dataset, we will rearrange the dataset according to students who has the modules

as shows from the following table.

Table 2: frequent item-set

Student_id Modules

3001 OS, OOP, Web_design, Database

3002 Structure_programming, OOP, Web_design, Security, Database

3004 Structure_programming, OOP, Web_Design, Security, Database

3005 OS, OOP

3006 OS, Web_Design

3007 OS, OOP

3008 OS, Web_Design, Security, Database

3009 OOP, Web_Design, Database

30010 OOP, Security

the final process of our research is apply Apriori algorithm on the result from Semantic web data.

this needs some steps to apply which is shorted in the following steps:

Step one, bring the dataset and create the frequency table for all items in transactions. We need only

to involve one item supported from the dataset.

Table 3: frequent one item-set

Modules Support Count Confidence Count

Structure Programming 2 55.6%

OS 5 77.8%

OOP 7 66.7%

Web_Design 6 44.4%

Security 4 55.6%

Database 5 55.6%

Page 13: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), june 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 13

- Step two: in the second step we need to get pair of items such as (Programming Language

with OOP), the frequency table will be like the following.

-

Table 4: frequent two item-sets

- Modules - Support

Count

- Confidence

Count

- Structure_Programming, OS - 0 - 0.0%

- Structure_Programming, OOP - 2 - 22.2%

- Structure_Programming,

Web_design

- 2 - 22.2%

- Structure_Programming, Security - 2 - 22.2%

- Structure_Programming,

Database

- 2 - 22.2%

- OS, OOP - 3 - 33.3%

- OS, Web_Design - 2 - 22.2%

- OS, Security - 1 - 11.1%

- OS, Database - 2 - 22.2%

- OOP, Web_Design - 4 - 44.4%

- OOP, Security - 3 - 33.3%

- OOP, Database - 4 - 44.4%

- Web_Design, Security - 3 - 33.3%

- Web_Design, Database - 5 - 55.6%

- Security, Database - 3 - 33.3%

-

Figure 6: Two items frequency

Page 14: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), June 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 14

- Step three: in the step three, we will take three items for frequency table, it shows as the

followings

Table 5: Frequent three item-sets

Structure_Programming, OOP, Web_design 2 22.2%

Structure_Programming, OOP, Security 2 22.2%

Structure_Programming, OOP, Database 2 22.2%

Structure_Programming, OOP, OS 0 0.0%

Structure_Programming, Web_Design,

Security

2 22.2%

Structure_Programming, Web_Design,

Database

2 22.2%

Structure_Programming, Web_Design, OS 0 0.0%

Structure_Programming, Security, Database 2 22.2%

Structure_Programming, Database, OS 0 0.0%

OS, OOP, Web_Design 1 11.1%

OS, OOP, Database 1 11.1%

OS, OOP, Security 0 0.0%

OS, Web_Design, Databbase 2 22.2%

OS, Web_Design, Security 1 11.1%

OS, Database , Security 1 11.1%

OOP, Web_Design, Security 2 22.2%

OOP, WebDesign, Database 4 44.4%

OOP, Security, Database 2 22.2%

Web_design, Security, Database 3 33.3%

Three item set frequency shows in the following chart

Figure 7: Three items frequency

Page 15: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), june 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 15

- Step four, we can have four items from the dataset for frequency table, and the highest

support count for four items is

- Table 6: frequent four item-set

- Modules - Support

count

-

- OOP, WebDesign, Database,

Security

- 2 - 22.2%

Finally, we have the result of pattern that shows the confidence and support, which is shows

in the Figure 8.

Figure 8: Confident and support of item-set

Discussion:

This research can detect the influences of the combination between Ontology and data mining.

Firstly, the dataset checks for validity. The validation of ontology will be checked using online tool.

Second, the SPARQL also will be apply on ontology to retrieve traditional dataset. In the first step,

the ontology dataset created using Protégé tools, this data needs to validate, as shows in Figure 4,

also, the ontology document available before the Figure 5 to show the valid ontology data. the

validation of the ontology data is checked using https://www.w3.org/RDF/Validator, after that it say

we can have the valid data. Next, the SPARQL also utilized for retrieve data from ontology data,

the result of this is traditional data, the traditional data shows in Table 1. Furthermore, data mining

techniques has several steps to mine database, in the first step, we need to know how many items

frequently repeated in a transaction as shows in Table 2. it needs frequent item-set for one items as

shows Table 3. Then two frequent item-sets shows in Table 4. Moreover, the dataset can have three

item-set frequent that shows in Table 5. The final frequent item-set is four item-set frequency as

Page 16: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), June 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 16

shows in Table 6. Figure 6, the result of confident and support can be shown. The results are

retrieving data from ontology dataset that is present in the Figure 6.

6- Conclusion:

In conclusion, the application of Association rule mining technique is used to determine

important pattern from Ontology data has been proposed. Our algorithm of Association rule mining

is Apriori algorithm, which is used to detect the confidents of OWL data. Apriori algorithm is one

of the well-known algorithm which is unsupervised algorithm that can be used to show the

relationship and the important of data item according to other data-items. OWL ontology which

includes RDF, RDFS and other concepts has been used as the dataset, also, the query language

which is used to retrieve traditional data from the OWL dataset is SPARQL which is most famous

query language for semantic web. It can be seen that the combination of semantic web and data

mining can have an adequate result. Particularly Apriori algorithm which can have frequent item-

sets. Apriori also works according to confident of data items.

Bibliography:

AbedjanEmail, Z., & Naumann, F. (2013, July). Improving RDF Data Through Association Rule Mining. Datenbank Spektrum, 13(2).

Aggarwal, C. C., & Han, J. (2014). Frequent Pattern Mining. Springer. Agrawal, R., Imielinski, T., & Swami, A. (1993). Mining Association Rules between Sets of Items in

Large Databases. SIGMOD '93 Proceedings of the 1993 ACM SIGMOD international conference on Management of data . 22, pp. 207-216. IBM Almaden Research Center.

Baratia, M., Baia, Q., & Liub, Q. (2017, October 1). Mining semantic association rules from RDF data . 133, 183-196 .

Berendt, B., Hotho, A., & Stumme, G. (2002). Towards Semantic Web Mining. International Semantic Web Conference, 264–278.

Borgelt, C. (2012, December). Frequent item set mining . WIREs Data Mining And Knowledge discovery, 2(6), 437–456.

Bringas, P. G., Hameurlain, A., & Quirchmayr, G. (2010). Database and Expert Systems Applications: 21st International Conference. Springer.

Dean Allemang, J. H. (2008). Semantic Web for the Working Ontologist: Effective Modeling in RDFS and OWL . Morgan Kaufmann.

DECKER, S., MELNIK, S., HARMELEN, F. V., FENSEL, D., KLEIN, A. M., BROEKSTRA, J., . . . HORROCKS, I. (2000, September). The Semantic Web: The Roles of XML and RDF. IEEE Internet and Computing, 4(5), 63-74.

Domingue, J., Fensel, D., & Hendler, J. A. (2011). Handbook of Semantic Web Technologies. Springer.

DuCharme, B. (2013). Learning SPARQL: Querying and Updating with SPARQL 1.1 (Second edition ed.). O'Reilly Media.

Gayo, J. E., Prud'hommeaux, E., Boneva, I., & Kontokostas, D. (2018). Validating RDF Data. Morgan & Claypool .

Gayo, o. E., Prud'hommeaux, E., Boneva, I., & Kontokostas, D. (2018). Validating RDF Data (Vol. 7). Morgan & Claypool.

Giri, K. (2011, March). Role of Ontology in Semantic Web. DESIDOC Journal of Library & Information Technology, 31(2), 116-120.

Han, J., Pei, J., & Kamber, M. (2012). Data Mining: Concepts and Techniques . Waltham, MA: Elsevier Inc.

Page 17: Integration of OWL data with Apriori Algorithm

The Scientific Journal of Cihan University – Slemani PP: 01-17 Volume (4), Issue (1), june 2020

ISSN 2520-7377 (Online), ISSN 2520-5102 (Print)

DOI: http://dx.doi.org/10.25098/4.1.22 17

Hart, G. (2013). Linked Data: A Geographic Perspective . CRC Press. Hidber, C. (1999, June 3). Online Association Rule Mining . Proceeding SIGMOD '99 Proceedings of

the 1999 ACM SIGMOD international conference on Management of data, 28(2), 145-156 . Juneja, D. S., & Dixit, A. (2019). Improving Search Results Based on Users’ Browsing Behavior Using

Apriori Algorithm. Software Engineering , 73-82. kaur, M., & Grag, U. (2014, December). ECLAT Algorithm for Frequent Item sets Generation.

International Journal of Computer Systems, 1(2). Kaur, S., & Kaur, B. (2015, May). Semantic Web Mining - A Review. International Journal of

Computer Applications, 117(12), 16 - 19. Koh, Y. S., & Rountree, N. (2010). Rare Association Rule Mining and Knowledge Discovery:

Technologies for Infrequent and Critical Event Detection . SCOPUS. Lacy, L. W. (2006). Owl: Representing Information Using the Web Ontology Language . Victoria,

Canada: Trafford Publishing. Luo, Q. (2003). Advancing Computing, Communication, Control and Management . Spinger. Maedche, A., & Staab, S. (2001). Ontology learning for the Semantic Web. 16(2). Maimon, O., & Rokach, L. (2005). Data Mining and Knowledge Discovery Handbook . springer. Mohammed, W. M. (2016). Mining XML data using K-means and Manhattan. 7(7). Mohammed, W. M., & Saraee, M. M. (2016). Mining Semantic Web Data Using K-means Clustering

Algorithm. British Journal of Mathematics & Computer Science, 13(1), 1-14. Mohammed, W. M., & Saraee2, M. M. (2016). Mining Semantic Web Data Using K-means

Clustering. British Journal of Mathematics & Computer Science, 1-14. Mohammed, W., & Saraee, M. M. (2016). Sematic Web Mining Using Fuzzy C-means Algorithm.

16(4), 1-16. ReynaudEmail, J., Toussaint, Y., & Napoli, A. (2019, May 23). Using Redescriptions and Formal

Concept Analysis for Mining Definitions in Linked Data. International Conference on Formal Concept Analysis, 11511, 241-256.

Shimada, K., Hirasawa, K., & Hu, J. (2006). Association Rule Mining with Chi-Squared Test Using Alternate Genetic Network Programming . Advances in Data Mining. Applications in Medicine, Web Mining, Marketing, Image and Signal Mining, 202-216.

Shukla, A., Akanksha, & Yadav, P. (2013). International Journal on Recent and Innovation Trends in Computing and Communication , 1(12), 919 - 922.

Singh, J., Ram, H., & Sodhi, D. J. (2013, January). Improving Efficiency of Apriori Algorithm Using Transaction Reduction. International Journal of Scientific and Research Publications, 3(1).

Singh, S., & Aswal, M. S. (2018). Semantic Web Mining: Survey and Analysis. Journal of Web Engineering & Technology, 5(3), 20-31.

Uschold, M. (2018). Demystifying OWL for the Enterprise . Morgan & Claypool Publishers . Venkata, N. p., Kappara, P., & Ichise, R. (2011). LiDDM: A Data Mining System for Linked Data .

Workshop on Linked Data on the Web, 813.