001/* 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 */ 006package org.fcrepo.http.commons.test.util; 007 008import org.apache.jena.rdf.model.Model; 009import org.apache.jena.sparql.core.DatasetImpl; 010 011/** 012 * Adds the standard {@link AutoCloseable} semantic to Jena's {@link org.apache.jena.query.Dataset} for 013 * convenient use with Java 7's <code>try-with-resources</code> syntax. 014 * 015 * @author ajs6f 016 */ 017public class CloseableDataset extends DatasetImpl implements AutoCloseable { 018 019 /** 020 * Default constructor. 021 * 022 * @param model Model to wrap 023 */ 024 public CloseableDataset(final Model model) { 025 super(model); 026 } 027}