RDF.Dataset.who_describes
You're seeing just the function
who_describes
, go back to RDF.Dataset module for more information.
Specs
who_describes(t(), RDF.Statement.coercible_subject()) :: [RDF.Graph.t()]
Returns the names of all graphs of a RDF.Dataset
containing statements about the given subject.
Examples
iex> dataset = RDF.Dataset.new([
...> {EX.S1, EX.p, EX.O},
...> {EX.S2, EX.p, EX.O},
...> {EX.S1, EX.p, EX.O, EX.Graph1},
...> {EX.S2, EX.p, EX.O, EX.Graph2}])
...> RDF.Dataset.who_describes(dataset, EX.S1)
[nil, RDF.iri(EX.Graph1)]