Skip to content

Commit

Permalink
Remove the default 'foo:bar' base URI in order to prevent error when …
Browse files Browse the repository at this point in the history
…data is parsed with JSONLDParser
  • Loading branch information
denitsa committed Nov 8, 2021
1 parent f5a3e3a commit c66f1f6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ private ModelAndView getAddDataResult(Repository repository, HttpServletRequest
final boolean preserveNodeIds = ProtocolUtil.parseBooleanParam(request, Protocol.PRESERVE_BNODE_ID_PARAM_NAME,
false);

if (baseURI == null) {
baseURI = vf.createIRI("foo:bar");
logger.info("no base URI specified, using dummy '{}'", baseURI);
String baseURIString = null;
if (baseURI != null) {
baseURIString = baseURI.toString();
}

InputStream in = request.getInputStream();
Expand All @@ -393,7 +393,7 @@ private ModelAndView getAddDataResult(Repository repository, HttpServletRequest
if (replaceCurrent) {
repositoryCon.clear(contexts);
}
repositoryCon.add(in, baseURI.toString(), rdfFormat, contexts);
repositoryCon.add(in, baseURIString, rdfFormat, contexts);

repositoryCon.commit();

Expand Down

0 comments on commit c66f1f6

Please sign in to comment.