addQuad

fun addQuad(subject: String, predicate: String, obj: String, maxNumber: Int = 1)

Adds a triple whose object is an IRI (or blank node).

If the number of existing triples with the same subject and predicate has reached maxNumber, those triples are first removed so the new value replaces them; below the limit, the triple is simply appended. With the default maxNumber of 1 this gives single-valued "set" semantics.

Parameters

maxNumber

the maximum number of values to keep for this subject/predicate.