afs commented on code in PR #2384:
URL: https://github.com/apache/jena/pull/2384#discussion_r1545585104
##########
jena-arq/src/test/java/org/apache/jena/sparql/graph/TestGraphUnionRead.java:
##########
@@ -125,6 +131,44 @@ public void gr_union_of_one_1() {
assertEquals(1, x2);
}
+ @Test
+ public void gr_union_prefixes() {
+ Graph graph = setupPrefixGraph("ex", "http://example/");
+
+ DatasetGraph dsg = DatasetGraphFactory.createGeneral();
+ dsg.addGraph(gn1, graph);
+
+ GraphUnionRead gUnionRead = new GraphUnionRead(dsg, List.of(gn1));
+ assertNotNull(gUnionRead.getPrefixMapping().getNsPrefixURI("ex"));
+ }
+
+ @Test
+ public void gr_union_prefixes_bad_PrefixMapping() {
+ // Turtle-valid, RDF/XML invalid prefix.
+ Graph graph = setupPrefixGraph("😀", "http://example/");
Review Comment:
Also available in 😱
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]