RDF.PrefixMap.prefixed_name
You're seeing just the function
prefixed_name
, go back to RDF.PrefixMap module for more information.
Specs
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"