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