1 / 1

ReL Components

ReL Components. CodeCompiler.java. Python.g. AST. Visitor. The Tuple entry in CodeCompiler was modified to deal with putting SIM, SQL, Prolog, and ASP information and expressions on the runtime stack and to assure that a new instance of PyTuple is created after the expressions are evaluated.

sveta
Download Presentation

ReL Components

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ReL Components CodeCompiler.java Python.g AST Visitor The Tuple entry in CodeCompiler was modified to deal with putting SIM, SQL, Prolog, and ASP information and expressions on the runtime stack and to assure that a new instance of PyTuple is created after the expressions are evaluated. The Python grammar was changed to include SIM, SQL, Prolog, and ASP statements. Interpreter Runtime Stack PyTuple.java ------------ parseSIM() jSIMParser jSQLParser There is no jSIMParser to parse SIM statements like jSQLParser for SQL but I hope one will be built as a project. jSQLParser parses SQL statements from PyTuple and produces an AST that can be visited. parseSIM parses SIM statements from PyTuple and produces and passes AS information to SIMHelper. SQLVisitor.java SIMHelper.java SIMHelper produces appropriate SPARQL statements for the SIM statements which are sent to SPARQLDoer. SPARQLDoer.java SQLVisitor visits the jSQLParser AST and produces appropriate SPARQL statements for the SQL statements which are sent to SPARQLDoer. Oracle DBMS

More Related