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

be.vlaanderen.informatievlaanderen.ldes.ldio.LdioHttpSparqlOut Maven / Gradle / Ivy

package be.vlaanderen.informatievlaanderen.ldes.ldio;

import be.vlaanderen.informatievlaanderen.ldes.ldi.HttpSparqlOut;
import be.vlaanderen.informatievlaanderen.ldes.ldi.exceptions.WriteActionFailedException;
import be.vlaanderen.informatievlaanderen.ldes.ldi.types.LdiOutput;
import org.apache.jena.rdf.model.Model;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LdioHttpSparqlOut implements LdiOutput {
	public static final String NAME = "Ldio:HttpSparqlOut";
	private static final Logger log = LoggerFactory.getLogger(LdioHttpSparqlOut.class);
	private final HttpSparqlOut httpSparqlOut;

	public LdioHttpSparqlOut(HttpSparqlOut httpSparqlOut) {
		this.httpSparqlOut = httpSparqlOut;
	}

	@Override
	public void accept(Model model) {
		try {
			httpSparqlOut.write(model);
		} catch (WriteActionFailedException e) {
			log.error(e.getMessage());
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy