RDF.Description.new
You're seeing just the function
new
, go back to RDF.Description module for more information.
Specs
new(RDF.Star.Statement.coercible_subject() | t(), keyword()) :: t()
Creates an RDF.Description
about the given subject.
The created RDF.Description
can be initialized with any form of data which
add/2
understands with the :init
option. Additionally a function returning
the initialization data in any of these forms can be as the :init
value.
Examples
RDF.Description.new(EX.S)
RDF.Description.new(EX.S, init: {EX.S, EX.p, EX.O})
RDF.Description.new(EX.S, init: {EX.p, [EX.O1, EX.O2]})
RDF.Description.new(EX.S, init: [{EX.p1, EX.O1}, {EX.p2, EX.O2}])
RDF.Description.new(EX.S, init: RDF.Description.new(EX.S, init: {EX.P, EX.O}))
RDF.Description.new(EX.S, init: fn -> {EX.p, EX.O} end)