Generates the SPARQL representation of a Variable or Term.
Dispatches to variable for a query variable and to term for any RDF term, serialising a node that
occupies a subject or object position whether or not it is left unbound.
Parameters
anchor: `?${string}`|Term
The query variable or RDF term to render
Returns string
The generated SPARQL node
Throws
RangeError if anchor is a term carrying a malformed IRI, lexical form, or language tag
Generates the SPARQL representation of a Variable or Term.
Dispatches to variable for a query variable and to term for any RDF term, serialising a node that occupies a subject or object position whether or not it is left unbound.