com.hp.hpl.jena.rdf.model
Interface ModelGetter

All Known Subinterfaces:
ModelMaker, ModelSource

public interface ModelGetter

A ModelGetter object can retrieve a Model given a URL for it. If it doesn't have such a Model, it returns null.

ModelGetters are very weakly constrained. They need not contain any models at all; they may forget models they have just delivered; they may deliver different models given the same URL. They are constrained to deliver an "appropriate" model for the URL, however - whatever they return should be strongly related to the RDF which might, at some time or another, be retrieved from that URL.

Author:
kers

Method Summary
 Model getModel(java.lang.String URL)
          Answer a Model whose content is that associated with the URL, if possible, and otherwise answer null.
 Model getModel(java.lang.String URL, ModelReader loadIfAbsent)
          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.
 

Method Detail

getModel

Model getModel(java.lang.String URL)
Answer a Model whose content is that associated with the URL, if possible, and otherwise answer null.


getModel

Model getModel(java.lang.String URL,
               ModelReader loadIfAbsent)
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.



Copyright � 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP