sparql-view-unfold
    Preparing search index...

    Class RangeSet

    The term types a position or a variable may hold, ordered by set inclusion.

    const subjectRange = new RangeSet(['BlankNode', 'NamedNode']);
    subjectRange.meet(objectRange); // RangeSet(['BlankNode', 'NamedNode'])

    Hierarchy

    • Set<RDF.Term["termType"]>
      • RangeSet
    Index

    Constructors

    • Parameters

      • Optionalvalues:
            | readonly (
                | "NamedNode"
                | "BlankNode"
                | "Literal"
                | "Variable"
                | "DefaultGraph"
                | "Quad"
            )[]
            | null

      Returns RangeSet

    • Parameters

      • Optionaliterable:
            | Iterable<
                | "NamedNode"
                | "BlankNode"
                | "Literal"
                | "Variable"
                | "DefaultGraph"
                | "Quad",
                any,
                any,
            >
            | null

      Returns RangeSet

    Properties

    "[toStringTag]": string
    size: number

    the number of (unique) elements in Set.

    "[species]": SetConstructor

    Methods

    • Iterates over values in the set.

      Returns SetIterator<
          | "NamedNode"
          | "BlankNode"
          | "Literal"
          | "Variable"
          | "DefaultGraph"
          | "Quad",
      >

    • Appends a new element with a specified value to the end of the Set.

      Parameters

      • value: "NamedNode" | "BlankNode" | "Literal" | "Variable" | "DefaultGraph" | "Quad"

      Returns this

    • Returns void

    • Removes a specified value from the Set.

      Parameters

      • value: "NamedNode" | "BlankNode" | "Literal" | "Variable" | "DefaultGraph" | "Quad"

      Returns boolean

      Returns true if an element in the Set existed and has been removed, or false if the element does not exist.

    • Returns an iterable of [v,v] pairs for every value v in the set.

      Returns SetIterator<
          [
              | "NamedNode"
              | "BlankNode"
              | "Literal"
              | "Variable"
              | "DefaultGraph"
              | "Quad",
              | "NamedNode"
              | "BlankNode"
              | "Literal"
              | "Variable"
              | "DefaultGraph"
              | "Quad",
          ],
      >

    • Executes a provided function once per each value in the Set object, in insertion order.

      Parameters

      • callbackfn: (
            value:
                | "NamedNode"
                | "BlankNode"
                | "Literal"
                | "Variable"
                | "DefaultGraph"
                | "Quad",
            value2:
                | "NamedNode"
                | "BlankNode"
                | "Literal"
                | "Variable"
                | "DefaultGraph"
                | "Quad",
            set: Set<
                | "NamedNode"
                | "BlankNode"
                | "Literal"
                | "Variable"
                | "DefaultGraph"
                | "Quad",
            >,
        ) => void
      • OptionalthisArg: any

      Returns void

    • Parameters

      • value: "NamedNode" | "BlankNode" | "Literal" | "Variable" | "DefaultGraph" | "Quad"

      Returns boolean

      a boolean indicating whether an element with the specified value exists in the Set or not.

    • Despite its name, returns an iterable of the values in the set.

      Returns SetIterator<
          | "NamedNode"
          | "BlankNode"
          | "Literal"
          | "Variable"
          | "DefaultGraph"
          | "Quad",
      >

    • Returns an iterable of values in the set.

      Returns SetIterator<
          | "NamedNode"
          | "BlankNode"
          | "Literal"
          | "Variable"
          | "DefaultGraph"
          | "Quad",
      >