Protégé-OWL 3.3.1

edu.stanford.smi.protegex.owl.database.triplestore
Class DatabaseTripleStoreModel

java.lang.Object
  extended by edu.stanford.smi.protegex.owl.model.triplestore.impl.AbstractTripleStoreModel
      extended by edu.stanford.smi.protegex.owl.database.triplestore.DatabaseTripleStoreModel
All Implemented Interfaces:
edu.stanford.smi.protege.util.Disposable, TripleStoreModel

public class DatabaseTripleStoreModel
extends AbstractTripleStoreModel

Author:
Holger Knublauch

Field Summary
 
Fields inherited from class edu.stanford.smi.protegex.owl.model.triplestore.impl.AbstractTripleStoreModel
mnfs, ts
 
Constructor Summary
DatabaseTripleStoreModel(OWLDatabaseModel owlModel)
           
DatabaseTripleStoreModel(OWLDatabaseModel owlModel, edu.stanford.smi.protege.model.framestore.NarrowFrameStore systemNfs, edu.stanford.smi.protege.model.framestore.NarrowFrameStore userNfs)
          This is a constructor for the case when the model does not have a narrow frame store.
 
Method Summary
 TripleStore createTripleStore(String name)
          A low level method that creates and adds a new TripleStore to implement imports.
 void deleteTripleStore(TripleStore tripleStore)
          Deletes an imported TripleStore.
 TripleStore getTripleStoreByDefaultNamespace(String namespace)
          Gets the first TripleStore that uses a given default namespace.
 
Methods inherited from class edu.stanford.smi.protegex.owl.model.triplestore.impl.AbstractTripleStoreModel
dispose, endTripleStoreChanges, getActiveTripleStore, getHomeTripleStore, getPropertyValues, getSlotValues, getTopTripleStore, getTripleStore, getTripleStore, getTripleStores, isActiveTriple, isEditableTriple, isEditableTripleStore, listTriplesWithSubject, listUserTripleStores, replaceJavaObject, setActiveTripleStore, setHomeTripleStore, updateEditableResourceState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTripleStoreModel

public DatabaseTripleStoreModel(OWLDatabaseModel owlModel)

DatabaseTripleStoreModel

public DatabaseTripleStoreModel(OWLDatabaseModel owlModel,
                                edu.stanford.smi.protege.model.framestore.NarrowFrameStore systemNfs,
                                edu.stanford.smi.protege.model.framestore.NarrowFrameStore userNfs)
This is a constructor for the case when the model does not have a narrow frame store.

For example, server side OWL models do not have narrow frame stores.

Parameters:
owlModel -
systemNfs - a substitute system narrow frame store
userNfs - a substitute user narrow frame store.
Method Detail

createTripleStore

public TripleStore createTripleStore(String name)
Description copied from interface: TripleStoreModel
A low level method that creates and adds a new TripleStore to implement imports.

Parameters:
name - the name of the new TripleStore (must be unique)
Returns:
the new TripleStore

deleteTripleStore

public void deleteTripleStore(TripleStore tripleStore)
Description copied from interface: TripleStoreModel
Deletes an imported TripleStore.

Parameters:
tripleStore - the TripleStore to delete (must be neither system nor top TripleStore)

getTripleStoreByDefaultNamespace

public TripleStore getTripleStoreByDefaultNamespace(String namespace)
Description copied from interface: TripleStoreModel
Gets the first TripleStore that uses a given default namespace.

Parameters:
namespace - the namespace
Returns:
the TripleStore or null

Protégé-OWL 3.3.1

Submit a bug report or feature request
Copyright (c) 1998-2007 Stanford University.