Class CustomGraphQueryInferencerConfig
java.lang.Object
org.eclipse.rdf4j.sail.config.AbstractSailImplConfig
org.eclipse.rdf4j.sail.config.AbstractDelegatingSailImplConfig
org.eclipse.rdf4j.sail.inferencer.fc.config.CustomGraphQueryInferencerConfig
- All Implemented Interfaces:
DelegatingSailImplConfig,SailImplConfig
Configuration handling for
CustomGraphQueryInferencer.- Author:
- Dale Visser
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildMatcherQueryFromRuleQuery(QueryLanguage language, String ruleQuery) voidvoidsetMatcherQuery(String matcherQuery) Set the optional matcher query.voidsetQueryLanguage(QueryLanguage language) voidsetRuleQuery(String ruleQuery) voidvalidate()Validates this configuration.Methods inherited from class org.eclipse.rdf4j.sail.config.AbstractDelegatingSailImplConfig
getDelegate, setDelegateMethods inherited from class org.eclipse.rdf4j.sail.config.AbstractSailImplConfig
getConnectionTimeOut, getIterationCacheSyncThreshold, getType, setConnectionTimeOut, setIterationCacheSyncThreshold, setTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.sail.config.SailImplConfig
getIterationCacheSyncThreshold, getType
-
Field Details
-
SPARQL_PATTERN
-
-
Constructor Details
-
CustomGraphQueryInferencerConfig
public CustomGraphQueryInferencerConfig() -
CustomGraphQueryInferencerConfig
-
-
Method Details
-
setQueryLanguage
-
getQueryLanguage
-
setRuleQuery
-
getRuleQuery
-
setMatcherQuery
Set the optional matcher query.- Parameters:
matcherQuery- if null, internal value will be set to the empty string
-
getMatcherQuery
-
parse
- Specified by:
parsein interfaceSailImplConfig- Overrides:
parsein classAbstractDelegatingSailImplConfig- Throws:
SailConfigException
-
validate
Description copied from interface:SailImplConfigValidates this configuration. ASailConfigExceptionis thrown when the configuration is invalid. The exception should contain an error message that indicates why the configuration is invalid.- Specified by:
validatein interfaceSailImplConfig- Overrides:
validatein classAbstractDelegatingSailImplConfig- Throws:
SailConfigException- If the configuration is invalid.
-
export
- Specified by:
exportin interfaceSailImplConfig- Overrides:
exportin classAbstractDelegatingSailImplConfig
-
buildMatcherQueryFromRuleQuery
public static String buildMatcherQueryFromRuleQuery(QueryLanguage language, String ruleQuery) throws MalformedQueryException - Throws:
MalformedQueryException
-