Class RdfDataEngineFromDataset
java.lang.Object
org.aksw.jenax.dataaccess.sparql.factory.dataengine.RdfDataEngineFromDataset
- All Implemented Interfaces:
AutoCloseable,HasServiceControl,RDFEngine,HasRDFLinkSource
An RdfDataSource wrapper for a dataset. The connection supplier is
a lambda in order to allow for context mutations and query transformations.
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRdfDataEngineFromDataset(org.apache.jena.sparql.core.DatasetGraph datasetGraph, boolean closeDataset) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static RdfDataEngineFromDatasetcreate(org.apache.jena.sparql.core.DatasetGraph dataset) Create an engine whose close method closes the given dataset.static RdfDataEngineFromDatasetcreate(org.apache.jena.sparql.core.DatasetGraph datasetGraph, boolean closeDataset) An engine may optionally expose a way to start and stop the underlying service.
-
Field Details
-
linkSource
-
closeDataset
protected boolean closeDataset
-
-
Constructor Details
-
RdfDataEngineFromDataset
public RdfDataEngineFromDataset(org.apache.jena.sparql.core.DatasetGraph datasetGraph, boolean closeDataset)
-
-
Method Details
-
getLinkSource
- Specified by:
getLinkSourcein interfaceHasRDFLinkSource
-
getServiceControl
Description copied from interface:RDFEngineAn engine may optionally expose a way to start and stop the underlying service. Note that only a call toAutoCloseable.close()must guarantee to stop the service and free any resources. Only callingServiceControl.stop()is generally NOT sufficient.- Specified by:
getServiceControlin interfaceHasServiceControl- Specified by:
getServiceControlin interfaceRDFEngine
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
create
public static RdfDataEngineFromDataset create(org.apache.jena.sparql.core.DatasetGraph datasetGraph, boolean closeDataset) -
create
Create an engine whose close method closes the given dataset.
-