solid-ui
    Preparing search index...

    Class Variable

    Variables are placeholders used in patterns to be matched. In cwm they are symbols which are the formula's list of quantified variables. In sparql they are not visibly URIs. Here we compromise, by having a common special base URI for variables. Their names are uris, but the ? notation has an implicit base uri of 'varid:'

    Hierarchy (View Summary)

    Implements

    • Variable
    Index

    Constructors

    • Initializes this variable

      Parameters

      • Optionalname: string

        The variable's name

      Returns Variable

    Properties

    base: string

    The base string for a variable's name

    classOrder: number

    The class order for this node

    isVar: number
    termType: "Variable"

    The type of node

    uri: string

    The unique identifier of this variable

    value: string

    The node's value

    fromValue: <T extends FromValueReturns>(value: ValueType) => T
    toJS: (
        term: any,
    ) =>
        | string
        | boolean
        | object
        | Number
        | Date
        | (string | boolean | object | Number | Date)[]

    Methods

    • Compares this node with another

      Parameters

      • other: Node

        The other node

      Returns number

      to check if two nodes are equal

    • Compares whether the two nodes are equal

      Parameters

      • other: any

        The other node

      Returns boolean

    • Creates a hash for this node

      Returns string

      use {rdfFactory.id} instead if possible

    • Compares whether this node is the same as the other one

      Parameters

      • other: Node

        Another node

      Returns boolean

    • Creates the substituted node for this one, according to the specified bindings

      Parameters

      • bindings: any

        Bindings of identifiers to nodes

      Returns any

    • Creates a canonical string representation of this node

      Returns string

    • Creates a n-quads string representation of this node

      Returns string

    • Creates a n-triples string representation of this node

      Returns string

    • Creates a string representation of this node

      Returns string

    • Returns a string representation of a function.

      Parameters

      • variable: any

      Returns string