Package no.hasmac.rdf
Interface RdfDataset
- All Superinterfaces:
RdfConsumer<RdfTriple,
RdfNQuad>
- All Known Implementing Classes:
RdfDatasetImpl
-
Method Summary
Modifier and TypeMethodDescriptionAddN-Quad
to the dataset.Add a triple to default graph.getGraph
(RdfResource graphName) default void
handleQuad
(RdfNQuad nquad) default void
handleTriple
(RdfTriple rdfTriple) int
size()
Get the size of the dataset.toList()
-
Method Details
-
getDefaultGraph
RdfGraph getDefaultGraph() -
add
AddN-Quad
to the dataset.- Parameters:
nquad
- to add- Returns:
- the same
RdfDataset
instance
-
add
Add a triple to default graph.- Parameters:
triple
- to add- Returns:
- the same
RdfDataset
instance
-
handleTriple
- Specified by:
handleTriple
in interfaceRdfConsumer<RdfTriple,
RdfNQuad>
-
handleQuad
- Specified by:
handleQuad
in interfaceRdfConsumer<RdfTriple,
RdfNQuad>
-
toList
-
getGraphNames
Set<RdfResource> getGraphNames() -
getGraph
-
size
int size()Get the size of the dataset.- Returns:
- total number of
N-Quads
in the dataset
-