Package com.apicatalog.rdf
Interface RdfDataset
-
public interface RdfDataset
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RdfDatasetadd(RdfNQuad nquad)AddN-Quadto the dataset.RdfDatasetadd(RdfTriple triple)Add a triple to default graph.RdfGraphgetDefaultGraph()Optional<RdfGraph>getGraph(RdfResource graphName)Set<RdfResource>getGraphNames()intsize()Get the size of the dataset.List<RdfNQuad>toList()
-
-
-
Method Detail
-
getDefaultGraph
RdfGraph getDefaultGraph()
-
add
RdfDataset add(RdfNQuad nquad)
AddN-Quadto the dataset.- Parameters:
nquad- to add- Returns:
- the same
RdfDatasetinstance
-
add
RdfDataset add(RdfTriple triple)
Add a triple to default graph.- Parameters:
triple- to add- Returns:
- the same
RdfDatasetinstance
-
getGraphNames
Set<RdfResource> getGraphNames()
-
getGraph
Optional<RdfGraph> getGraph(RdfResource graphName)
-
size
int size()
Get the size of the dataset.- Returns:
- total number of
N-Quadsin the dataset
-
-