Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Util

Utility functions for $rdf

Index

References

log

Re-exports log

uri

Re-exports uri

Variables

string

string: { template: (base: any, subs: any) => string } = ...

Type declaration

  • template: (base: any, subs: any) => string
      • (base: any, subs: any): string
      • C++, python style %s -> subs

        Parameters

        • base: any
        • subs: any

        Returns string

Functions

DOMParserFactory

  • DOMParserFactory(): any
  • Returns a DOM parser based on current runtime environment.

    Returns any

RDFArrayRemove

  • RDFArrayRemove(a: any, x: any): void
  • Removes all statements equal to x from a

    Parameters

    • a: any
    • x: any

    Returns void

callbackify

  • callbackify(obj: any, callbacks: string[]): void
  • Adds callback functionality to an object. Callback functions are indexed by a 'hook' string. They return true if they want to be called again.

    method

    callbackify

    Parameters

    • obj: any
    • callbacks: string[]

    Returns void

domToString

  • domToString(node: any, options: any): string

dtstamp

  • dtstamp(): string

dumpNode

  • dumpNode(node: any, options: any, selfClosing: any, skipAttributes: any): string
  • Parameters

    • node: any
    • options: any
    • selfClosing: any
    • skipAttributes: any

    Returns string

heavyCompare

  • heavyCompare(x: any, y: any, g: any, uriMap: any): any
  • Compares statements (heavy comparison for repeatable canonical ordering)

    Parameters

    • x: any
    • y: any
    • g: any
    • uriMap: any

    Returns any

heavyCompareSPO

  • heavyCompareSPO(x: any, y: any, g: any, uriMap: any): any

linkRelationProperty

  • linkRelationProperty(relation: any): NamedNode

mediaTypeClass

output

  • output(o: string): void
  • Defines a simple debugging function

    method

    output

    Parameters

    • o: string

    Returns void

parseXML

  • parseXML(str: any, options: any): any
  • Returns a DOM from parsex XML.

    Parameters

    • str: any
    • options: any

    Returns any

stackString

  • stackString(e: any): string

string_startswith

  • string_startswith(str: any, pref: any): boolean

Generated using TypeDoc