public class FedXDataset extends Object implements Dataset
Dataset to provide additional information for the evaluation of a query.
 Can be used to define the endpoints against which a given query shall be executed.
Example
 TupleQuery tq = ...; 
 FedXDataset ds = new FedXDataset(tq.getDataset);
 ds.addEndpoint("myEndpoint");
 ds.addEndpoint("otherEndpoint");
 tq.setDataset(ds)
 TupleQueryResult res = tq.evaluate()
 | Modifier and Type | Field and Description | 
|---|---|
| protected Dataset | delegate | 
| protected Set<String> | endpoints | 
| Constructor and Description | 
|---|
| FedXDataset(Dataset delegate) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addEndpoint(String endpointId) | 
| void | addEndpoints(Collection<String> endpointIDs) | 
| Set<IRI> | getDefaultGraphs()Gets the default graph URIs of this dataset. | 
| IRI | getDefaultInsertGraph()Gets the default insert graph URI of this dataset. | 
| Set<IRI> | getDefaultRemoveGraphs()Gets the default remove graph URIs of this dataset. | 
| Set<String> | getEndpoints() | 
| Set<IRI> | getNamedGraphs()Gets the named graph URIs of this dataset. | 
public FedXDataset(Dataset delegate)
public void addEndpoint(String endpointId)
public void addEndpoints(Collection<String> endpointIDs)
public Set<IRI> getDefaultGraphs()
DatasetgetDefaultGraphs in interface Datasetpublic IRI getDefaultInsertGraph()
DatasetgetDefaultInsertGraph in interface Datasetpublic Set<IRI> getDefaultRemoveGraphs()
DatasetgetDefaultRemoveGraphs in interface Datasetpublic Set<IRI> getNamedGraphs()
DatasetgetNamedGraphs in interface DatasetCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.