Interface RdfDataset
- All Superinterfaces:
RdfConsumer<RdfTriple, RdfNQuad>
- All Known Implementing Classes:
RdfDatasetImpl
-
Method Summary
Modifier and TypeMethodDescriptionAddN-Quadto the dataset.Add a triple to default graph.getGraph(RdfResource graphName) default voidhandleQuad(RdfNQuad nquad) default voidhandleTriple(RdfTriple rdfTriple) intsize()Get the size of the dataset.toList()
-
Method Details
-
getDefaultGraph
RdfGraph getDefaultGraph() -
add
AddN-Quadto the dataset.- Parameters:
nquad- to add- Returns:
- the same
RdfDatasetinstance
-
add
Add a triple to default graph.- Parameters:
triple- to add- Returns:
- the same
RdfDatasetinstance
-
handleTriple
- Specified by:
handleTriplein interfaceRdfConsumer<RdfTriple, RdfNQuad>
-
handleQuad
- Specified by:
handleQuadin interfaceRdfConsumer<RdfTriple, RdfNQuad>
-
toList
-
getGraphNames
Set<RdfResource> getGraphNames() -
getGraph
-
size
int size()Get the size of the dataset.- Returns:
- total number of
N-Quadsin the dataset
-