rdf-ex/lib/rdf/blank_node.ex
Marcel Otto 31331b7388 core: N-Triples reader
and just enough more supported Literals to pass the W3C RDF N-Triples test suite
2016-10-30 19:36:46 +01:00

13 lines
238 B
Elixir

defmodule RDF.BlankNode do
@moduledoc """
"""
defstruct [:id]
@type t :: module
def new, do: %RDF.BlankNode{id: make_ref}
def new(id) when is_atom(id) or is_binary(id) or is_integer(id),
do: %RDF.BlankNode{id: id}
end