@ -96,7 +96,18 @@ impl DatasetView {
}))
}
} else {
Box::new(self.store_encoded_quads_for_pattern(subject, predicate, object, None))
Box::new(
self.store_encoded_quads_for_pattern(subject, predicate, object, None)
.map(|quad| {
let quad = quad?;
Ok(EncodedQuad::new(
quad.subject,
quad.predicate,
quad.object,
EncodedTerm::DefaultGraph,
))
}),
)
} else if self
.dataset
@ -1218,6 +1218,7 @@ mod tests {
"s,p,o\r\nhttp://example.com,http://example.com,http://example.com",
);
#[test]
fn get_query_union_graph_in_url_and_urlencoded() {
let server = ServerTest::new();