Companion

object Companion

Functions

Link copied to clipboard
fun build(block: N3PatchBuilder.() -> Unit): N3Patch

Builds a patch using the N3PatchBuilder DSL, which escapes triple terms for you so no raw N3 syntax is required.

Link copied to clipboard
fun delete(triples: String): N3Patch

Builds a delete-only patch from a raw N3 triple block.

Link copied to clipboard
fun fromDiff(original: RDFResource, updated: RDFResource): N3Patch

Derives a patch from the difference between two resource states.

Link copied to clipboard
fun insert(triples: String): N3Patch

Builds an insert-only patch from a raw N3 triple block.

Link copied to clipboard
fun replace(inserts: String, where: String): N3Patch

Builds a conditional patch that inserts inserts using variables bound by the where pattern. Note this does not by itself delete the old value — pair it with a matching delete (or use the build DSL) for a full replace.