public class CustomGraphQueryInferencer extends NotifyingSailWrapper
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
CustomGraphQueryInferencer() |
CustomGraphQueryInferencer(NotifyingSail baseSail,
QueryLanguage language,
String queryText,
String matcherText)
Create a new custom inferencer.
|
CustomGraphQueryInferencer(QueryLanguage language,
String queryText,
String matcherText)
Create a new custom inferencer.
|
| Modifier and Type | Method and Description |
|---|---|
InferencerConnection |
getConnection() |
Collection<Value> |
getWatchObjects()
Exposed for test purposes.
|
Collection<Value> |
getWatchPredicates()
Exposed for test purposes.
|
Collection<Value> |
getWatchSubjects()
Exposed for test purposes.
|
void |
initialize() |
void |
setFields(QueryLanguage language,
String queryText,
String matcherText)
Called in order to set all the fields needed for the inferencer to
function.
|
addSailChangedListener, getBaseSail, removeSailChangedListener, setBaseSailgetDataDir, getValueFactory, isWritable, setDataDir, shutDown, verifyBaseSailSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataDir, getValueFactory, isWritable, setDataDir, shutDownpublic CustomGraphQueryInferencer()
public CustomGraphQueryInferencer(QueryLanguage language, String queryText, String matcherText) throws MalformedQueryException, UnsupportedQueryLanguageException, SailException
language - language that queryText and matcherText are
expressed inqueryText - a query that returns an RDF graph of inferred statements to be
added to the underlying SailmatcherText - a query that returns an RDF graph of existing inferred statements
already added previouslyMalformedQueryException - if there is a problem parsing either of the given queriesUnsupportedQueryLanguageException - if an unsupported query language is specifiedSailException - if a problem occurs interpreting the rule patternpublic CustomGraphQueryInferencer(NotifyingSail baseSail, QueryLanguage language, String queryText, String matcherText) throws MalformedQueryException, UnsupportedQueryLanguageException, SailException
baseSail - an underlying Sail, such as another inferencer or a SailRepositorylanguage - language that queryText and matcherText are
expressed inqueryText - a query that returns an RDF graph of inferred statements to be
added to the underlying SailmatcherText - a query that returns an RDF graph of existing inferred statements
already added previouslyMalformedQueryException - if there is a problem parsing either of the given queriesUnsupportedQueryLanguageExceptionSailException - if a problem occurs interpreting the rule patternpublic final void setFields(QueryLanguage language, String queryText, String matcherText) throws MalformedQueryException, SailException
language - language that queryText and matcherText are
expressed inqueryText - a query that returns an RDF graph of inferred statements to be
added to the underlying SailmatcherText - a query that returns an RDF graph of existing inferred statements
already added previouslyMalformedQueryException - if there is a problem parsing either of the given queriesSailException - if a problem occurs interpreting the rule patternpublic InferencerConnection getConnection() throws SailException
getConnection in interface NotifyingSailgetConnection in interface SailgetConnection in class NotifyingSailWrapperSailExceptionpublic void initialize()
throws SailException
initialize in interface Sailinitialize in class SailWrapperSailExceptionpublic Collection<Value> getWatchSubjects()
public Collection<Value> getWatchPredicates()
public Collection<Value> getWatchObjects()
Copyright © 2001-2014 Aduna. All Rights Reserved.