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

    Class OwlReasoner

    A simple OWL reasoner that expands the graph with inferred triples.

    Hierarchy

    • ShaclReasoner
      • OwlReasoner
    Index

    Constructors

    Properties

    errors: { message: string; quad: Quad }[] = []
    sourceGraph?: Quad_Graph
    targetGraph?: Quad_Graph
    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

    • Get the URIs of ordered list members in the store.

      Parameters

      • listUri: string

        URI of the list to get the items from.

      Returns Quad_Object[]

      An array of URIs of the items in the list.

    • Query the store for triples matching the given pattern supporting multiple graphs.

      Parameters

      • graph: Quad_Graph
      • subject: Quad_Subject | null

        A subject URI or null to match any subject.

      • predicate: Quad_Predicate | null

        A predicate URI or null to match any predicate.

      • object: Quad_Object | null

        An object URI or null to match any object.

      Returns Generator<Quad, void, any>

      Refactor and merge with the same method in the Mentor RDF Store class.