Class MemoryModelGetter

java.lang.Object
org.apache.jena.ontology.models.MemoryModelGetter
All Implemented Interfaces:
ModelGetter

public class MemoryModelGetter extends Object implements ModelGetter
  • Constructor Details

    • MemoryModelGetter

      public MemoryModelGetter()
  • Method Details

    • getModel

      public Model getModel(String URL)
      Description copied from interface: ModelGetter
      Answer a Model whose content is that associated with the URL, if possible, and otherwise answer null.
      Specified by:
      getModel in interface ModelGetter
    • getModel

      public Model getModel(String URL, ModelReader loadIfAbsent)
      Description copied from interface: ModelGetter
      Answer a model appropriate for URL, If none is to hand, and it's possible to create one, create it and load it using loadIfAbsent. Otherwise throw CannotCreateException. This method never returns null.
      Specified by:
      getModel in interface ModelGetter