Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 510 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 510 Bytes

Query rewriting

This project shows how SPARQL-Generate can be used for the simplest form of query rewriting: Basic Graph Pattern rewriting.

Given a query

SELECT * WHERE { <bgp> }

The main method in class TransformBGP transforms the Basic Graph Pattern <bgp> into another Basic Graph Pattern <bgp2> , and constructs a new query

SELECT * WHERE { <bgp2> }

The existence of this project is not sufficient to claim that SPARQL-Generate can be used for query rewriting (for now).