Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a QueryBuilder class #23

Open
seporaitis opened this issue Jan 9, 2012 · 2 comments
Open

Create a QueryBuilder class #23

seporaitis opened this issue Jan 9, 2012 · 2 comments

Comments

@seporaitis
Copy link
Contributor

Example code interface should be something like:

$query = QueryBuilder::newInstance()->construct($model)->where($whatToSelect)->build();
$model = $repository->query($query);
$query = QueryBuilder::newInstance()->insert($model)->graph($someUri)->build();
$repository->insert($query);

Discussion is needed about how to implement complex queries (queries inside queries, selection form multiple graphs, etc.).

@seporaitis
Copy link
Contributor Author

This is related: AtomGraph/Core#9 in the sense that QueryBuilder should generate a SPIN model, that would be serialized to RDF/XML and transformed to SPARQL using XSLT.

@namedgraph
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants