|
38 | 38 | import org.eclipse.rdf4j.model.impl.SimpleValueFactory; |
39 | 39 | import org.eclipse.rdf4j.rio.RDFFormat; |
40 | 40 | import org.eclipse.rdf4j.rio.RDFHandlerException; |
41 | | -import org.eclipse.rdf4j.rio.RioConfig; |
42 | 41 | import org.eclipse.rdf4j.rio.RioSetting; |
43 | 42 | import org.eclipse.rdf4j.rio.WriterConfig; |
44 | 43 | import org.eclipse.rdf4j.rio.helpers.AbstractRDFWriter; |
45 | | -import org.eclipse.rdf4j.rio.helpers.BasicParserSettings; |
46 | 44 | import org.eclipse.rdf4j.rio.helpers.BasicWriterSettings; |
47 | 45 | import org.eclipse.rdf4j.rio.helpers.StatementCollector; |
48 | 46 |
|
@@ -150,8 +148,6 @@ public void endRDF() throws RDFHandlerException { |
150 | 148 | JsonLdOptions opts = new JsonLdOptions(); |
151 | 149 | WriterConfig writerConfig = getWriterConfig(); |
152 | 150 |
|
153 | | - assert checkSupportedRioSettings(writerConfig); |
154 | | - |
155 | 151 | if (writerConfig.get(JSONLDSettings.HIERARCHICAL_VIEW)) { |
156 | 152 | throw new UnsupportedOperationException( |
157 | 153 | "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() { |
300 | 296 | } |
301 | 297 | } |
302 | 298 |
|
303 | | - private boolean checkSupportedRioSettings(RioConfig config) { |
304 | | - Map<RioSetting<Object>, Object> settings = config.getSettings(); |
305 | | - |
306 | | - for (RioSetting<Object> objectRioSetting : settings.keySet()) { |
307 | | - if (objectRioSetting.equals(BasicParserSettings.PROCESS_ENCODED_RDF_STAR)) |
308 | | - continue; |
309 | | - if (objectRioSetting.equals(BasicWriterSettings.ENCODE_RDF_STAR)) |
310 | | - continue; |
311 | | - if (objectRioSetting.equals(BasicWriterSettings.CONVERT_RDF_STAR_TO_REIFICATION)) |
312 | | - continue; |
313 | | - |
314 | | - assert getSupportedSettings().contains(objectRioSetting) : "Setting " + objectRioSetting.getKey() |
315 | | - + " is not supported."; |
316 | | - } |
317 | | - |
318 | | - return true; |
319 | | - } |
320 | | - |
321 | 299 | private JSONLDMode mapJsonLdMode(Object jsonldMode) { |
322 | 300 | if (jsonldMode instanceof JSONLDMode) { |
323 | 301 | return (JSONLDMode) jsonldMode; |
|
0 commit comments