@faubulous/mentor-rdf
    Preparing search index...

    Interface Reasoner

    An interface for reasoners that operate on existing graphs in the RDF store and materialise the inferred triples in an inference graph.

    interface Reasoner {
        expand(
            store: DatasetCore,
            sourceGraph: string | Quad_Graph,
            targetGraph?: string | Quad_Graph,
        ): DatasetCore;
        targetUriGenerator: GraphUriGenerator;
    }
    Index

    Properties

    Methods

    Properties

    targetUriGenerator: GraphUriGenerator

    A handler to generate inference graph URIs from any given graph URI if no explicit target graph is provided.

    Methods

    • Apply inference on the source graph and store the inferred triples in the target graph.

      Parameters

      • store: DatasetCore

        The store to be inferenced.

      • sourceGraph: string | Quad_Graph

        The source graph where to find the triples to be inferenced.

      • OptionaltargetGraph: string | Quad_Graph

        The optional target graph where to store the inferred triples. If none is provided, the graph from getGraphUri will be used.

      Returns DatasetCore