public final class CustomGraphQueryInferencerConfig extends AbstractDelegatingSailImplConfig
CustomGraphQueryInferencer
.Modifier and Type | Field and Description |
---|---|
static Pattern |
SERQL_PATTERN |
static Pattern |
SPARQL_PATTERN |
Constructor and Description |
---|
CustomGraphQueryInferencerConfig() |
CustomGraphQueryInferencerConfig(SailImplConfig delegate) |
Modifier and Type | Method and Description |
---|---|
static String |
buildMatcherQueryFromRuleQuery(QueryLanguage language,
String ruleQuery) |
Resource |
export(Model m) |
String |
getMatcherQuery() |
QueryLanguage |
getQueryLanguage() |
String |
getRuleQuery() |
void |
parse(Model m,
Resource implNode) |
void |
setMatcherQuery(String matcherQuery)
Set the optional matcher query.
|
void |
setQueryLanguage(QueryLanguage language) |
void |
setRuleQuery(String ruleQuery) |
void |
validate()
Validates this configuration.
|
getDelegate, setDelegate
getConnectionTimeOut, getIterationCacheSyncThreshold, getType, setConnectionTimeOut, setIterationCacheSyncThreshold, setType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIterationCacheSyncThreshold, getType
public static final Pattern SPARQL_PATTERN
public static final Pattern SERQL_PATTERN
public CustomGraphQueryInferencerConfig()
public CustomGraphQueryInferencerConfig(SailImplConfig delegate)
public void setQueryLanguage(QueryLanguage language)
public QueryLanguage getQueryLanguage()
public void setRuleQuery(String ruleQuery)
public String getRuleQuery()
public void setMatcherQuery(String matcherQuery)
matcherQuery
- if null, internal value will be set to the empty stringpublic String getMatcherQuery()
public void parse(Model m, Resource implNode) throws SailConfigException
parse
in interface SailImplConfig
parse
in class AbstractDelegatingSailImplConfig
SailConfigException
public void validate() throws SailConfigException
SailImplConfig
SailConfigException
is thrown when the configuration is invalid. The
exception should contain an error message that indicates why the configuration is invalid.validate
in interface SailImplConfig
validate
in class AbstractDelegatingSailImplConfig
SailConfigException
- If the configuration is invalid.public Resource export(Model m)
export
in interface SailImplConfig
export
in class AbstractDelegatingSailImplConfig
public static String buildMatcherQueryFromRuleQuery(QueryLanguage language, String ruleQuery) throws MalformedQueryException
MalformedQueryException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.