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
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate QueryLanguage
private String
private String
static final Pattern
private static final boolean
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addQueryNode
(Model m, Resource implNode, IRI predicate, String queryText) static String
buildMatcherQueryFromRuleQuery
(QueryLanguage language, String ruleQuery) void
void
setMatcherQuery
(String matcherQuery) Set the optional matcher query.void
setQueryLanguage
(QueryLanguage language) void
setRuleQuery
(String ruleQuery) void
validate()
Validates this configuration.Methods inherited from class org.eclipse.rdf4j.sail.config.AbstractDelegatingSailImplConfig
getDelegate, setDelegate
Methods inherited from class org.eclipse.rdf4j.sail.config.AbstractSailImplConfig
getConnectionTimeOut, getIterationCacheSyncThreshold, getType, setConnectionTimeOut, setIterationCacheSyncThreshold, setType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.sail.config.SailImplConfig
getIterationCacheSyncThreshold, getType
-
Field Details
-
USE_CONFIG
private static final boolean USE_CONFIG -
SPARQL_PATTERN
-
language
-
ruleQuery
-
matcherQuery
-
-
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:
parse
in interfaceSailImplConfig
- Overrides:
parse
in classAbstractDelegatingSailImplConfig
- Throws:
SailConfigException
-
validate
Description copied from interface:SailImplConfig
Validates this configuration. ASailConfigException
is thrown when the configuration is invalid. The exception should contain an error message that indicates why the configuration is invalid.- Specified by:
validate
in interfaceSailImplConfig
- Overrides:
validate
in classAbstractDelegatingSailImplConfig
- Throws:
SailConfigException
- If the configuration is invalid.
-
export
- Specified by:
export
in interfaceSailImplConfig
- Overrides:
export
in classAbstractDelegatingSailImplConfig
-
buildMatcherQueryFromRuleQuery
public static String buildMatcherQueryFromRuleQuery(QueryLanguage language, String ruleQuery) throws MalformedQueryException - Throws:
MalformedQueryException
-
addQueryNode
-