RDF.ex v0.1.0 RDF.Namespace behaviour View Source

A behaviour for resolvers of module atoms to URIs.

Currently there’s only one type of such namespaces: RDF.Vocabulary.Namespace, but other types are thinkable and might be implemented in the future, eg. namespaces for JSON-LD contexts.

Link to this section Summary

Functions

Resolves a qualified term to an URI

Callbacks

Resolves a term to an URI

All terms of a RDF.Namespace

Link to this section Functions

Resolves a qualified term to an URI.

It determines a RDF.Namespace from the qualifier of the given term and delegates to remaining part of the term to __resolve_term__/1 of this determined namespace.

Link to this section Callbacks

Link to this callback __resolve_term__(atom) View Source
__resolve_term__(atom) :: URI.t

Resolves a term to an URI.

Link to this callback __terms__() View Source
__terms__() :: [atom]

All terms of a RDF.Namespace.