RDF.Graph.add

You're seeing just the function add, go back to RDF.Graph module for more information.
Link to this function

add(graph, input, opts \\ [])

View Source

Specs

add(t(), input(), keyword()) :: t()

Adds triples to a RDF.Graph.

The input can be provided

  • as a single statement tuple
  • a nested subject-predicate-object map
  • a RDF.Description
  • a RDF.Graph
  • or a list with any combination of the former

When the statements to be added are given as another RDF.Graph, the graph name must not match graph name of the graph to which the statements are added. As opposed to that, RDF.Data.merge/2 will produce a RDF.Dataset containing both graphs.

Also when the statements to be added are given as another RDF.Graph, the prefixes of this graph will be added. In case of conflicting prefix mappings the original prefix from graph will be kept.

RDF-star annotations to be added to all of the given statements can be specified with the :add_annotations, :put_annotations or :put_annotation_properties keyword options. They have different addition semantics similar to the add_annotations/3, put_annotations/3 and put_annotation_properties/3 counterparts.