RDF.Star.Statement.annotation-question-mark
You're seeing just the function
annotation-question-mark
, go back to RDF.Star.Statement module for more information.
Specs
annotation?(RDF.Star.Triple.t() | RDF.Star.Quad.t() | any()) :: boolean()
Checks if the given tuple is a RDF-star statement annotating a triple on subject or object position.
Note: This function won't check if the given tuple or the annotated triple is valid.
Use valid?/1
for this purpose.
Examples
iex> RDF.Star.Statement.annotation?({EX.S, EX.P, EX.O})
false
iex> RDF.Star.Statement.annotation?({EX.AS, EX.AP, {EX.S, EX.P, EX.O}})
true
iex> RDF.Star.Statement.annotation?({{EX.S, EX.P, EX.O}, EX.AP, EX.AO})
true