diff --git a/jenax-arq-parent/jenax-arq-plugins-parent/jenax-arq-plugins-bundle/src/main/java/org/aksw/jena_sparql_api/sparql/ext/url/E_UrlFetch.java b/jenax-arq-parent/jenax-arq-plugins-parent/jenax-arq-plugins-bundle/src/main/java/org/aksw/jena_sparql_api/sparql/ext/url/E_UrlFetch.java index 087908f5..e1b5dd26 100644 --- a/jenax-arq-parent/jenax-arq-plugins-parent/jenax-arq-plugins-bundle/src/main/java/org/aksw/jena_sparql_api/sparql/ext/url/E_UrlFetch.java +++ b/jenax-arq-parent/jenax-arq-plugins-parent/jenax-arq-plugins-bundle/src/main/java/org/aksw/jena_sparql_api/sparql/ext/url/E_UrlFetch.java @@ -49,7 +49,10 @@ public class E_UrlFetch { private static final Logger logger = LoggerFactory.getLogger(E_UrlFetch.class); - public static final Pattern jsonContentTypePattern = Pattern.compile("^application/(.+\\+)?json$"); + /** Liberal pattern that checks for any content type ending in json.*/ + public static final Pattern jsonContentTypePattern = Pattern.compile("^[^/]*/([^;+]+\\+)*json\\s*(;.*)?$"); + // ^Anything without / + // ^All groups ending on '+' @Override public NodeValue exec(List args, FunctionEnv env) {