org.eclipse.rdf4j.rio.helpers.RDFJSONParserSettings Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*******************************************************************************/
package org.eclipse.rdf4j.rio.helpers;
import org.eclipse.rdf4j.rio.RioSetting;
/**
* A selection of parser settings specific to RDF/JSON parsers.
*
* Several of these settings can be overridden by means of a system property, but only if specified at JVM startup time.
*
* @author Peter Ansell
*/
public class RDFJSONParserSettings {
/**
* Boolean setting for parser to determine whether an RDF/JSON parser should fail if it finds multiple values for a
* single object in a single statement.
*
* Defaults to true.
*
* Can be overridden by setting system property
* {@code org.eclipse.rdf4j.rio.rdfjson.fail_on_multiple_object_values}.
*/
public static final RioSetting FAIL_ON_MULTIPLE_OBJECT_VALUES = new BooleanRioSetting(
"org.eclipse.rdf4j.rio.rdfjson.fail_on_multiple_object_values", "Fail on multiple object values",
Boolean.TRUE);
/**
* Boolean setting for parser to determine whether an RDF/JSON parser should fail if it finds multiple types for a
* single object in a single statement.
*
* Defaults to true.
*
* Can be overridden by setting system property {@code org.eclipse.rdf4j.rio.rdfjson.fail_on_multiple_object_types}.
*/
public static final RioSetting FAIL_ON_MULTIPLE_OBJECT_TYPES = new BooleanRioSetting(
"org.eclipse.rdf4j.rio.rdfjson.fail_on_multiple_object_types", "Fail on multiple object types",
Boolean.TRUE);
/**
* Boolean setting for parser to determine whether an RDF/JSON parser should fail if it finds multiple languages for
* a single object in a single statement.
*
* Defaults to true.
*
* Can be overridden by setting system property
* {@code org.eclipse.rdf4j.rio.rdfjson.fail_on_multiple_object_languages}.
*/
public static final RioSetting FAIL_ON_MULTIPLE_OBJECT_LANGUAGES = new BooleanRioSetting(
"org.eclipse.rdf4j.rio.rdfjson.fail_on_multiple_object_languages", "Fail on multiple object languages",
Boolean.TRUE);
/**
* Boolean setting for parser to determine whether an RDF/JSON parser should fail if it finds multiple datatypes for
* a single object in a single statement.
*
* Defaults to true.
*
* Can be overridden by setting system property
* {@code org.eclipse.rdf4j.rio.rdfjson.fail_on_multiple_object_datatypes}.
*/
public static final RioSetting FAIL_ON_MULTIPLE_OBJECT_DATATYPES = new BooleanRioSetting(
"org.eclipse.rdf4j.rio.rdfjson.fail_on_multiple_object_datatypes", "Fail on multiple object datatypes",
Boolean.TRUE);
/**
* Boolean setting for parser to determine whether an RDF/JSON parser should fail if it finds multiple properties
* that it does not recognize in the JSON document.
*
* Defaults to true.
*
* Can be overridden by setting system property {@code org.eclipse.rdf4j.rio.rdfjson.fail_on_unknown_property}.
*/
public static final RioSetting FAIL_ON_UNKNOWN_PROPERTY = new BooleanRioSetting(
"org.eclipse.rdf4j.rio.rdfjson.fail_on_unknown_property", "Fail on unknown property", Boolean.TRUE);
/**
* Boolean setting for parser to determine whether an RDF/JSON parser should support the graphs extension to make it
* a quads format.
*
* Defaults to true.
*
* Can be overridden by setting system property {@code org.eclipse.rdf4j.rio.rdfjson.support_graphs_extension}.
*/
public static final RioSetting SUPPORT_GRAPHS_EXTENSION = new BooleanRioSetting(
"org.eclipse.rdf4j.rio.rdfjson.support_graphs_extension", "SUPPORT_GRAPHS_EXTENSION", Boolean.TRUE);
/**
* Private default constructor.
*/
private RDFJSONParserSettings() {
}
}