N3PatchBuilder
class N3PatchBuilder
Kotlin DSL builder for N3Patch.
Produces properly escaped N3 triple strings — callers work entirely with subject/predicate IRI strings and typed object values; no raw N3 syntax needed.
Variable names passed to where, deleteVar, and insertVar must not include the leading ? — the builder adds it automatically.
Functions
Link copied to clipboard
fun deleteLiteral(subject: String, predicate: String, value: String, datatype: String? = null, language: String? = null): N3PatchBuilder
Adds a delete triple whose object is a literal. The literal must match the stored value exactly (including datatype/language) for the server to remove it.
Link copied to clipboard
fun insertLiteral(subject: String, predicate: String, value: String, datatype: String? = null, language: String? = null): N3PatchBuilder
Adds an insert triple whose object is a literal.