org.topbraid.spin.inference
Class SPINExplanations

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

public class SPINExplanations
extends java.lang.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
 java.lang.String get(Triple triple)
          Gets the explanation for a given inferred triple.
 void put(Triple triple, java.lang.String text)
          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(Triple triple,
                java.lang.String text)
Stores a Triple - query assignment.

Parameters:
triple - the inferred Triple
text - the query text to associate with the triple

get

public java.lang.String get(Triple triple)
Gets the explanation for a given inferred triple.

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