Interface OntologyOptimizableGraph


public interface OntologyOptimizableGraph
An abstraction layer that helps the OntologyOptimizations determine whether it needs to invalidate caches or whether the graph can benefit from caching at all.
Author:
Holger Knublauch
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets a unique identifier for the graph that is used for caching.
    boolean
    Checks if this graph is an Ontology graph, i.e.
    boolean
    Checks if OntologyOptimizations caches can be used for this graph.
  • Method Details

    • getOntologyGraphKey

      String getOntologyGraphKey()
      Gets a unique identifier for the graph that is used for caching. In TopBraid EVN this is the graph ID (of the base graph). This is only ever called after isOntologyOptimizable has been true.
      Returns:
      the unique key
    • isOntologyGraph

      boolean isOntologyGraph()
      Checks if this graph is an Ontology graph, i.e. it may define classes, properties and shapes that may invalidate caches.
      Returns:
      true if this is an Ontology graph
    • isUsingOntologyOptimizations

      boolean isUsingOntologyOptimizations()
      Checks if OntologyOptimizations caches can be used for this graph. In TopBraid this is the case for TeamBufferingGraphs that are either master graphs or a working copy that is not an Ontology project.
      Returns:
      true if caching should be used