Class ReifiedStatementImpl

All Implemented Interfaces:
FrontsNode, RDFNode, ReifiedStatement, Resource

public class ReifiedStatementImpl extends ResourceImpl implements ReifiedStatement
A ReifiedStatementImpl encodes a Statement and behaves as a Resource.
  • Field Details

    • reifiedStatementFactory

      public static final Implementation reifiedStatementFactory
  • Method Details

    • getStatement

      public Statement getStatement()
      answer [a .equals() version of] the Statement that this ReifiedStatement represents.
      Specified by:
      getStatement in interface ReifiedStatement
    • isValid

      public boolean isValid()
      Description copied from class: Polymorphic
      answer true iff this enhanced node is still underpinned in the graph by triples appropriate to its type.
      Overrides:
      isValid in class EnhNode
    • create

      public static ReifiedStatement create(Statement s)
      factory method. answer a ReifiedStatement which encodes the Statement _s_. The mapping is remembered.
    • create

      public static ReifiedStatementImpl create(ModelCom m, String uri, Statement s)
      factory method. answer a ReifiedStatement which encodes the Statement _s_ with uri _uri_. The mapping is remembered.
    • create

      public static ReifiedStatementImpl create(EnhGraph eg, Node n, Statement s)
    • toString

      public String toString()
      Description copied from interface: Resource
      Return a string representation of the resource. Returns the URI of the resource unless the resource is anonymous in which case it returns the id of the resource enclosed in square brackets.
      Specified by:
      toString in interface RDFNode
      Specified by:
      toString in interface Resource
      Overrides:
      toString in class ResourceImpl
      Returns:
      Return a string representation of the resource. if it is anonymous.
    • createExistingReifiedStatement

      public static ReifiedStatement createExistingReifiedStatement(ModelCom model, Node n)