Created
May 29, 2012 12:33
-
-
Save promontis/2828166 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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