RDF.IRI.scheme

You're seeing just the function scheme, go back to RDF.IRI module for more information.

Specs

scheme(coercible()) :: String.t() | nil

Returns the scheme of the given IRI

If the given string is not a valid absolute IRI, nil is returned.

Examples

iex> RDF.IRI.scheme("http://www.example.com/foo")
"http"
iex> RDF.IRI.scheme("not an iri")
nil