NAME
rdf/bnode - Blank node scope utilities.
SYNOPSIS
from rdf/bnode import rdf_blank_scope;
let scope := rdf_blank_scope("row");
let a := scope.fresh();
let b := scope.fresh();
DESCRIPTION
Blank node scopes generate deterministic labels with an isolated counter. They are useful for parsers, builders, and tests that need fresh blank nodes without sharing global state.
EXPORTS
Classes
RDFBlankNodeScopefresh()Returns a new
RDFBlankusing the scope prefix and increments the counter.reset()Resets the counter to zero and returns the scope.
Functions
rdf_blank_scope(String prefix := "b")Returns a new
RDFBlankNodeScope.
COPYRIGHT AND LICENCE
rdf/bnode is copyright Toby Inkster.
It is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2.