Interface ModelGraphInterface

All Known Subinterfaces:
InfModel, Model, OntModel
All Known Implementing Classes:
InfModelImpl, ModelCom, MonitorModel, OntModelImpl

public interface ModelGraphInterface
ModelGraphInterface - this interface mediates between the API Model level and the SPI Graph level. It may change if the SPI changes, is more fluid than Model and ModelCon, so don't use if it you don't *need* to.
  • Method Summary

    Modifier and Type
    Method
    Description
    Answer an RDF node wrapping n suitably; URI nodes become Resources with the same URI, blank nodes become Resources with URI null but the same AnonId, and literal nodes become Literals with n as their value carrier.
    Answer a Statement in this Model who's SPO is that of the triple t.
    Answer the Graph which this Model is presenting.
     
  • Method Details

    • asStatement

      Statement asStatement(Triple t)
      Answer a Statement in this Model who's SPO is that of the triple t.
    • getGraph

      Graph getGraph()
      Answer the Graph which this Model is presenting.
    • asRDFNode

      RDFNode asRDFNode(Node n)
      Answer an RDF node wrapping n suitably; URI nodes become Resources with the same URI, blank nodes become Resources with URI null but the same AnonId, and literal nodes become Literals with n as their value carrier.
    • wrapAsResource

      Resource wrapAsResource(Node n)