Skip to content

Commit

Permalink
Update submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
marioscrock committed Feb 18, 2021
1 parent f55a055 commit 4d521cd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ static Mapper configure(RDFGraph graph, IRI contextIRI, RecordsFactory factory,
logger.debug("Base IRI set to value: " + options.getBaseIRI());
}
else {
baseIRI = ProcessorConstants.BASE_IRI_VALUE;
baseIRI = getBaseIRIFromMappings(options);
if (baseIRI == null)
baseIRI = ProcessorConstants.BASE_IRI_VALUE;
}

outputStore.copyNameSpaces(initializer.getRMLStore());
Expand Down Expand Up @@ -166,6 +168,15 @@ static Mapper configure(RDFGraph graph, IRI contextIRI, RecordsFactory factory,
return null;
}

private static String getBaseIRIFromMappings(RMLOptions options) {
List<InputStream> lis = options.getMappings().stream()
.map(Utils::getInputStreamFromFileOrContentString)
.collect(Collectors.toList());
InputStream is = new SequenceInputStream(Collections.enumeration(lis));

return Utils.getBaseDirectiveTurtle(is);
}

public static void initExecutors (RMLOptions options) {
if(options.isConcurrentRecords())
if (ConcurrentExecutor.executorService == null) {
Expand Down
2 changes: 1 addition & 1 deletion libs/rdf-lowerer

0 comments on commit 4d521cd

Please sign in to comment.