Class RDFSRuleInfGraph

All Implemented Interfaces:
Graph, GraphWithPerform, InfGraph, BackwardRuleInfGraphI, ForwardRuleInfGraphI, SilentAddI

public class RDFSRuleInfGraph extends FBRuleInfGraph
Customization of the generic rule inference graph for RDFS inference. In fact all the rule processing is unchanged, the only extension is the validation support.
  • Constructor Details

    • RDFSRuleInfGraph

      public RDFSRuleInfGraph(Reasoner reasoner, List<Rule> rules, Graph schema)
      Constructor.
      Parameters:
      reasoner - the reasoner which created this inf graph instance
      rules - the rules to process
      schema - the (optional) schema graph to be included
    • RDFSRuleInfGraph

      public RDFSRuleInfGraph(Reasoner reasoner, List<Rule> rules, Graph schema, Graph data)
      Constructor.
      Parameters:
      reasoner - the reasoner which created this inf graph instance
      rules - the rules to process
      schema - the (optional) schema graph to be included
      data - the data graph to be processed
  • Method Details

    • validate

      public ValidityReport validate()
      Test the consistency of the bound data. For RDFS this checks that all instances of datatype-ranged properties have correct data values.
      Specified by:
      validate in interface InfGraph
      Overrides:
      validate in class FBRuleInfGraph
      Returns:
      a ValidityReport structure