|
Protégé-OWL 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TripleStoreModel
The TripleStoreModel is an access layer on top of the normal OWLModel.
Method Summary | |
---|---|
TripleStore |
createActiveImportedTripleStore(edu.stanford.smi.protege.model.framestore.NarrowFrameStore frameStore)
A low level method that creates and adds a new TripleStore to implement imports. |
void |
deleteTripleStore(TripleStore tripleStore)
Deletes an imported TripleStore. |
void |
dispose()
Cleans up all the triple stores managed by this. |
TripleStore |
getActiveTripleStore()
Gets the currently "active" TripleStore, which all future set operations will be operating on. |
TripleStore |
getHomeTripleStore(edu.stanford.smi.protege.model.Instance subject,
edu.stanford.smi.protege.model.Slot predicate,
Object object)
The home triple store of the triple defined by the method arguments. |
TripleStore |
getHomeTripleStore(RDFResource resource)
Gets the "home" triple store of a given resource. |
Collection |
getPropertyValues(RDFResource resource,
RDFProperty property)
A low-level access method to access property values while the usual API methods are in an invalid state. |
Collection |
getSlotValues(edu.stanford.smi.protege.model.Instance instance,
edu.stanford.smi.protege.model.Slot slot)
Similar to getPropertyValues but for native Protege slots and instances. |
TripleStore |
getSystemTripleStore()
Gets the System Triple Store. |
TripleStore |
getTopTripleStore()
Gets the "top" TripleStore, which is the first user-editable TripleStore, from which all imports start. |
TripleStore |
getTripleStore(String name)
Gets the TripleStore with a given name. |
TripleStore |
getTripleStoreByDefaultNamespace(String namespace)
Gets the first TripleStore that uses a given default namespace. |
List<TripleStore> |
getTripleStores()
Gets the TripleStores which provide an RDF triple-based view onto this OWLModel. |
boolean |
isActiveTriple(RDFResource subject,
RDFProperty predicate,
Object object)
Checks if a given triple is stored in the currently active TripleStore. |
boolean |
isEditableTriple(RDFResource subject,
RDFProperty predicate,
Object object)
Checks if a given triple is stored in an editable TripleStore. |
boolean |
isEditableTripleStore(TripleStore ts)
|
Iterator<RDFResource> |
listSubjects(RDFProperty property)
Returns an iterator of all subjects in any triplestore that have a value for property. |
Iterator<Triple> |
listTriplesWithSubject(RDFResource subject)
Combines the result of the corresponding method of each TripleStore. |
Iterator<TripleStore> |
listUserTripleStores()
Provides an Iterator on all user TripleStores, i.e. |
void |
replaceJavaObject(RDFResource subject)
|
void |
setActiveTripleStore(TripleStore tripleStore)
Specifies which TripleStore shall be the active one for future write operations. |
void |
setHomeTripleStore(RDFResource resource,
TripleStore tripleStore)
Moves a given RDFResource into another "home" TripleStore. |
void |
setTopTripleStore(TripleStore tripleStore)
Sets the top level triple store to the currently active triple store. |
void |
setViewActiveOnly(boolean viewActiveOnly)
|
void |
updateEditableResourceState()
Changes the isIncluded() value of all resources to reflect the
currently active TripleStore. |
Method Detail |
---|
TripleStore createActiveImportedTripleStore(edu.stanford.smi.protege.model.framestore.NarrowFrameStore frameStore)
frameStore
- the FrameStore to be used with the TripleStore
void deleteTripleStore(TripleStore tripleStore)
tripleStore
- the TripleStore to delete (must be neither system nor top TripleStore)TripleStore getActiveTripleStore()
getTripleStores()
,
setActiveTripleStore(edu.stanford.smi.protegex.owl.model.triplestore.TripleStore)
TripleStore getHomeTripleStore(RDFResource resource)
resource
- the RDFResource to find the home TripleStore of
TripleStore getHomeTripleStore(edu.stanford.smi.protege.model.Instance subject, edu.stanford.smi.protege.model.Slot predicate, Object object)
subject
- - the subject of the triplepredicate
- - the predicate of the tripleobject
- - the object of the triple
(subject, predicate, object)
is definedCollection getPropertyValues(RDFResource resource, RDFProperty property)
resource
- the resource to get the property values ofproperty
- the property to get the values of
Collection getSlotValues(edu.stanford.smi.protege.model.Instance instance, edu.stanford.smi.protege.model.Slot slot)
instance
- the instance to get the values ofslot
- the slot to get the values of
TripleStore getTripleStore(String name)
name
- the name / import URI of the TripleStore
TripleStore getTripleStoreByDefaultNamespace(String namespace)
namespace
- the namespace
TripleStore getSystemTripleStore()
List<TripleStore> getTripleStores()
TripleStore getTopTripleStore()
boolean isActiveTriple(RDFResource subject, RDFProperty predicate, Object object)
getActiveTripleStore().contains(...)
.
subject
- the subject of the triplepredicate
- the predicate of the tripleobject
- the object of the triple
boolean isEditableTriple(RDFResource subject, RDFProperty predicate, Object object)
subject
- the subject of the triplepredicate
- the predicate of the tripleobject
- the object of the triple
boolean isEditableTripleStore(TripleStore ts)
Iterator<Triple> listTriplesWithSubject(RDFResource subject)
subject
- the subject to get all triples of
Iterator<RDFResource> listSubjects(RDFProperty property)
Iterator<TripleStore> listUserTripleStores()
getTripleStores()
except for the first (system) TripleStore.
void replaceJavaObject(RDFResource subject)
void setActiveTripleStore(TripleStore tripleStore)
tripleStore
- one of the results of a recent call to getTripleStores()
.void setHomeTripleStore(RDFResource resource, TripleStore tripleStore)
resource
- the RDFResource to movetripleStore
- the new home TripleStoevoid setTopTripleStore(TripleStore tripleStore)
void setViewActiveOnly(boolean viewActiveOnly)
void updateEditableResourceState()
isIncluded()
value of all resources to reflect the
currently active TripleStore. This should be called if the editable flag
is relevant (e.g. in a user interface) after changes of the active TripleStore.
void dispose()
dispose
in interface edu.stanford.smi.protege.util.Disposable
|
Protégé-OWL 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |