RDF.IRI.in_namespace-question-mark

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

in_namespace?(iri, namespace)

View Source

Specs

in_namespace?(t() | module(), String.t() | t() | module()) :: boolean()

Checks whether iri lies in namespace.

Examples

iex> RDF.IRI.in_namespace?(~I<http://example.com/foo>, ~I<http://example.com/>)
true
iex> RDF.IRI.in_namespace?(~I<http://example.com/foo/bar>, "http://example.com/")
true
iex> RDF.IRI.in_namespace?(~I<http://example.com/#foo>, EX)
true