org.topbraid.spin.model
Interface Triple

All Superinterfaces:
Printable
All Known Subinterfaces:
TriplePattern, TripleTemplate

public interface Triple
extends Printable

The base interface of TriplePattern and TripleTemplate.

Author:
Holger Knublauch

Method Summary
 RDFNode getObject()
          Gets the object of this Triple, downcasting it into Variable if appropriate.
 Resource getObjectResource()
          Gets the object as a Resource.
 Resource getPredicate()
          Gets the predicate of this Triple, downcasting it into Variable if appropriate.
 Resource getSubject()
          Gets the subject of this Triple, downcasting it into Variable if appropriate.
 
Methods inherited from interface org.topbraid.spin.model.print.Printable
print
 

Method Detail

getSubject

Resource getSubject()
Gets the subject of this Triple, downcasting it into Variable if appropriate.

Returns:
the subject

getPredicate

Resource getPredicate()
Gets the predicate of this Triple, downcasting it into Variable if appropriate.

Returns:
the predicate

getObject

RDFNode getObject()
Gets the object of this Triple, downcasting it into Variable if appropriate.

Returns:
the object

getObjectResource

Resource getObjectResource()
Gets the object as a Resource.

Returns:
the object or null if it's not a resource (i.e., a literal)