RDF.term-question-mark

You're seeing just the function term-question-mark, go back to RDF module for more information.

Checks if the given value is a RDF term.

Examples

Supposed EX is a RDF.Vocabulary.Namespace and Foo is not.

iex> RDF.term?(RDF.iri("http://example.com/resource"))
true
iex> RDF.term?(EX.resource)
true
iex> RDF.term?(EX.Resource)
true
iex> RDF.term?(Foo.Resource)
false
iex> RDF.term?(RDF.bnode)
true
iex> RDF.term?(RDF.XSD.integer(42))
true
iex> RDF.term?(42)
false