RDF.Dataset.describes-question-mark
You're seeing just the function
describes-question-mark
, go back to RDF.Dataset module for more information.
Specs
describes?(t(), RDF.Statement.t(), RDF.Statement.coercible_graph_name() | nil) :: boolean()
Checks if a graph of a RDF.Dataset
contains statements about the given resource.
Examples
iex> RDF.Dataset.new([{EX.S1, EX.p1, EX.O1}]) |> RDF.Dataset.describes?(EX.S1)
true
iex> RDF.Dataset.new([{EX.S1, EX.p1, EX.O1}]) |> RDF.Dataset.describes?(EX.S2)
false