All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.rdf4j.rio.helpers.RDFJSONParserSettings Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
/*******************************************************************************
 * 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.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 *******************************************************************************/
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}. * * @deprecated Use {@link org.eclipse.rdf4j.rio.rdfjson.RDFJSONParserSettings#FAIL_ON_MULTIPLE_OBJECT_VALUES} * instead. */ @Deprecated(since = "4.3.0", forRemoval = true) 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}. * * @deprecated Use {@link org.eclipse.rdf4j.rio.rdfjson.RDFJSONParserSettings#FAIL_ON_MULTIPLE_OBJECT_TYPES} * instead. */ @Deprecated(since = "4.3.0", forRemoval = true) 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}. * * @deprecated Use {@link org.eclipse.rdf4j.rio.rdfjson.RDFJSONParserSettings#FAIL_ON_MULTIPLE_OBJECT_LANGUAGES} * instead. */ @Deprecated(since = "4.3.0", forRemoval = true) 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}. * * @deprecated Use {@link org.eclipse.rdf4j.rio.rdfjson.RDFJSONParserSettings#FAIL_ON_MULTIPLE_OBJECT_DATATYPES} * instead. */ @Deprecated(since = "4.3.0", forRemoval = true) 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}. * * @deprecated Use {@link org.eclipse.rdf4j.rio.rdfjson.RDFJSONParserSettings#FAIL_ON_UNKNOWN_PROPERTY} instead. */ @Deprecated(since = "4.3.0", forRemoval = true) 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}. * * @deprecated Use {@link org.eclipse.rdf4j.rio.rdfjson.RDFJSONParserSettings#SUPPORT_GRAPHS_EXTENSION} instead. */ @Deprecated(since = "4.3.0", forRemoval = true) 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() { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy