1 / 1

ReL Components

The CodeCompiler's tuple entry has been modified to effectively manage the integration of SIM, SQL, Prolog, and ASP data on the runtime stack. This change ensures new PyTuple instances are created post-expression evaluations. The Python grammar now accommodates these new statements. Notably, although a parser for SIM akin to jSQLParser does not yet exist, it is anticipated as a future project. The jSQLParser successfully parses SQL statements and generates an AST for traversal, while SIM statements are processed by parseSIM, with relevant outputs routed to SIMHelper for SPARQL statement generation.

sveta
Télécharger la présentation

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