org.vivoweb.linkeddatafragments.datasource.rdfservice.RDFServiceDataSourceType Maven / Gradle / Ivy
package org.vivoweb.linkeddatafragments.datasource.rdfservice;
import com.fasterxml.jackson.databind.JsonNode;
import org.linkeddatafragments.datasource.IDataSource;
import org.linkeddatafragments.datasource.IDataSourceType;
import org.linkeddatafragments.exceptions.DataSourceCreationException;
/**
* The type of Triple Pattern Fragment data sources that are backed by
* a Jena TDB instance.
*
* @author Olaf Hartig
*/
public class RDFServiceDataSourceType implements IDataSourceType
{
@Override
public IDataSource createDataSource( final String title,
final String description,
final JsonNode settings )
throws DataSourceCreationException
{
try {
return new RDFServiceDataSource(title, description);
} catch (Exception ex) {
throw new DataSourceCreationException(ex);
}
}
}