code: public static Function<Triple, Triple> skolemizeTriples(final ResourceService svc, final String baseUrl) {
          return triple -> rdf.createTriple((BlankNodeOrIRI) svc.toInternal(svc.skolemize(triple.getSubject()), baseUrl),
                  triple.getPredicate(), svc.toInternal(svc.skolemize(triple.getObject()), baseUrl));
      }
docs: Convert triples from an external form to a skolemized form.
  
  @param svc the resourceService
  @param baseUrl the base URL
  @return a mapping function