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

A behaviour for resolvers of module atoms to RDF.IRIs.

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 a RDF.IRI.

Callbacks

Resolves a term to a RDF.IRI.

All terms of a RDF.Namespace.

Link to this section Functions

Resolves a qualified term to a RDF.IRI.

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()) :: RDF.IRI.t()

Resolves a term to a RDF.IRI.

Link to this callback

__terms__() View Source
__terms__() :: [atom()]

All terms of a RDF.Namespace.