jsimparser with rel

12
Arit Paul and Chris Hitte

Upload: chung

Post on 21-Jan-2016

18 views

Category:

Documents


0 download

DESCRIPTION

Jsimparser with ReL. Arit Paul and Chris Hitte. SIM vs SQL. SQL is a subset of SIM SIM has the added functionality of: Classes Subclasses. Overview of Changes. Preserved existing SIM and SQL functionality of ReL Created jsimparser Modified PyTuple.java to call jsimparser - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Jsimparser  with  ReL

Arit Paul and Chris Hitte

Page 2: Jsimparser  with  ReL

SQL is a subset of SIM SIM has the added functionality of:

◦ Classes◦ Subclasses

Page 3: Jsimparser  with  ReL

Preserved existing SIM and SQL functionality of ReL

Created jsimparser Modified PyTuple.java to call jsimparser Modified Python.g to pass concrete syntax Created SIMVisitor

Page 4: Jsimparser  with  ReL

Class.java◦ EVA.java◦ EVAAttribute.java◦ DVA.java◦ DVAAttribute.java

Insert.java◦ Assignment.java

Modify.java Retrieve.java

◦ AttributePath.java

Page 5: Jsimparser  with  ReL

Created JSIMparser based on JSQLparser JSIMparser:

◦ Accepts concrete syntax from PyTuple.java◦ Stores parsed data in instances of our newly

defined classes◦ Builds AST from the instances

AST is visited by SIMVisitor

Page 6: Jsimparser  with  ReL
Page 7: Jsimparser  with  ReL

Created SIMVisitor based on SIMHelper and SQLVisitor

SIMVisitor:◦ PyTuple passes the AST to SIMVisitor◦ Visits the nodes of the AST produced by

JSIMparser◦ Pulls key data from these nodes◦ Builds an equivalent SPARQL statement◦ SPARQLDoer executes this statement

Page 8: Jsimparser  with  ReL
Page 9: Jsimparser  with  ReL

... In class visitor ...

EVA and DVA visitor call correct SPARQL

Page 10: Jsimparser  with  ReL

Class Subclass Insert Modify Retrieve

Page 11: Jsimparser  with  ReL
Page 12: Jsimparser  with  ReL

Concrete Syntax from Python.g

SPARQL conversion

Result of retrieve