RDF.Dataset.new
You're seeing just the function
new
, go back to RDF.Dataset module for more information.
Specs
new() :: t()
Creates an empty unnamed RDF.Dataset
.
Specs
Creates an RDF.Dataset
.
If a keyword list is given an empty dataset is created. Otherwise an unnamed dataset initialized with the given data is created.
See new/2
for available arguments and the different ways to provide data.
Examples
RDF.Dataset.new(name: EX.GraphName)
RDF.Dataset.new(init: {EX.S, EX.p, EX.O})
RDF.Dataset.new({EX.S, EX.p, EX.O})
Specs
Creates an RDF.Dataset
initialized with data.
The initial RDF triples can be provided in any form accepted by add/3
.
Available options:
name
: the name of the dataset to be createdinit
: some data with which the dataset should be initialized; the data can be provided in any form accepted byadd/3
and above that also with a function returning the initialization data in any of these forms