org.eclipse.rdf4j.rio.helpers.RDFaParserSettings 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.
*
* 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 RDFa 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 RDFaParserSettings {
/**
* Boolean setting for parser to determine the RDFa version to use when processing the document. Note that although
* these settings are not used within RDF4J, they are in use by external plugins.
*
* @see https://github.com/eclipse-rdf4j/rdf4j/issues/4779
*
* Defaults to {@link RDFaVersion#RDFA_1_0}.
*/
public static final RioSetting RDFA_COMPATIBILITY = new RioSettingImpl<>(
"org.eclipse.rdf4j.rio.rdfa.version", "RDFa Version Compatibility", RDFaVersion.RDFA_1_0);
/**
* Enables or disables vocabulary
* expansion feature. Note that although these settings are not used within RDF4J, they are in use by external
* plugins.
*
* Defaults to false
*
* Can be overridden by setting system property {@code org.eclipse.rdf4j.rio.rdfa.vocab_expansion}.
*
* @see RDFa Vocabulary Expansion
*/
public static final BooleanRioSetting VOCAB_EXPANSION_ENABLED = new BooleanRioSetting(
"org.eclipse.rdf4j.rio.rdfa.vocab_expansion", "Vocabulary Expansion", Boolean.FALSE);
/**
* Boolean setting for parser to determine whether the published RDFa prefixes are used to substitute for undefined
* prefixes.
*
* Defaults to false.
*
* Can be overridden by setting system property {@code org.eclipse.rdf4j.rio.rdfa.allow_undefined_prefixes}.
*
* @deprecated Use {@link BasicParserSettings#NAMESPACES}
*/
@Deprecated(forRemoval = true)
public static final BooleanRioSetting FAIL_ON_RDFA_UNDEFINED_PREFIXES = new BooleanRioSetting(
"org.eclipse.rdf4j.rio.rdfa.allow_undefined_prefixes", "Allow RDFa Undefined Prefixes", Boolean.FALSE);
/**
* Private default constructor.
*/
private RDFaParserSettings() {
}
}