org.daml.rdf.jena.model
Interface DynamicModel

All Superinterfaces:
com.hp.hpl.mesa.rdf.jena.model.Model, com.hp.hpl.mesa.rdf.jena.model.ModelCon, com.hp.hpl.mesa.rdf.jena.model.RDFReaderF, com.hp.hpl.mesa.rdf.jena.model.RDFWriterF
All Known Implementing Classes:
DynamicSourceModelMem

public interface DynamicModel
extends com.hp.hpl.mesa.rdf.jena.model.Model

An RDF Model that provides a mechanism to dynamically load referenced namespaces on an as needed basis. When the properties of a Resource are accessed the model checks to see if the namespace of the resource has been loaded into the model. If not, the namespace is loaded before the accessor method returns. This model makes the assumption that the namespace of a resource is the URL of the file that defines the resource. Please be careful when using StmtIterators on a DynamicModel because a dynamic load modifes the model supporting the iterator which causes an error.


Method Summary
 boolean dynamicLoad()
          Returns true if dynamic loading is enabled.
 java.util.Set getLoadedURLs()
          List which URLs have been loaded.
 boolean isLoaded(java.lang.String url)
          Returns true if the given URL has been loaded into the model.
 boolean setDynamicLoad(boolean dynamicp)
          Enable or disable dynamic loading.
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Model
abort, add, add, add, begin, close, commit, contains, contains, contains, containsAll, containsAll, containsAny, containsAny, createLiteral, createLiteral, createProperty, createResource, createResource, createStatement, difference, equals, getProperty, getProperty, getResource, independent, intersection, isReified, listNameSpaces, listObjects, listObjectsOfProperty, listObjectsOfProperty, listReifiedStatements, listStatements, listStatements, listSubjects, listSubjectsWithProperty, listSubjectsWithProperty, query, read, read, read, read, remove, size, supportsSetOperations, supportsTransactions, union, write, write, write
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.ModelCon
add, add, add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, createAlt, createAlt, createBag, createBag, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createProperty, createResource, createResource, createResource, createResource, createSeq, createSeq, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, getAlt, getAlt, getBag, getBag, getProperty, getResource, getSeq, getSeq, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, remove, remove
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.RDFReaderF
getReader, getReader, setReaderClassName
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.RDFWriterF
getWriter, getWriter, setWriterClassName
 

Method Detail

setDynamicLoad

public boolean setDynamicLoad(boolean dynamicp)
Enable or disable dynamic loading. The dynamicStore must have a model in order to enable dynamic loading.


dynamicLoad

public boolean dynamicLoad()
Returns true if dynamic loading is enabled.


getLoadedURLs

public java.util.Set getLoadedURLs()
List which URLs have been loaded.


isLoaded

public boolean isLoaded(java.lang.String url)
Returns true if the given URL has been loaded into the model.