File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
src/main/java/be/ugent/rml Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9
9
10
10
### Fixed
11
11
- Better handle unsupported reference formulation (See [ issue 247] ( https://github.com/RMLio/rmlmapper-java/issues/247 ) )
12
+ - Graph Maps with default graph must not be ignored (See [ issue 252] ( https://github.com/RMLio/rmlmapper-java/issues/252 ) )
12
13
13
14
## [ 7.3.2] - 2025-03-04
14
15
Original file line number Diff line number Diff line change @@ -372,7 +372,13 @@ private List<PredicateObjectGraph> combineMultiplePOGs(List<ProvenancedTerm> pre
372
372
predicates .forEach (
373
373
p -> objects .forEach (
374
374
o -> graphs .forEach (
375
- g -> results .add (new PredicateObjectGraph (p , o , g ))
375
+ g -> {
376
+ if (g .getTerm ().equals (new NamedNode (NAMESPACES .RML2 + "defaultGraph" ))) {
377
+ results .add (new PredicateObjectGraph (p , o , null ));
378
+ } else {
379
+ results .add (new PredicateObjectGraph (p , o , g ));
380
+ }
381
+ }
376
382
)
377
383
)
378
384
);
@@ -475,10 +481,8 @@ private void generatePredicateObjectsForSubjects(final List<ProvenancedTerm> sub
475
481
TermGenerator pogGraphGenerator = pogGraphMappingInfo .getTermGenerator ();
476
482
if (pogGraphGenerator != null ) {
477
483
pogGraphGenerator .generate (record ).forEach (term -> {
478
- if (!term .equals (new NamedNode (NAMESPACES .RML2 + "defaultGraph" ))) {
479
- List <Term > graphTargets = getAllTargets (pogGraphMappingInfo , record );
480
- poGraphs .add (new ProvenancedTerm (term , null , graphTargets ));
481
- }
484
+ List <Term > graphTargets = getAllTargets (pogGraphMappingInfo , record );
485
+ poGraphs .add (new ProvenancedTerm (term , null , graphTargets ));
482
486
});
483
487
}
484
488
}
You can’t perform that action at this time.
0 commit comments