Class BaseRenderingEngine
java.lang.Object
it.uniroma2.art.semanticturkey.extension.impl.rendering.BaseRenderingEngine
- All Implemented Interfaces:
Extension
,RenderingEngine
,QueryBuilderProcessor
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBaseRenderingEngine
(AbstractLabelBasedRenderingEngineConfiguration conf, boolean fallbackToTerm) -
Method Summary
Modifier and TypeMethodDescriptioncomputeLanguages
(STServiceContext context, String languages) Computes the list of languages by interpolating the configured languages with ST Properties.getGraphPattern
(STServiceContext context) abstract void
static Optional<RenderingEngine>
getRenderingEngineForLexicalizationModel
(ExtensionPointManager exptMgr, org.eclipse.rdf4j.model.IRI lexicalizationModel) static Optional<PluginSpecification>
getRenderingEngineSpecificationForLexicalModel
(org.eclipse.rdf4j.model.IRI lexicalizationModel) boolean
static Template
parseTemplate
(String template) static Template
parseTemplate
(String originalInput, Reader reader, int nesting, org.apache.commons.lang3.mutable.MutableInt consumedCodePointsCounter) Map<org.eclipse.rdf4j.model.Value,
org.eclipse.rdf4j.model.Literal> processBindings
(STServiceContext context, List<org.eclipse.rdf4j.query.BindingSet> resultTable) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.uniroma2.art.semanticturkey.services.support.QueryBuilderProcessor
processBindings, requiresOptionalWrapper
-
Field Details
-
languages
-
-
Constructor Details
-
BaseRenderingEngine
-
BaseRenderingEngine
public BaseRenderingEngine(AbstractLabelBasedRenderingEngineConfiguration conf, boolean fallbackToTerm)
-
-
Method Details
-
computeLanguages
Computes the list of languages by interpolating the configured languages with ST Properties. The order of languages is significative, since it may determine the order of labels displayed by concrete rendering engines.- Parameters:
context
-languages
-- Returns:
-
getGraphPattern
- Specified by:
getGraphPattern
in interfaceQueryBuilderProcessor
-
getGraphPatternInternal
-
introducesDuplicates
public boolean introducesDuplicates()- Specified by:
introducesDuplicates
in interfaceQueryBuilderProcessor
-
getBindingVariable
- Specified by:
getBindingVariable
in interfaceQueryBuilderProcessor
-
processBindings
public Map<org.eclipse.rdf4j.model.Value,org.eclipse.rdf4j.model.Literal> processBindings(STServiceContext context, List<org.eclipse.rdf4j.query.BindingSet> resultTable) - Specified by:
processBindings
in interfaceQueryBuilderProcessor
-
parseTemplate
- Throws:
TemplateParsingException
IOException
-
parseTemplate
public static Template parseTemplate(String originalInput, Reader reader, int nesting, org.apache.commons.lang3.mutable.MutableInt consumedCodePointsCounter) throws TemplateParsingException, IOException - Throws:
TemplateParsingException
IOException
-
getRenderingEngineForLexicalizationModel
public static Optional<RenderingEngine> getRenderingEngineForLexicalizationModel(ExtensionPointManager exptMgr, org.eclipse.rdf4j.model.IRI lexicalizationModel) -
getRenderingEngineSpecificationForLexicalModel
public static Optional<PluginSpecification> getRenderingEngineSpecificationForLexicalModel(org.eclipse.rdf4j.model.IRI lexicalizationModel)
-