diff --git a/core/rio/jsonld/src/main/java/org/eclipse/rdf4j/rio/jsonld/JSONLDParser.java b/core/rio/jsonld/src/main/java/org/eclipse/rdf4j/rio/jsonld/JSONLDParser.java index 379e806162..646b47958d 100644 --- a/core/rio/jsonld/src/main/java/org/eclipse/rdf4j/rio/jsonld/JSONLDParser.java +++ b/core/rio/jsonld/src/main/java/org/eclipse/rdf4j/rio/jsonld/JSONLDParser.java @@ -138,8 +138,6 @@ private void parse(InputStream in, Reader reader, String baseURI) BasicParserSettings.FAIL_ON_UNKNOWN_LANGUAGES); } - assert checkSupportedRioSettings(getParserConfig()); - boolean secureMode = getParserConfig().get(JSONLDSettings.SECURE_MODE); Set whitelist = getParserConfig().get(JSONLDSettings.WHITELIST); boolean documentLoaderCache = getParserConfig().get(JSONLDSettings.DOCUMENT_LOADER_CACHE); @@ -273,24 +271,6 @@ public Literal createLangString(String value, String lang) { } } - private boolean checkSupportedRioSettings(RioConfig config) { - Map, Object> settings = config.getSettings(); - - for (RioSetting objectRioSetting : settings.keySet()) { - if (objectRioSetting.equals(BasicParserSettings.PROCESS_ENCODED_RDF_STAR)) - continue; - if (objectRioSetting.equals(BasicWriterSettings.ENCODE_RDF_STAR)) - continue; - if (objectRioSetting.equals(BasicWriterSettings.BASE_DIRECTIVE)) - continue; - - assert getSupportedSettings().contains(objectRioSetting) : "Setting " + objectRioSetting.getKey() - + " is not supported."; - } - - return true; - } - /** * This method is overridden by the NDJSONLDParser * diff --git a/core/rio/jsonld/src/main/java/org/eclipse/rdf4j/rio/jsonld/JSONLDWriter.java b/core/rio/jsonld/src/main/java/org/eclipse/rdf4j/rio/jsonld/JSONLDWriter.java index 03b1c85870..5633a9c6fc 100644 --- a/core/rio/jsonld/src/main/java/org/eclipse/rdf4j/rio/jsonld/JSONLDWriter.java +++ b/core/rio/jsonld/src/main/java/org/eclipse/rdf4j/rio/jsonld/JSONLDWriter.java @@ -38,11 +38,9 @@ import org.eclipse.rdf4j.model.impl.SimpleValueFactory; import org.eclipse.rdf4j.rio.RDFFormat; import org.eclipse.rdf4j.rio.RDFHandlerException; -import org.eclipse.rdf4j.rio.RioConfig; import org.eclipse.rdf4j.rio.RioSetting; import org.eclipse.rdf4j.rio.WriterConfig; import org.eclipse.rdf4j.rio.helpers.AbstractRDFWriter; -import org.eclipse.rdf4j.rio.helpers.BasicParserSettings; import org.eclipse.rdf4j.rio.helpers.BasicWriterSettings; import org.eclipse.rdf4j.rio.helpers.StatementCollector; @@ -150,8 +148,6 @@ public void endRDF() throws RDFHandlerException { JsonLdOptions opts = new JsonLdOptions(); WriterConfig writerConfig = getWriterConfig(); - assert checkSupportedRioSettings(writerConfig); - if (writerConfig.get(JSONLDSettings.HIERARCHICAL_VIEW)) { throw new UnsupportedOperationException( "Hierarchical view is not supported by this JSON-LD processor. Use org.eclipse.rdf4j.rio.jsonld.legacy.JSONLDWriter instead."); @@ -300,24 +296,6 @@ public int size() { } } - private boolean checkSupportedRioSettings(RioConfig config) { - Map, Object> settings = config.getSettings(); - - for (RioSetting objectRioSetting : settings.keySet()) { - if (objectRioSetting.equals(BasicParserSettings.PROCESS_ENCODED_RDF_STAR)) - continue; - if (objectRioSetting.equals(BasicWriterSettings.ENCODE_RDF_STAR)) - continue; - if (objectRioSetting.equals(BasicWriterSettings.CONVERT_RDF_STAR_TO_REIFICATION)) - continue; - - assert getSupportedSettings().contains(objectRioSetting) : "Setting " + objectRioSetting.getKey() - + " is not supported."; - } - - return true; - } - private JSONLDMode mapJsonLdMode(Object jsonldMode) { if (jsonldMode instanceof JSONLDMode) { return (JSONLDMode) jsonldMode;