ebremer opened a new issue, #2854:
URL: https://github.com/apache/jena/issues/2854

   ### Version
   
   5.2.0
   
   ### What happened?
   
   Run the following code
   ```
           Model a = ModelFactory.createDefaultModel();
           a.add(ResourceFactory.createResource("https://dummy.com/TripleA";), 
RDF.type, OWL.Thing);
           Model b = ModelFactory.createDefaultModel();
           b.add(ResourceFactory.createResource("https://dummy.com/TripleB";), 
RDF.type, OWL.Thing);
           
           Dataset ds = DatasetFactory.create();
           ds.setDefaultModel(a);
           
ds.addNamedModel(ResourceFactory.createProperty("https://dummy.com/ngB";), b);
           
           System.out.println("Graph A 
===========================================");
           a.write(System.out, "TTL");
           System.out.println("Graph B 
===========================================");
           b.write(System.out, "TTL");
           System.out.println("UNION of A and B 
===========================================");
           ds.getUnionModel().write(System.out, "TTL");
   ```
   outputs
   ```
   Graph A ===========================================
   <https://dummy.com/TripleA>
           a       <http://www.w3.org/2002/07/owl#Thing> .
   Graph B ===========================================
   <https://dummy.com/TripleB>
           a       <http://www.w3.org/2002/07/owl#Thing> .
   UNION of A and B ===========================================
   <https://dummy.com/TripleB>
           a       <http://www.w3.org/2002/07/owl#Thing> .
   ```
   I thought the union model would include the triples in the default graph as 
well.
   
   ### Relevant output and stacktrace
   
   _No response_
   
   ### Are you interested in making a pull request?
   
   None


-- 
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]

Reply via email to