|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openrdf.sail.helpers.SailWrapper de.fuberlin.wiwiss.marbles.SameAsInferencer
public class SameAsInferencer
Mirrors statements among URI aliases that are linked by owl:sameAs
triples.
In automatic mode (setAutoInference(true)
; default), new statements are processed as they are added:
New statements with owl:sameAs predicates cause statements pertaining to
the two resources (i.e. subject and object) to be applied to one another.
New triples with predicates other than owl:sameAs initiate a lookup for URI Aliases, to
whom the statement will then be applied.
In manual mode (setAutoInference(false)
), the method addInferredForResource
may be used to selectively initiate inferencing for a given resource.
Note: Because the inferencer does not implement handling for the removal of triples,
inferred statements are not removed.
Constructor Summary | |
---|---|
SameAsInferencer(org.openrdf.sail.Sail baseSail)
Constructor |
Method Summary | |
---|---|
void |
addInferredForResource(org.openrdf.model.Resource base)
Manually initiates inferencing for a given resource |
boolean |
doInferencing(org.openrdf.sail.inferencer.InferencerConnection con)
|
org.openrdf.sail.SailConnection |
getConnection()
|
boolean |
hasNewStatements()
|
void |
processRegularStatement(org.openrdf.sail.inferencer.InferencerConnection con,
org.openrdf.model.Statement st)
Processes statements other than owl:sameAs |
void |
processSameAs(org.openrdf.sail.inferencer.InferencerConnection con,
org.openrdf.model.Resource base,
org.openrdf.model.Resource alias)
Processes an owl:sameAs statement |
void |
setAutoInference(boolean autoInference)
|
void |
setContext(org.openrdf.model.Resource... context)
Limits the generation of inferred statements to specific contexts |
Methods inherited from class org.openrdf.sail.helpers.SailWrapper |
---|
addSailChangedListener, getBaseSail, getDataDir, getValueFactory, initialize, isWritable, removeSailChangedListener, setBaseSail, setDataDir, shutDown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SameAsInferencer(org.openrdf.sail.Sail baseSail)
baseSail
- Method Detail |
---|
public void setContext(org.openrdf.model.Resource... context)
context
- List of contexts. An empty list may be passed to permit all contexts.public org.openrdf.sail.SailConnection getConnection() throws org.openrdf.sail.SailException
getConnection
in interface org.openrdf.sail.Sail
getConnection
in class org.openrdf.sail.helpers.SailWrapper
org.openrdf.sail.SailException
public boolean hasNewStatements()
public boolean doInferencing(org.openrdf.sail.inferencer.InferencerConnection con) throws org.openrdf.sail.SailException
org.openrdf.sail.SailException
public void addInferredForResource(org.openrdf.model.Resource base) throws org.openrdf.sail.SailException, org.openrdf.repository.RepositoryException
base
- The resource for which aliases are to be found
org.openrdf.sail.SailException
org.openrdf.repository.RepositoryException
public void processSameAs(org.openrdf.sail.inferencer.InferencerConnection con, org.openrdf.model.Resource base, org.openrdf.model.Resource alias) throws org.openrdf.sail.SailException
owl:sameAs
statement
con
- base
- alias
-
org.openrdf.sail.SailException
public void processRegularStatement(org.openrdf.sail.inferencer.InferencerConnection con, org.openrdf.model.Statement st) throws org.openrdf.sail.SailException
owl:sameAs
con
- st
-
org.openrdf.sail.SailException
public void setAutoInference(boolean autoInference)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |