Skip to content

Commit

Permalink
Add comment for registering LanguageProcessors
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Jun 11, 2024
1 parent 749dfa7 commit 151af88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/aksw/iguana/cc/lang/LanguageProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

/**
* Interface for abstract language processors that work on InputStreams.
* LanguageProcessors are used to process the content of an InputStream and extract relevant information.
* They are used by the Worker to process the response of a request. <br>
* LanguageProcessors must be registered in the static block of this class.
*/
public abstract class LanguageProcessor {

Expand All @@ -39,6 +42,7 @@ public interface LanguageProcessingData extends Storable {

final private static Logger LOGGER = LoggerFactory.getLogger(LanguageProcessor.class);

// Register all available LanguageProcessors here.
static {
processors.put("application/sparql-results+json", org.aksw.iguana.cc.lang.impl.SaxSparqlJsonResultCountingParser.class);
}
Expand Down

0 comments on commit 151af88

Please sign in to comment.