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

org.eclipse.rdf4j.rio.helpers.RDFaParserSettings 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 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. *

* Defaults to {@link RDFaVersion#RDFA_1_0}. */ @Deprecated(since = "4.3.0", forRemoval = true) 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. *

* Defaults to false *

* Can be overridden by setting system property {@code org.eclipse.rdf4j.rio.rdfa.vocab_expansion}. * * @see RDFa Vocabulary Expansion */ @Deprecated(since = "4.3.0", forRemoval = true) public static final RioSetting 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 RioSetting 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() { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy