RDF.PrefixMap.prefixed_name

You're seeing just the function prefixed_name, go back to RDF.PrefixMap module for more information.
Link to this function

prefixed_name(prefix_map, iri)

View Source

Specs

prefixed_name(t(), RDF.IRI.t() | String.t()) :: String.t() | nil

Converts an IRI into a prefixed name.

Returns nil when no prefix for the namespace of iri is defined in prefix_map.

Examples

iex> RDF.PrefixMap.new(ex: "http://example.com/")
...> |> RDF.PrefixMap.prefixed_name(~I<http://example.com/Foo>)
"ex:Foo"
iex> RDF.PrefixMap.new(ex: "http://example.com/")
...> |> RDF.PrefixMap.prefixed_name("http://example.com/Foo")
"ex:Foo"