Skip to content

Instantly share code, notes, and snippets.

@promontis
Created May 29, 2012 12:33
Show Gist options
  • Save promontis/2828166 to your computer and use it in GitHub Desktop.
Save promontis/2828166 to your computer and use it in GitHub Desktop.
The following query (just a sample), uses a named graph and a subquery to filter.
The subquery is created via a custom build linq-provider, as the linq expression is expressed in a subquery as well.
I originally had a FROM clause in the subquery as well, but then I get an exception, that this is not allowed.
Removing the FROM clause in the subquery works, but the name node now belong to the empty default graph (as it has no graphuri or graph)
SELECT ?id ?name
FROM <http://sample.com>
WHERE {
{
?id <http://sample.com/thename> ?name
SELECT (?n as ?name)
WHERE {
FILTER(?k = "foobar")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment