CONSTRUCT into a named graph
I am attempting to use a SPARQL Construct query to create a new named
graph from an existing one. The database I am querying contains
http://graph.com/old as an existing named graph. I am using Jena TDB as
the database, accessed through a Jena Fuseki endpoint. The below query
gives me an error:
CONSTRUCT
{
GRAPH <http://graph.com/new> {
?s ?p ?o
}
}
WHERE
{
GRAPH <http://graph.com/old> {
?s ?p ?o
}
}
If I remove the graph statement from the CONSTRUCT block, the query works
perfectly, but I would like to place the triples into a named graph that I
specify instead of the default one.
As far as I could find, the SPARQL 1.1 section on CONSTRUCT does not say
anything about constructing into named graphs. Is there a way to do this?
No comments:
Post a Comment