Package no.hasmac.rdf.impl
Class RdfDatasetImpl
java.lang.Object
no.hasmac.rdf.impl.RdfDatasetImpl
- All Implemented Interfaces:
RdfConsumer<RdfTriple,
,RdfNQuad> RdfDataset
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RdfGraphImpl
private final Map
<RdfResource, RdfGraphImpl> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAddN-Quad
to the dataset.Add a triple to default graph.getGraph
(RdfResource graphName) int
size()
Get the size of the dataset.toList()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface no.hasmac.rdf.RdfDataset
handleQuad, handleTriple
-
Field Details
-
graphs
-
nquads
-
defaultGraph
-
-
Constructor Details
-
RdfDatasetImpl
protected RdfDatasetImpl()
-
-
Method Details
-
getDefaultGraph
- Specified by:
getDefaultGraph
in interfaceRdfDataset
-
toList
- Specified by:
toList
in interfaceRdfDataset
-
add
Description copied from interface:RdfDataset
AddN-Quad
to the dataset.- Specified by:
add
in interfaceRdfDataset
- Parameters:
nquad
- to add- Returns:
- the same
RdfDataset
instance
-
getGraphNames
- Specified by:
getGraphNames
in interfaceRdfDataset
-
getGraph
- Specified by:
getGraph
in interfaceRdfDataset
-
size
public int size()Description copied from interface:RdfDataset
Get the size of the dataset.- Specified by:
size
in interfaceRdfDataset
- Returns:
- total number of
N-Quads
in the dataset
-
add
Description copied from interface:RdfDataset
Add a triple to default graph.- Specified by:
add
in interfaceRdfDataset
- Parameters:
triple
- to add- Returns:
- the same
RdfDataset
instance
-