org.topbraid.spin.inference
Class SPINExplanations

java.lang.Object
  extended by org.topbraid.spin.inference.SPINExplanations

public class SPINExplanations
extends Object

A service that can be used to provide "explanations" of inferred triples. This is populated by the TopSPIN engine and will keep a Map from Triples to the strings of the query.

Author:
Holger Knublauch

Constructor Summary
SPINExplanations()
           
 
Method Summary
 com.hp.hpl.jena.graph.Node getClass(com.hp.hpl.jena.graph.Triple triple)
          Gets the class node that holds the rule that inferred a given inferred triple.
 String getText(com.hp.hpl.jena.graph.Triple triple)
          Gets the explanation text for a given inferred triple.
 void put(com.hp.hpl.jena.graph.Triple triple, String text, com.hp.hpl.jena.graph.Node cls)
          Stores a Triple - query assignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPINExplanations

public SPINExplanations()
Method Detail

put

public void put(com.hp.hpl.jena.graph.Triple triple,
                String text,
                com.hp.hpl.jena.graph.Node cls)
Stores a Triple - query assignment.

Parameters:
triple - the inferred Triple
text - the query text to associate with the triple
cls - the class that was holding the rule

getText

public String getText(com.hp.hpl.jena.graph.Triple triple)
Gets the explanation text for a given inferred triple.

Parameters:
triple - the Triple to explain
Returns:
the explanation or null if none found for triple

getClass

public com.hp.hpl.jena.graph.Node getClass(com.hp.hpl.jena.graph.Triple triple)
Gets the class node that holds the rule that inferred a given inferred triple.

Parameters:
triple - the Triple to explain
Returns:
the class or null if none found for triple


Copyright © 2011 TopQuadrant, Inc.. All Rights Reserved.