SlideShare a Scribd company logo
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014

SPARQL: SEMANTIC INFORMATION RETRIEVAL BY
EMBEDDING PREPOSITIONS
Sneha Kumari1 Dr.Rajiv Pandey2 Amit Singh3 Himanshu Pathak4
1

2

Scholar, Amity University, Lucknow, India
Asst. Professor, Amity University, Lucknow, India
3
Scholar, Amity University, Lucknow, India
4
Scholar, Amity University, Lucknow, India

ABSTRACT
Semantic web document representation is formulated using RDF/OWL. RDF representation is in the form
of triples & OWL in form of ontologies. The above representation leads to a data set which needs to be
queried using software agents, machines. W3C has recommended SPARQL to be the de facto query
language for RDF. This paper proposes to suggest a model to enable SPARQL to make search efficient,
easier and produce meaningful search distinguished on the basis of preposition. An RDF data source
primarily consist of data that is represented in the form of a Triple pattern which has an appropriate RDF
syntax and further results into an RDF Graph .The RDF repository stores the Data on Subject, Predicate,
Object Model. The Predicate may also be thought of as a property linking the Subject and Object. This
paper shall evaluate the information retrieval by incorporating preposition as property.

KEYWORDS
SPARQL, N-Triples, OWL, RDF.

1. INTRODUCTION
“SPARQL is a query language for RDF data on the semantic web with formally defined meaning”
[1].
SPARQL a query language for RDF is used to return and manipulate data from databases that are
stored in Resource Description Format. It is the recommendation of (DAWG) Data Access
Working Group on RDF under World Wide Web Consortium, and is recognized as one of the key
technologies of the semantic web. [1]
Almost all RDF data repositories support SPARQL either directly or through dedicated SPARQL
tools. The main feature of computing query results through SPARQL is achieved by sub-graph
matching. These sub-graph are the generation based on RDF subject predicate object definition.
RDF graphs are interpreted as nodes and edges.
A lot has been researched on SPARQL and its query support to RDF repositories however it is of
concern that no headway has been achieved in the semantic search based on preposition.
This paper therefore proposes to incorporate prepositions in the SPARQL search pattern. This
paper is divided into five sections i.e.
DOI : 10.5121/ijnsa.2014.6105

49
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014

(1) Introduction
(2) PL/SQL approach to preposition based search
(3) SPARQL querying the RDF repository
(4) Incorporating prepositions in triple patterns
(5) Conclusion.

2. PL/SQL APPROACH TO PREPOSITION BASED SEARCH
The below described approach is based on PL/SQL whereby that we have developed a function
prep by CREATE FUNCTION func_prep. This function takes an argument which is the
preposition “on” from the search pattern "Books on Steganography" the two keywords (Books,
Steganography) can be interpreted by the search engine thru metadata definition but it is
important to identify the existence of the preposition “on”. The PL/SQL function below can be
passed, any preposition like(in , on , after , before , ago , since , at ,till , until ,towards and
etc.),.The function then returns the flag value as ‘1’ for the existence of preposition and ‘0’ for
non existence. The same is demonstrated thru the Fig 1, 2 and 3.

CREATE FUNCTION func_prep
(
@se nvarchar(20)
)
RETURNS int
AS
BEGIN
declare @flag int
set @flag=0
if @se='on'
begin
set @flag=1
end
if @se='before'
begin
set @flag=1
end
RETURN @flag
END
50
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014

GO

Figure 1. Screen shot of SQL func_prep function.Here preposition found then output is 1.

Figure 2. Passing a preposition to SQL function.Here, preposition not found and output is 0.

Figure 3. Validation result return as True or False.
The preposition existence is only highlighted by the above PL/SQL snippet but the semantic
matching still remains to be undertaken by a semantic tool not being the part of PL/SQL. This
approach exhibits a major limitation thus we need to look up to a SPARQL based search
architecture which can return results based on preposition. The same is explored in the subsequent
sections.

51
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014

3. SPARQL QUERYING THE RDF REPOSITORY
SPARQL the query language for the RDF Semantic data sources permits the under mentioned and
many more –
•

It retrieves data from Subject Predicate Object represented RDF data.

•

Explore data by querying unknown relationships.

•

Enables join operations on disparate databases.

•

It has aggregate functions like count() , aggregate() etc.

It is observed that SPARQL exhibits a major limitations when it comes to searches based on
prepositions .The Fig(4) describes SPARQL search architecture and it is observed that there is no
provision to distinguish between the RDF graphs on the basis of prepositions

3.1. Basic Structure of SPARQL query:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX swrc: <http://swrc.ontoware.org/ontology#>
SELECT distinct ?Event1_location
WHERE
{
?Presentation1 rdf:type swrc:Presentation .
?Presentation1 swrc:isPresentedAt ?Event1 .
?Event1 rdf:type swrc:Event .
?Event1 swrc:location ?Event1_location .
FILTER REGEX (str(?Event1_location), 'IIT Kanpur', 'i')
}
The Query above clearly signifies that each query embeds a Subject Predicate and Object
component. The components i.e. Presentation isPresentedAt IIT Kanpur being the Subject
Predicate and Object respectively.

3.2. RDF dataset explored:
An RDF data source primarily consist of data that is represented in the form of a Triple pattern
which has an appropriate RDF syntax and further results in to and RDF Graph .each of theses are
explained in the following paragraphs.
Triple Patterns [2] [3]: A triplestore is a domain specific database for the storage and retrieval of
triples, a triple being a data entity composed of subject-predicate-object. Fig (4) is used to show
the subject – predicate – object structure of RDF in Triple pattern data store. The tool used for
generating the RDF data model is RDF validator of W3C [4]
52
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014

RDF syntax of subject-predicate-object data model: the RDF syntax Fig (5) distinguishes to state
that http://www.facultydesc.demo/AMITY/Computerscience is subject, Subject can
be
namespaces of XML or URI as http://www.facultydesc.demo/AMITY/Computerscience,
Predicate is the property
‘name’ and ‘phone’ of the faculty represented thru URI
http://www.facultydesc.demo/AMITY#name,URI http://www.facultydesc.demo/AMITY#phone
respectively.

Figure 4. subject-predicate-object representation of a RDF data model.

Figure 5 : RDF/XML syntax based on tripple pattern.

Figure: 6 RDF graph
53
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014

Graph of RDF triple: The resultant graph of the RDF triples is represented in Figure: (6) which
shows the nodes and edges.

3.3. INCORPORATING PREPOSITIONS IN TRIPLE PATTERNS

Figure 7. Architectural representation of a SPARQL search.

3.3.1 .Architectural View [6] [7]
•

SPARQL Protocol client: An HTTP client which is capable to send HTTP request to
SPARQL Operations.

•

SPARQL Protocol service: This service is more of an application or server which can
accept HTTP request convert it into appropriate SPARQL request & when SPARQL
operation generates the response the SPARQL response shall be approximate returned as
HTTP response to the HTTP client.

•

SPARQL Endpoint: “The URI at which a SPARQL Protocol Service listen for request
“[8]. This may be understood as port which it is listening to the HTTP request.

•

SPARQL Protocol operation: The SPARQL protocol operation consist of various
methods which can accept the request .This process it to query the underlying RDF
dataset & also capable to generate response .This operation protocol is built over HTTP
.Therefore it supports the GET & POST method of HTTP.

•

RDF Dataset: The RDF dataset store represents information as graphs, which are
resultants of Triples. Triples are the description based on Subject, Predicate & Object
Paradigm.

54
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014

3.3.2. Preposition as property in SPARQL:
We are using the tool SPARQL query builder [5] to generate the SPARQL query based on the
property which serves as a predicate.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX swrc: <http://swrc.ontoware.org/ontology#>
SELECT distinct ?Event1_location
WHERE
{
?Presentation1 rdf:type swrc:Presentation .
?Presentation1 swrc:isPresentedAt ?Event1 .
?Event1 rdf:type swrc:Event .
?Event1 swrc:location ?Event1_location .
FILTER REGEX (str(?Event1_location), 'IIT Kanpur', 'i')
}
In the above SPARQL query the property “isPresentedAt” has been considered for the purpose of
demonstration, we have to add prepositions as properties which will result in Semantic search.
The Semantic search based prepositions is only possible when the data source specifies the
dataset description based on prepositions. This class will help to check the preposition’s in
between the words and generate the result.
Any data repository which has a schema to cater for preposition related description can generate
result based on the preposition property. In case of preposition, the predicate described as
property in the triple store will also be matched for the preposition in between the words.
The SPARQL query was generated by VIVO SPARQL online query builder.

Figure 8. VIVO SPARQL builder demonstrating the predicate as property.
55
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014

When the triple data store will contain the triple “Books on Steganography” using the predicate
“on” stored as property. Then the SPARQL query will return a more meaningful result which will
be based on the preposition.

4. CONCLUSION
This paper has primarily described how RDF data store need to be represented as a schema in
which the prepositions will be used as properties. The properties will be then interpreted by the
SPARQL engines. The property based schema can extend to OWL ontologies which are RDF
serialized.
The SPARQL engine will however only return search based on preposition when the underlying
data set is got the appropriate schema. Thus all data sets of the future will need to be RDF
repositories. It is therefore a subject of research to have software agents which can convert NonRDF datasets to RDF data sets. The agents can a part of the SPARQL engine itself which can
interpret Non-RDF datasets to be RDF data sets only for the purpose of query.

REFERENCES
[1] www.w3.org/TR/2009/WD-sparql-features-20090702/
[2] http://en.wikipedia.org/wiki/Triplestore
[3] http://apachebite.com/2012/04/
[4] http://www.w3.org/RDF/Validator/
[5] http://vivo-onto.slis.indiana.edu/SPARQL/
[6] http://www.w3.org/TR/sparql11-protocol/#rfc2616
[7] http://www.w3.org/TR/sparql11-query/#rdfDataset
[8] http://www.w3.org/TR/2012/WD-sparql11-protocol-20120105/
[9] STEFAN DECKER et.al. Framework for the Semantic Web: An RDF Tutorial, Stanford
University.
[10] Marko A Rodriguez, an RDF/OWL Tutorial, Digital Library Research and Prototyping Team
Alamos National Laboratory, Los Alamos, New Mexico, June 2007.
Authors
Sneha Kumari is pursuing M.C.A from Amity University Lucknow campus in Ami ty
Institute of Information Technology. She will strive to write more research papers on
Semantic Web. She is a Microsoft Certified Professional Developer in web technology.

Dr. Rajiv Pandey is a Senior faculty at Amity University Lucknow campus in Amity
Institute of Information Technology. His research area is Semantic Web technologies and
ontology. He has published large number of research papers in various International and
National Journals.

56
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014
Amit Singh is pursuing M.C.A from Amity Institute of Information Technology, Amity
University Lucknow. It is his first paper and he will strive to write more research papers on
Semantic Web related to Provenance. He is a Microsoft Certified Web Developer in various
platform

Himanshu Pathak is pursuing M.C.A from Amity University Lucknow campus in Amity
Institute of Information Technology .He will strive to write more research papers on
Semantic Web related to Provenance. He has published research papers in various
International Journals

57

More Related Content

PPTX
R Programming Language
PDF
Rdf Processing On The Java Platform
PDF
File Handling in C Part I
PDF
Feature Extraction for Large-Scale Text Collections
PPT
probabilistic ranking
PDF
Tcs NQTExam technical questions
PDF
C++
DOCX
Python Interview Questions For Experienced
R Programming Language
Rdf Processing On The Java Platform
File Handling in C Part I
Feature Extraction for Large-Scale Text Collections
probabilistic ranking
Tcs NQTExam technical questions
C++
Python Interview Questions For Experienced

What's hot (20)

PDF
MACHINE LEARNING FOR OPTIMIZING SEARCH RESULTS WITH DRUPAL & APACHE SOLR
PPTX
2. introduction to compiler
PDF
Lucene And Solr Document Classification
PDF
R - the language
PDF
Introduction to data analysis using R
PDF
C++ questions And Answer
PDF
Python Programming - XII. File Processing
PPT
Report on Work of Joint DCMI/IEEE LTSC Task Force
PPTX
What;s Coming In SPARQL2?
PDF
A COMPLETE FILE FOR C++
PPTX
ODP
Introduction to the language R
PDF
Declarative Multilingual Information Extraction with SystemT
PDF
Improving Top-K Retrieval Algorithms Using Dynamic Programming and Longer Ski...
PPTX
R language tutorial
PDF
Introduction to the R Statistical Computing Environment
PPTX
R programming Fundamentals
PPT
OWSCIS: Ontology and Web Service based Cooperation of Information Sources
PDF
Explainability for Learning to Rank
MACHINE LEARNING FOR OPTIMIZING SEARCH RESULTS WITH DRUPAL & APACHE SOLR
2. introduction to compiler
Lucene And Solr Document Classification
R - the language
Introduction to data analysis using R
C++ questions And Answer
Python Programming - XII. File Processing
Report on Work of Joint DCMI/IEEE LTSC Task Force
What;s Coming In SPARQL2?
A COMPLETE FILE FOR C++
Introduction to the language R
Declarative Multilingual Information Extraction with SystemT
Improving Top-K Retrieval Algorithms Using Dynamic Programming and Longer Ski...
R language tutorial
Introduction to the R Statistical Computing Environment
R programming Fundamentals
OWSCIS: Ontology and Web Service based Cooperation of Information Sources
Explainability for Learning to Rank
Ad

Viewers also liked (11)

PDF
Semantic Rules Representation in Controlled Natural Language in FluentEditor
PPTX
Phonological Processes Slides
PPT
Phonological processes
PPT
English Syntax - Basic Sentence Structure
PPTX
Syntax (Part 1)
PPT
ENGLISH SYNTAX
PPT
Syntax
PPT
Applied linguistics 1=class 1
PPTX
Phonology -- The Sound Patterns of Language Made Easy
PPT
Syntactic Analysis
Semantic Rules Representation in Controlled Natural Language in FluentEditor
Phonological Processes Slides
Phonological processes
English Syntax - Basic Sentence Structure
Syntax (Part 1)
ENGLISH SYNTAX
Syntax
Applied linguistics 1=class 1
Phonology -- The Sound Patterns of Language Made Easy
Syntactic Analysis
Ad

Similar to Sparql semantic information retrieval by (20)

PDF
SPARQL: SEMANTIC INFORMATION RETRIEVAL BY EMBEDDING PREPOSITIONS
PDF
RDF and SPARQL
PPTX
A Little SPARQL in your Analytics
PDF
Federation and Navigation in SPARQL 1.1
PPTX
Triplestore and SPARQL
PDF
A Hands On Overview Of The Semantic Web
PDF
Knowledge Engineering: Semantic web, web of data, linked data
PPT
PPT
SPARQL in the Semantic Web
PDF
Short Report Bridges performance gap between Relational and RDF
ODP
SPARQL 1.1 Update (2013-03-05)
PDF
Transforming Your Data with GraphDB: GraphDB Fundamentals, Jan 2018
PPTX
SPARQL
PPT
SPARQL Query Forms
PPTX
SPARQL Cheat Sheet
PPT
Analysis on semantic web layer cake entities
PDF
RDF Seminar Presentation
PPT
Achieving time effective federated information from scalable rdf data using s...
PDF
Expressive Querying of Semantic Databases with Incremental Query Rewriting
PPT
A hands on overview of the semantic web
SPARQL: SEMANTIC INFORMATION RETRIEVAL BY EMBEDDING PREPOSITIONS
RDF and SPARQL
A Little SPARQL in your Analytics
Federation and Navigation in SPARQL 1.1
Triplestore and SPARQL
A Hands On Overview Of The Semantic Web
Knowledge Engineering: Semantic web, web of data, linked data
SPARQL in the Semantic Web
Short Report Bridges performance gap between Relational and RDF
SPARQL 1.1 Update (2013-03-05)
Transforming Your Data with GraphDB: GraphDB Fundamentals, Jan 2018
SPARQL
SPARQL Query Forms
SPARQL Cheat Sheet
Analysis on semantic web layer cake entities
RDF Seminar Presentation
Achieving time effective federated information from scalable rdf data using s...
Expressive Querying of Semantic Databases with Incremental Query Rewriting
A hands on overview of the semantic web

Recently uploaded (20)

PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Cloud computing and distributed systems.
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
KodekX | Application Modernization Development
PDF
Approach and Philosophy of On baking technology
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Machine learning based COVID-19 study performance prediction
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Cloud computing and distributed systems.
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Diabetes mellitus diagnosis method based random forest with bat algorithm
Big Data Technologies - Introduction.pptx
Understanding_Digital_Forensics_Presentation.pptx
Review of recent advances in non-invasive hemoglobin estimation
KodekX | Application Modernization Development
Approach and Philosophy of On baking technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
The AUB Centre for AI in Media Proposal.docx
Advanced methodologies resolving dimensionality complications for autism neur...
Spectral efficient network and resource selection model in 5G networks
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
NewMind AI Weekly Chronicles - August'25 Week I
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Machine learning based COVID-19 study performance prediction

Sparql semantic information retrieval by

  • 1. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 SPARQL: SEMANTIC INFORMATION RETRIEVAL BY EMBEDDING PREPOSITIONS Sneha Kumari1 Dr.Rajiv Pandey2 Amit Singh3 Himanshu Pathak4 1 2 Scholar, Amity University, Lucknow, India Asst. Professor, Amity University, Lucknow, India 3 Scholar, Amity University, Lucknow, India 4 Scholar, Amity University, Lucknow, India ABSTRACT Semantic web document representation is formulated using RDF/OWL. RDF representation is in the form of triples & OWL in form of ontologies. The above representation leads to a data set which needs to be queried using software agents, machines. W3C has recommended SPARQL to be the de facto query language for RDF. This paper proposes to suggest a model to enable SPARQL to make search efficient, easier and produce meaningful search distinguished on the basis of preposition. An RDF data source primarily consist of data that is represented in the form of a Triple pattern which has an appropriate RDF syntax and further results into an RDF Graph .The RDF repository stores the Data on Subject, Predicate, Object Model. The Predicate may also be thought of as a property linking the Subject and Object. This paper shall evaluate the information retrieval by incorporating preposition as property. KEYWORDS SPARQL, N-Triples, OWL, RDF. 1. INTRODUCTION “SPARQL is a query language for RDF data on the semantic web with formally defined meaning” [1]. SPARQL a query language for RDF is used to return and manipulate data from databases that are stored in Resource Description Format. It is the recommendation of (DAWG) Data Access Working Group on RDF under World Wide Web Consortium, and is recognized as one of the key technologies of the semantic web. [1] Almost all RDF data repositories support SPARQL either directly or through dedicated SPARQL tools. The main feature of computing query results through SPARQL is achieved by sub-graph matching. These sub-graph are the generation based on RDF subject predicate object definition. RDF graphs are interpreted as nodes and edges. A lot has been researched on SPARQL and its query support to RDF repositories however it is of concern that no headway has been achieved in the semantic search based on preposition. This paper therefore proposes to incorporate prepositions in the SPARQL search pattern. This paper is divided into five sections i.e. DOI : 10.5121/ijnsa.2014.6105 49
  • 2. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 (1) Introduction (2) PL/SQL approach to preposition based search (3) SPARQL querying the RDF repository (4) Incorporating prepositions in triple patterns (5) Conclusion. 2. PL/SQL APPROACH TO PREPOSITION BASED SEARCH The below described approach is based on PL/SQL whereby that we have developed a function prep by CREATE FUNCTION func_prep. This function takes an argument which is the preposition “on” from the search pattern "Books on Steganography" the two keywords (Books, Steganography) can be interpreted by the search engine thru metadata definition but it is important to identify the existence of the preposition “on”. The PL/SQL function below can be passed, any preposition like(in , on , after , before , ago , since , at ,till , until ,towards and etc.),.The function then returns the flag value as ‘1’ for the existence of preposition and ‘0’ for non existence. The same is demonstrated thru the Fig 1, 2 and 3. CREATE FUNCTION func_prep ( @se nvarchar(20) ) RETURNS int AS BEGIN declare @flag int set @flag=0 if @se='on' begin set @flag=1 end if @se='before' begin set @flag=1 end RETURN @flag END 50
  • 3. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 GO Figure 1. Screen shot of SQL func_prep function.Here preposition found then output is 1. Figure 2. Passing a preposition to SQL function.Here, preposition not found and output is 0. Figure 3. Validation result return as True or False. The preposition existence is only highlighted by the above PL/SQL snippet but the semantic matching still remains to be undertaken by a semantic tool not being the part of PL/SQL. This approach exhibits a major limitation thus we need to look up to a SPARQL based search architecture which can return results based on preposition. The same is explored in the subsequent sections. 51
  • 4. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 3. SPARQL QUERYING THE RDF REPOSITORY SPARQL the query language for the RDF Semantic data sources permits the under mentioned and many more – • It retrieves data from Subject Predicate Object represented RDF data. • Explore data by querying unknown relationships. • Enables join operations on disparate databases. • It has aggregate functions like count() , aggregate() etc. It is observed that SPARQL exhibits a major limitations when it comes to searches based on prepositions .The Fig(4) describes SPARQL search architecture and it is observed that there is no provision to distinguish between the RDF graphs on the basis of prepositions 3.1. Basic Structure of SPARQL query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX swrc: <http://swrc.ontoware.org/ontology#> SELECT distinct ?Event1_location WHERE { ?Presentation1 rdf:type swrc:Presentation . ?Presentation1 swrc:isPresentedAt ?Event1 . ?Event1 rdf:type swrc:Event . ?Event1 swrc:location ?Event1_location . FILTER REGEX (str(?Event1_location), 'IIT Kanpur', 'i') } The Query above clearly signifies that each query embeds a Subject Predicate and Object component. The components i.e. Presentation isPresentedAt IIT Kanpur being the Subject Predicate and Object respectively. 3.2. RDF dataset explored: An RDF data source primarily consist of data that is represented in the form of a Triple pattern which has an appropriate RDF syntax and further results in to and RDF Graph .each of theses are explained in the following paragraphs. Triple Patterns [2] [3]: A triplestore is a domain specific database for the storage and retrieval of triples, a triple being a data entity composed of subject-predicate-object. Fig (4) is used to show the subject – predicate – object structure of RDF in Triple pattern data store. The tool used for generating the RDF data model is RDF validator of W3C [4] 52
  • 5. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 RDF syntax of subject-predicate-object data model: the RDF syntax Fig (5) distinguishes to state that http://www.facultydesc.demo/AMITY/Computerscience is subject, Subject can be namespaces of XML or URI as http://www.facultydesc.demo/AMITY/Computerscience, Predicate is the property ‘name’ and ‘phone’ of the faculty represented thru URI http://www.facultydesc.demo/AMITY#name,URI http://www.facultydesc.demo/AMITY#phone respectively. Figure 4. subject-predicate-object representation of a RDF data model. Figure 5 : RDF/XML syntax based on tripple pattern. Figure: 6 RDF graph 53
  • 6. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 Graph of RDF triple: The resultant graph of the RDF triples is represented in Figure: (6) which shows the nodes and edges. 3.3. INCORPORATING PREPOSITIONS IN TRIPLE PATTERNS Figure 7. Architectural representation of a SPARQL search. 3.3.1 .Architectural View [6] [7] • SPARQL Protocol client: An HTTP client which is capable to send HTTP request to SPARQL Operations. • SPARQL Protocol service: This service is more of an application or server which can accept HTTP request convert it into appropriate SPARQL request & when SPARQL operation generates the response the SPARQL response shall be approximate returned as HTTP response to the HTTP client. • SPARQL Endpoint: “The URI at which a SPARQL Protocol Service listen for request “[8]. This may be understood as port which it is listening to the HTTP request. • SPARQL Protocol operation: The SPARQL protocol operation consist of various methods which can accept the request .This process it to query the underlying RDF dataset & also capable to generate response .This operation protocol is built over HTTP .Therefore it supports the GET & POST method of HTTP. • RDF Dataset: The RDF dataset store represents information as graphs, which are resultants of Triples. Triples are the description based on Subject, Predicate & Object Paradigm. 54
  • 7. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 3.3.2. Preposition as property in SPARQL: We are using the tool SPARQL query builder [5] to generate the SPARQL query based on the property which serves as a predicate. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX swrc: <http://swrc.ontoware.org/ontology#> SELECT distinct ?Event1_location WHERE { ?Presentation1 rdf:type swrc:Presentation . ?Presentation1 swrc:isPresentedAt ?Event1 . ?Event1 rdf:type swrc:Event . ?Event1 swrc:location ?Event1_location . FILTER REGEX (str(?Event1_location), 'IIT Kanpur', 'i') } In the above SPARQL query the property “isPresentedAt” has been considered for the purpose of demonstration, we have to add prepositions as properties which will result in Semantic search. The Semantic search based prepositions is only possible when the data source specifies the dataset description based on prepositions. This class will help to check the preposition’s in between the words and generate the result. Any data repository which has a schema to cater for preposition related description can generate result based on the preposition property. In case of preposition, the predicate described as property in the triple store will also be matched for the preposition in between the words. The SPARQL query was generated by VIVO SPARQL online query builder. Figure 8. VIVO SPARQL builder demonstrating the predicate as property. 55
  • 8. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 When the triple data store will contain the triple “Books on Steganography” using the predicate “on” stored as property. Then the SPARQL query will return a more meaningful result which will be based on the preposition. 4. CONCLUSION This paper has primarily described how RDF data store need to be represented as a schema in which the prepositions will be used as properties. The properties will be then interpreted by the SPARQL engines. The property based schema can extend to OWL ontologies which are RDF serialized. The SPARQL engine will however only return search based on preposition when the underlying data set is got the appropriate schema. Thus all data sets of the future will need to be RDF repositories. It is therefore a subject of research to have software agents which can convert NonRDF datasets to RDF data sets. The agents can a part of the SPARQL engine itself which can interpret Non-RDF datasets to be RDF data sets only for the purpose of query. REFERENCES [1] www.w3.org/TR/2009/WD-sparql-features-20090702/ [2] http://en.wikipedia.org/wiki/Triplestore [3] http://apachebite.com/2012/04/ [4] http://www.w3.org/RDF/Validator/ [5] http://vivo-onto.slis.indiana.edu/SPARQL/ [6] http://www.w3.org/TR/sparql11-protocol/#rfc2616 [7] http://www.w3.org/TR/sparql11-query/#rdfDataset [8] http://www.w3.org/TR/2012/WD-sparql11-protocol-20120105/ [9] STEFAN DECKER et.al. Framework for the Semantic Web: An RDF Tutorial, Stanford University. [10] Marko A Rodriguez, an RDF/OWL Tutorial, Digital Library Research and Prototyping Team Alamos National Laboratory, Los Alamos, New Mexico, June 2007. Authors Sneha Kumari is pursuing M.C.A from Amity University Lucknow campus in Ami ty Institute of Information Technology. She will strive to write more research papers on Semantic Web. She is a Microsoft Certified Professional Developer in web technology. Dr. Rajiv Pandey is a Senior faculty at Amity University Lucknow campus in Amity Institute of Information Technology. His research area is Semantic Web technologies and ontology. He has published large number of research papers in various International and National Journals. 56
  • 9. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 Amit Singh is pursuing M.C.A from Amity Institute of Information Technology, Amity University Lucknow. It is his first paper and he will strive to write more research papers on Semantic Web related to Provenance. He is a Microsoft Certified Web Developer in various platform Himanshu Pathak is pursuing M.C.A from Amity University Lucknow campus in Amity Institute of Information Technology .He will strive to write more research papers on Semantic Web related to Provenance. He has published research papers in various International Journals 57