public class SesameBackendCrdCnf extends SesameBackendWithConfidence
SesameBackendCrd
that
interprets the confidence value of received events before storing them. If
the confidence is greater than the threshold passed to this class in the
constructor or setThreshold
, the event will be stored unchanged
as in SesameBackend
.
Otherwise, only statements having the event as subject will be stored, but
not reified statements about its subject nor object.
Example:
An "event1" with "subject2" "predicate3" and "object4" with enough confidence
will result in having the statements in the store: "event1" "hasSubject"
"subject2", "event1" "hasPredicate" "predicate3", "event1" "hasObject"
"object4", "subject2" "predicate3" "object4"
But if the confidence is below the threshold, the last reified statement is
not stored.PRELOAD_FILE, serializer, tenantAware
Constructor and Description |
---|
SesameBackendCrdCnf() |
Modifier and Type | Method and Description |
---|---|
void |
connect()
Establishes the connection to the store.
|
getThreshold, setThreshold, storeEvent
close, populate, populate, queryBySPARQL, removeOldEvents, retrieveEvent, retrieveEventsBetweenTstmp, retrieveEventsBySPARQL, retrieveEventsFromTstmp, retrieveEventsToTstmp, setSerializer
public void connect()
Backend
connect
in interface Backend
connect
in class SesameBackend
Copyright © 2018 universAAL Consortium. All rights reserved.