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

org.eclipse.rdf4j.rio.turtle.TurtleWriterSettings Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2022 Eclipse RDF4J contributors.
 *
 * 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.turtle;

import org.eclipse.rdf4j.rio.RioSetting;
import org.eclipse.rdf4j.rio.helpers.BooleanRioSetting;

/**
 * A class encapsulating writer settings that Turtle writers may support.
 *
 * @author Bart Hanssens
 *
 * @since 4.3.0
 */
public class TurtleWriterSettings {
	/**
	 * Boolean setting for Turtle/TriG Writer to determine if the abbreviated syntax for numeric datatypes is to be used
	 * when {@link org.eclipse.rdf4j.rio.helpers.BasicWriterSettings.html#PRETTY_PRINT} is true.
	 * 

* This setting has no effect when pretty print is false. * *

* Defaults to true. *

* Can be overridden by setting system property {@code org.eclipse.rdf4j.rio.turtle.abbreviate_numbers} * * @see https://www.w3.org/TR/turtle/#abbrev * @since 3.7.0 */ public static final BooleanRioSetting ABBREVIATE_NUMBERS = new BooleanRioSetting( "org.eclipse.rdf4j.rio.turtle.abbreviate_numbers", "Abbreviate numbers", Boolean.TRUE); /** * Private default constructor. */ private TurtleWriterSettings() { } static { assert ABBREVIATE_NUMBERS.equals(org.eclipse.rdf4j.rio.helpers.TurtleWriterSettings.ABBREVIATE_NUMBERS); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy