Class Marc21FunctionalAnalyzer
java.lang.Object
de.gwdg.metadataqa.marc.analysis.functional.FunctionalAnalyzer
de.gwdg.metadataqa.marc.analysis.functional.Marc21FunctionalAnalyzer
Analyzes a MARC record and counts the FRBR functions. In other words, it counts how many FRBR user tasks are
supported by the provided record.
In the case of MARC21, the functions are already defined with the definition of the fields, subfields and indicators
in the respective MARC21 definition classes within this project.
-
Field Summary
Fields inherited from class de.gwdg.metadataqa.marc.analysis.functional.FunctionalAnalyzer
frbrFunctionLister, recordCounter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanalyzeRecord(BibliographicRecord bibliographicRecord) Analyzes a MARC21 record and counts the FRBR functions.protected voidcountDataField(DataFieldDefinition definition, DataField dataField, Map<FRBRFunction, FunctionValue> recordCounter) Methods inherited from class de.gwdg.metadataqa.marc.analysis.functional.FunctionalAnalyzer
addRecordCounterToCollector, addRecordCounterToHistogram, calculatePercentage, consumeRecord, countDataFields, countFunctions, getCollector, getFrbrFunctionLister, getHistogram, initializeCounter, percentOf, prepareHistogram
-
Constructor Details
-
Marc21FunctionalAnalyzer
-
-
Method Details
-
analyzeRecord
Analyzes a MARC21 record and counts the FRBR functions. Creates the recordCounter map and stores the counts of the FRBR functions (user tasks) in it. The map is then returned.- Specified by:
analyzeRecordin classFunctionalAnalyzer- Parameters:
bibliographicRecord- The record to be analyzed and counted.
-
countDataField
protected void countDataField(DataFieldDefinition definition, DataField dataField, Map<FRBRFunction, FunctionValue> recordCounter) - Specified by:
countDataFieldin classFunctionalAnalyzer
-