SlideShare a Scribd company logo
1 of 9
Download to read offline
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014
DOI : 10.5121/ijnsa.2014.6105 49
SPARQL: SEMANTIC INFORMATION RETRIEVAL BY
EMBEDDING PREPOSITIONS
Sneha Kumari1
Dr.Rajiv Pandey2
Amit Singh3
Himanshu Pathak4
1
Scholar, Amity University, Lucknow, India
2
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.
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014
50
(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
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014
51
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.
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014
52
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]
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014
53
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
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014
54
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.
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014
55
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.
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014
56
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 Non-
RDF 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.
International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014
57
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

More Related Content

What's hot

File Handling in C Part I
File Handling in C Part IFile Handling in C Part I
File Handling in C Part IArpana Awasthi
 
R Programming Language
R Programming LanguageR Programming Language
R Programming LanguageNareshKarela1
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic rankingFELIX75
 
2. introduction to compiler
2. introduction to compiler2. introduction to compiler
2. introduction to compilerSaeed Parsa
 
Lucene And Solr Document Classification
Lucene And Solr Document ClassificationLucene And Solr Document Classification
Lucene And Solr Document ClassificationAlessandro Benedetti
 
MACHINE LEARNING FOR OPTIMIZING SEARCH RESULTS WITH DRUPAL & APACHE SOLR
MACHINE LEARNING FOR OPTIMIZING SEARCH RESULTS WITH DRUPAL & APACHE SOLRMACHINE LEARNING FOR OPTIMIZING SEARCH RESULTS WITH DRUPAL & APACHE SOLR
MACHINE LEARNING FOR OPTIMIZING SEARCH RESULTS WITH DRUPAL & APACHE SOLRDrupalCamp Kyiv
 
C++ questions And Answer
C++ questions And AnswerC++ questions And Answer
C++ questions And Answerlavparmar007
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experiencedzynofustechnology
 
Tcs NQTExam technical questions
Tcs NQTExam technical questionsTcs NQTExam technical questions
Tcs NQTExam technical questionsAniketBhandare2
 
A COMPLETE FILE FOR C++
A COMPLETE FILE FOR C++A COMPLETE FILE FOR C++
A COMPLETE FILE FOR C++M Hussnain Ali
 
Python Programming - XII. File Processing
Python Programming - XII. File ProcessingPython Programming - XII. File Processing
Python Programming - XII. File ProcessingRanel Padon
 
Improving Top-K Retrieval Algorithms Using Dynamic Programming and Longer Ski...
Improving Top-K Retrieval Algorithms Using Dynamic Programming and Longer Ski...Improving Top-K Retrieval Algorithms Using Dynamic Programming and Longer Ski...
Improving Top-K Retrieval Algorithms Using Dynamic Programming and Longer Ski...Sease
 
Introduction to data analysis using R
Introduction to data analysis using RIntroduction to data analysis using R
Introduction to data analysis using RVictoria López
 
Explainability for Learning to Rank
Explainability for Learning to RankExplainability for Learning to Rank
Explainability for Learning to RankSease
 
Declarative Multilingual Information Extraction with SystemT
Declarative Multilingual Information Extraction with SystemTDeclarative Multilingual Information Extraction with SystemT
Declarative Multilingual Information Extraction with SystemTLaura Chiticariu
 
Introduction to the language R
Introduction to the language RIntroduction to the language R
Introduction to the language Rfbenault
 
What;s Coming In SPARQL2?
What;s Coming In SPARQL2?What;s Coming In SPARQL2?
What;s Coming In SPARQL2?LeeFeigenbaum
 

What's hot (20)

File Handling in C Part I
File Handling in C Part IFile Handling in C Part I
File Handling in C Part I
 
R Programming Language
R Programming LanguageR Programming Language
R Programming Language
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic ranking
 
2. introduction to compiler
2. introduction to compiler2. introduction to compiler
2. introduction to compiler
 
C++
C++C++
C++
 
Lucene And Solr Document Classification
Lucene And Solr Document ClassificationLucene And Solr Document Classification
Lucene And Solr Document Classification
 
MACHINE LEARNING FOR OPTIMIZING SEARCH RESULTS WITH DRUPAL & APACHE SOLR
MACHINE LEARNING FOR OPTIMIZING SEARCH RESULTS WITH DRUPAL & APACHE SOLRMACHINE LEARNING FOR OPTIMIZING SEARCH RESULTS WITH DRUPAL & APACHE SOLR
MACHINE LEARNING FOR OPTIMIZING SEARCH RESULTS WITH DRUPAL & APACHE SOLR
 
C++ questions And Answer
C++ questions And AnswerC++ questions And Answer
C++ questions And Answer
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
 
Tcs NQTExam technical questions
Tcs NQTExam technical questionsTcs NQTExam technical questions
Tcs NQTExam technical questions
 
R - the language
R - the languageR - the language
R - the language
 
A COMPLETE FILE FOR C++
A COMPLETE FILE FOR C++A COMPLETE FILE FOR C++
A COMPLETE FILE FOR C++
 
Python Programming - XII. File Processing
Python Programming - XII. File ProcessingPython Programming - XII. File Processing
Python Programming - XII. File Processing
 
Improving Top-K Retrieval Algorithms Using Dynamic Programming and Longer Ski...
Improving Top-K Retrieval Algorithms Using Dynamic Programming and Longer Ski...Improving Top-K Retrieval Algorithms Using Dynamic Programming and Longer Ski...
Improving Top-K Retrieval Algorithms Using Dynamic Programming and Longer Ski...
 
Introduction to data analysis using R
Introduction to data analysis using RIntroduction to data analysis using R
Introduction to data analysis using R
 
Unit 5
Unit 5Unit 5
Unit 5
 
Explainability for Learning to Rank
Explainability for Learning to RankExplainability for Learning to Rank
Explainability for Learning to Rank
 
Declarative Multilingual Information Extraction with SystemT
Declarative Multilingual Information Extraction with SystemTDeclarative Multilingual Information Extraction with SystemT
Declarative Multilingual Information Extraction with SystemT
 
Introduction to the language R
Introduction to the language RIntroduction to the language R
Introduction to the language R
 
What;s Coming In SPARQL2?
What;s Coming In SPARQL2?What;s Coming In SPARQL2?
What;s Coming In SPARQL2?
 

Similar to SPARQL: SEMANTIC INFORMATION RETRIEVAL BY EMBEDDING PREPOSITIONS

Sem facet paper
Sem facet paperSem facet paper
Sem facet paperDBOnto
 
SemFacet paper
SemFacet paperSemFacet paper
SemFacet paperDBOnto
 
final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)Ankit Rathi
 
RDF APIs for .NET Framework
RDF APIs for .NET FrameworkRDF APIs for .NET Framework
RDF APIs for .NET FrameworkAdriana Ivanciu
 
Achieving time effective federated information from scalable rdf data using s...
Achieving time effective federated information from scalable rdf data using s...Achieving time effective federated information from scalable rdf data using s...
Achieving time effective federated information from scalable rdf data using s...తేజ దండిభట్ల
 
Comparative Study That Aims Rdf Processing For The Java Platform
Comparative Study That Aims Rdf Processing For The Java PlatformComparative Study That Aims Rdf Processing For The Java Platform
Comparative Study That Aims Rdf Processing For The Java PlatformComputer Science
 
Transient and persistent RDF views over relational databases in the context o...
Transient and persistent RDF views over relational databases in the context o...Transient and persistent RDF views over relational databases in the context o...
Transient and persistent RDF views over relational databases in the context o...Nikolaos Konstantinou
 
Ijarcet vol-2-issue-2-676-678
Ijarcet vol-2-issue-2-676-678Ijarcet vol-2-issue-2-676-678
Ijarcet vol-2-issue-2-676-678Editor IJARCET
 
Sesam4 project presentation sparql - april 2011
Sesam4   project presentation sparql - april 2011Sesam4   project presentation sparql - april 2011
Sesam4 project presentation sparql - april 2011sesam4able
 
Sesam4 project presentation sparql - april 2011
Sesam4   project presentation sparql - april 2011Sesam4   project presentation sparql - april 2011
Sesam4 project presentation sparql - april 2011Robert Engels
 
Rdf Processing Tools In Java
Rdf Processing Tools In JavaRdf Processing Tools In Java
Rdf Processing Tools In JavaDicusarCorneliu
 
Machine Learning with SparkR
Machine Learning with SparkRMachine Learning with SparkR
Machine Learning with SparkROlgun Aydın
 
2009 0807 Lod Gmod
2009 0807 Lod Gmod2009 0807 Lod Gmod
2009 0807 Lod GmodJun Zhao
 

Similar to SPARQL: SEMANTIC INFORMATION RETRIEVAL BY EMBEDDING PREPOSITIONS (20)

Web Spa
Web SpaWeb Spa
Web Spa
 
Sem facet paper
Sem facet paperSem facet paper
Sem facet paper
 
SemFacet paper
SemFacet paperSemFacet paper
SemFacet paper
 
RDF and Java
RDF and JavaRDF and Java
RDF and Java
 
final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)
 
RDF APIs for .NET Framework
RDF APIs for .NET FrameworkRDF APIs for .NET Framework
RDF APIs for .NET Framework
 
eureka09
eureka09eureka09
eureka09
 
eureka09
eureka09eureka09
eureka09
 
Achieving time effective federated information from scalable rdf data using s...
Achieving time effective federated information from scalable rdf data using s...Achieving time effective federated information from scalable rdf data using s...
Achieving time effective federated information from scalable rdf data using s...
 
Comparative Study That Aims Rdf Processing For The Java Platform
Comparative Study That Aims Rdf Processing For The Java PlatformComparative Study That Aims Rdf Processing For The Java Platform
Comparative Study That Aims Rdf Processing For The Java Platform
 
Transient and persistent RDF views over relational databases in the context o...
Transient and persistent RDF views over relational databases in the context o...Transient and persistent RDF views over relational databases in the context o...
Transient and persistent RDF views over relational databases in the context o...
 
Ijarcet vol-2-issue-2-676-678
Ijarcet vol-2-issue-2-676-678Ijarcet vol-2-issue-2-676-678
Ijarcet vol-2-issue-2-676-678
 
.Net and Rdf APIs
.Net and Rdf APIs.Net and Rdf APIs
.Net and Rdf APIs
 
Sesam4 project presentation sparql - april 2011
Sesam4   project presentation sparql - april 2011Sesam4   project presentation sparql - april 2011
Sesam4 project presentation sparql - april 2011
 
Sesam4 project presentation sparql - april 2011
Sesam4   project presentation sparql - april 2011Sesam4   project presentation sparql - april 2011
Sesam4 project presentation sparql - april 2011
 
Article06
Article06Article06
Article06
 
Rdf Processing Tools In Java
Rdf Processing Tools In JavaRdf Processing Tools In Java
Rdf Processing Tools In Java
 
Jena Programming
Jena ProgrammingJena Programming
Jena Programming
 
Machine Learning with SparkR
Machine Learning with SparkRMachine Learning with SparkR
Machine Learning with SparkR
 
2009 0807 Lod Gmod
2009 0807 Lod Gmod2009 0807 Lod Gmod
2009 0807 Lod Gmod
 

Recently uploaded

8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 

Recently uploaded (20)

8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 

SPARQL: SEMANTIC INFORMATION RETRIEVAL BY EMBEDDING PREPOSITIONS

  • 1. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 DOI : 10.5121/ijnsa.2014.6105 49 SPARQL: SEMANTIC INFORMATION RETRIEVAL BY EMBEDDING PREPOSITIONS Sneha Kumari1 Dr.Rajiv Pandey2 Amit Singh3 Himanshu Pathak4 1 Scholar, Amity University, Lucknow, India 2 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.
  • 2. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 50 (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
  • 3. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 51 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.
  • 4. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 52 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]
  • 5. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 53 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
  • 6. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 54 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.
  • 7. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 55 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.
  • 8. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 56 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 Non- RDF 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.
  • 9. International Journal of Network Security & Its Applications (IJNSA), Vol.6, No.1, January 2014 57 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