rdf-hektos
    Preparing search index...

    Class GraphOperations

    Hierarchy

    • EventEmitter
      • GraphOperations
    Index

    Constructors

    Properties

    _bars: { [key: string]: SingleBar } = {}
    _concurrency: number

    Methods

    • Parameters

      • pred: Term
      • node: Term
      • len: number

      Returns Promise<{ nodes: Term[]; status: string[] }>

    • Parameters

      • pred: Term
      • nodes: Term[]
      • len: number

      Returns Promise<{ [key: string]: Walk }>

    • Select random subjects for a given predicate

      Parameters

      • p: Term

        The predicate

      • howMany: number

        How many subjects to select

      Returns Promise<Term[]>

      The selected subjects

    • Parameters

      • query: string | Query
      • OptionalinvalidateCache: boolean

      Returns Promise<Bindings[]>

    • Calculate the branching factor for each predicate

      Parameters

      • preds: { [key: string]: BasePredicate }

        The predicates to calculate the branching factor for

      Returns Promise<{ [key: string]: Branching }>

      The branching factor for each predicate

    • Calculate the object coverage for each predicate

      Parameters

      • seedsPat: WhereArg

        A pattern to select the seeds. This can be a VALUES clause, a quad pattern, or a list of either.

      Returns Promise<{ [key: string]: number }>

      The object coverage for each predicate

    • Calculate the seed position ratio for each predicate, i.e., the ratio of triples with each predicate where seeds are the in the subject vs object position

      Parameters

      • preds: { [key: string]: BasePredicate }

        The predicates to calculate the ratio for

      • seedsPattern: WhereArg

        A pattern to select the seeds. This can be a VALUES clause, a quad pattern, or a list of either.

      Returns Promise<{ [key: string]: SeedPos }>

      The ratio of triples with each predicate where seeds are the subject vs object

    • Calculate the subject coverage for each predicate

      Parameters

      • seedsPat: WhereArg

        A pattern to select the seeds. This can be a VALUES clause, a quad pattern, or a list of either.

      Returns Promise<{ [key: string]: number }>

      The subject coverage for each predicate

    • Parameters

      • x: Term | undefined
      • visitedNodes: Set<string>

      Returns "finished_early" | "found_blank" | "found_literal" | "found_loop" | null

    • Parameters

      • s: string
      • p: Quad_Predicate
      • o: Quad_Object

      Returns Promise<Term | undefined>

    • Parameters

      • s: Quad_Subject
      • p: Term
      • o: string

      Returns Promise<Term | undefined>