Skip to content

Commit

Permalink
Issue #2: extracting the name of provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Nov 7, 2018
1 parent 7b82686 commit 42a7d64
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import com.jayway.jsonpath.InvalidJsonException;

import de.gwdg.europeanaqa.api.abbreviation.EdmCountryManager;
import de.gwdg.europeanaqa.api.abbreviation.EdmDataProviderManager;
import de.gwdg.europeanaqa.api.abbreviation.EdmDatasetManager;
import de.gwdg.europeanaqa.api.abbreviation.EdmLanguageManager;
import de.gwdg.europeanaqa.api.abbreviation.*;
import de.gwdg.metadataqa.api.calculator.*;
import de.gwdg.metadataqa.api.model.EdmFieldInstance;
import de.gwdg.metadataqa.api.problemcatalog.EmptyStrings;
Expand Down Expand Up @@ -92,6 +89,11 @@ public void configure() {
fieldExtractor.abbreviate(abbreviate);
if (extendedFieldExtraction) {
int index = format == Formats.FULLBEAN ? -1 : 0;
schema.addExtractableField(
"provider",
getJsonPathForExtractor(schema, "EuropeanaAggregation/edm:provider", index)
);
fieldExtractor.addAbbreviationManager("provider", new EdmProviderManager());
schema.addExtractableField(
"country",
getJsonPathForExtractor(schema, "EuropeanaAggregation/edm:country", index)
Expand Down

0 comments on commit 42a7d64

Please sign in to comment.