Creating a repository object of this type is very easy. For example, the following code creates and initializes a main-memory store with RDF Schema semantics:
Repository repository = new RepositoryImpl(new ForwardChainingRDFSInferencer(new MemoryStore())); repository.initialize();Or, alternatively:
Sail sailStack = new MemoryStore(); sailStack = new ForwardChainingRDFSInferencer(sailStack); Repository repository = new Repository(sailStack); repository.initialize();@author Arjohn Kampman
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|