Professional Documents
Culture Documents
Abstractin this paper we propose a set of algorithms to improve the functioning of RETRO framework, these algorithms will
convert SQL queries like INSERT, UPDATE and DELETE to the equivalent queries SPARQL Update.
2. RETRO FRAMEWORK
www.ijcat.com 130
International Journal of Computer Applications Technology and Research
Volume 6Issue 3, 130-132, 2017, ISSN:-23198656
1 p<= ''
3.1 Insert Query 2 tps<=null
To insert the table name in the query is executed 3 o<= ''
4 q=splitQuery(Q) ;
Insert into name (subject, object) values ('S1', 'Ali'). 5 p=q.getPredicatValue() ;
6 tps=q.getTriples() ;
Our algorithm transSqlInsert (), receives the SQL
query string form, and it will extract the triple patterns to
7 Z =generateQuery(p,tps) ;
generate an equivalent SPARQL INSERT 8 Return Z ;
www.ijcat.com 131
International Journal of Computer Applications Technology and Research
Volume 6Issue 3, 130-132, 2017, ISSN:-23198656
string. After extracting the predicate for the request, the must keep the delete values to re-insert them in the RDF
method generateQuery (p, tps) reference SPARQL query without loss of data
Delete, from the extracted variable (p predicate and list of
pattern triples). 4. CONCLUSION
In this paper, we described an extension of RETRO
framework, this extension is in the form of n set of
algorithms to convert SQL queries INSERT, DELETE
and UPDATE to SPARQL Update, and these algorithms
are implemented and tested by java language. Another
promising avenue for future work is to implement a
framework for translating queries for other storing
methods.
4. REFERENCES
[1] Jyothsna Rachapalli, Vaibhav Khadilkar, Murat Kantarcioglu and
Bhavani Thuraisingham, RETRO: A Framework for Semantics
Preserving SQL-to-SPARQL Translation, EvoDyn Workshop,
2011.
[2] Bajda-Pawlikowski, K.: Querying RDF data stored in DBMS:
SPARQL to SQL Conversion. Technical Report TR-1409, Yale
Figure. 4 Example of an SQL Delete converted Computer Science Department, USA
[3] A. Seaborne, G. Manjunath: SPARQL/Update: A language for
updating RDF graphs. External HPL-2007-102, HP Labs Bristol
3.3 Update Query (2007).
[4] W3C, Resource description framework (RDF): concepts and
abstract syntax, in: G. Klyne, J.J. Carroll, B. McBride (Eds.), and
In the SPARQL language there is no equivalence of the W3C Recommendation [S], 10 February2004.
update query, so to execute an update query, you must http://www.w3.org/TR/2004/REC-rdf-concepts- 20040210
combine the two DELETE queries then INSERT, but you
www.ijcat.com 132