public class DatasetAdapter extends Object implements DatasetAccessor
Constructor and Description |
---|
DatasetAdapter(DatasetGraphAccessor updater) |
Modifier and Type | Method and Description |
---|---|
void |
add(Model data)
Add statements to the default model of a Dataset
|
void |
add(String graphUri,
Model data)
Add statements to a named model of a Dataset
|
boolean |
containsModel(String graphUri)
Does the Dataset contain a named graph?
|
void |
deleteDefault()
Delete (which means clear) the default model of a Dataset
|
void |
deleteModel(String graphUri)
Delete a named model of a Dataset
|
Model |
getModel()
Get the default model of a Dataset
|
Model |
getModel(String graphUri)
Get a named model of a Dataset
|
void |
putModel(Model data)
Put (replace) the default model of a Dataset
|
void |
putModel(String graphUri,
Model data)
Put (create/replace) a named model of a Dataset
|
public DatasetAdapter(DatasetGraphAccessor updater)
public Model getModel()
getModel
in interface DatasetAccessor
public Model getModel(String graphUri)
getModel
in interface DatasetAccessor
public boolean containsModel(String graphUri)
DatasetAccessor
containsModel
in interface DatasetAccessor
public void putModel(Model data)
putModel
in interface DatasetAccessor
public void putModel(String graphUri, Model data)
putModel
in interface DatasetAccessor
public void deleteDefault()
deleteDefault
in interface DatasetAccessor
public void deleteModel(String graphUri)
deleteModel
in interface DatasetAccessor
public void add(Model data)
add
in interface DatasetAccessor
public void add(String graphUri, Model data)
add
in interface DatasetAccessor
Licenced under the Apache License, Version 2.0