RDF.ex v0.4.1 RDF View Source
The top-level module of RDF.ex.
RDF.ex consists of:
modules for the nodes of an RDF graph
- a facility for the mapping of URIs of a vocabulary to Elixir modules and
functions:
RDF.Vocabulary.Namespace
modules for the construction of statements
modules for collections of statements
- functions for working with RDF serializations:
RDF.Serialization
behaviours for the definition of RDF serialization formats
and the implementation of various RDF serialization formats
This top-level module provides shortcut functions for the construction of the basic elements and structures of RDF and some general helper functions.
For a general introduction you may refer to the README.
Link to this section Summary
Link to this section Functions
Checks if the given value is a blank node.
Examples
iex> RDF.bnode?(RDF.bnode)
true
iex> RDF.bnode?(RDF.iri("http://example.com/resource"))
false
iex> RDF.bnode?(42)
false
Checks if the given value is a RDF resource.
Examples
iex> RDF.resource?(RDF.iri("http://example.com/resource"))
true
iex> RDF.resource?(EX.resource)
true
iex> RDF.resource?(RDF.bnode)
true
iex> RDF.resource?(42)
false