Metreeca Wire
    Preparing search index...
    • Generates the SPARQL representation of a Term.

      Dispatches on the term's kind: blank for a blank node's label, reference for a named resource's IRI, tagged for language-tagged literals and typed for datatype-typed ones, collapsing a literal carrying the redundant xsd:string datatype to the bare quoted form.

      Parameters

      • term: Term

        The RDF term to render

      Returns string

      The generated SPARQL term

      RangeError if term carries a malformed IRI, lexical form, or language tag

      Renders SPARQL query text and is distinct from the same-named term encoder of @metreeca/trio, which mints RDF Term values. The companion serialisers blank, tagged and typed shadow that package's same-named value constructors the same way, as does reference for its named one.