RDF.ex v0.6.1 RDF.Namespace behaviour View Source
A behaviour for resolvers of module atoms to RDF.IRI
s.
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
Link to this section Functions
Link to this function
resolve_term(expr) View Source
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
Resolves a term to a RDF.IRI
.
Link to this callback
__terms__()
View Source
__terms__()
View Source
__terms__() :: [atom()]
__terms__() :: [atom()]
All terms of a RDF.Namespace
.