RDF.Graph.clear

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

Specs

clear(t()) :: t()

Removes all triples from graph.

This function is useful for getting an empty graph based on the settings of another graph, as this function keeps graph name, base IRI and default prefixes as they are and just removes the triples.