You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "Hans Brende (JIRA)" <ji...@apache.org> on 2018/09/13 17:05:01 UTC
[jira] [Updated] (ANY23-398) Make use of CompositeTripleHandler
[ https://issues.apache.org/jira/browse/ANY23-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hans Brende updated ANY23-398:
------------------------------
Description:
The {{BenchmarkTripleHandler}}, {{ExtractionContextBlocker}}, {{IgnoreAccidentalRDFa}}, {{IgnoreTitlesOfEmptyDocuments}}, {{LoggingTripleHandler}}, and {{ReportingTripleHandler}} classes could all potentially be subclasses of {{CompositeTripleHandler}} to reduce delegation boilerplate.
In addition, we could add the following constructor to {{CompositeTripleHandler}} for ease of subclassing by classes with a single delegate:
{code}
public CompositeTripleHandler(TripleHandler delegate) {
this(Collections.singleton(delegate));
}
{code}
Also, we should make CompositeTripleHandler extend FormatWriter (which extends TripleHandler) for more versatility.
was:
The {{BenchmarkTripleHandler}}, {{ExtractionContextBlocker}}, {{IgnoreAccidentalRDFa}}, {{IgnoreTitlesOfEmptyDocuments}}, {{LoggingTripleHandler}}, and {{ReportingTripleHandler}} classes could all potentially be subclasses of {{CompositeTripleHandler}} to reduce delegation boilerplate.
In addition, we could add the following constructor to {{CompositeTripleHandler}} for ease of subclassing by classes with a single delegate:
{code}
public CompositeTripleHandler(TripleHandler delegate) {
this(Collections.singleton(delegate));
}
{code}
> Make use of CompositeTripleHandler
> ----------------------------------
>
> Key: ANY23-398
> URL: https://issues.apache.org/jira/browse/ANY23-398
> Project: Apache Any23
> Issue Type: Improvement
> Components: core
> Affects Versions: 2.3
> Reporter: Hans Brende
> Priority: Minor
> Fix For: 2.3
>
>
> The {{BenchmarkTripleHandler}}, {{ExtractionContextBlocker}}, {{IgnoreAccidentalRDFa}}, {{IgnoreTitlesOfEmptyDocuments}}, {{LoggingTripleHandler}}, and {{ReportingTripleHandler}} classes could all potentially be subclasses of {{CompositeTripleHandler}} to reduce delegation boilerplate.
> In addition, we could add the following constructor to {{CompositeTripleHandler}} for ease of subclassing by classes with a single delegate:
> {code}
> public CompositeTripleHandler(TripleHandler delegate) {
> this(Collections.singleton(delegate));
> }
> {code}
> Also, we should make CompositeTripleHandler extend FormatWriter (which extends TripleHandler) for more versatility.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)