public class MarcJsonSchema extends Object implements Schema, ProblemCatalogSchema, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DATAFIELD_CHILDREN_PATTERN |
static String |
DATAFIELD_IND1_PATTERN |
static String |
DATAFIELD_IND2_PATTERN |
static String |
DATAFIELD_PARENT_PATTERN |
static String |
DATAFIELD_PATTERN |
Constructor and Description |
---|
MarcJsonSchema() |
Modifier and Type | Method and Description |
---|---|
void |
addExtractableField(String label,
String jsonPath)
Add a single field to the map of extractable fields.
|
static String |
createDatafieldPath(String tag,
String code) |
List<Category> |
getCategories() |
List<JsonBranch> |
getCollectionPaths()
Return collection paths.
|
String |
getDescriptionPath()
Get the description path.
|
List<String> |
getEmptyStringPaths()
Get path of empty strings.
|
Map<String,String> |
getExtractableFields()
Get fields for which the values should be extracted from the records.
|
List<FieldGroup> |
getFieldGroups()
Field groups used in completeness sub-dimensions.
|
Format |
getFormat() |
List<String> |
getNoLanguageFields()
List of field which can be skipped in the language extraction.
|
JsonBranch |
getPathByLabel(String label)
Returns a path by its label.
|
List<JsonBranch> |
getPaths()
The list of fields to investigate in most of the measurements.
|
List<JsonBranch> |
getRootChildrenPaths()
Return the paths of root's direct children.
|
List<RuleChecker> |
getRuleCheckers() |
Map<String,String> |
getSolrFields()
Map of fields covered in TF-IDF extraction.
|
String |
getSubjectPath()
Get the subject path.
|
String |
getTitlePath()
Get the title path.
|
void |
setExtractableFields(Map<String,String> extractableFields)
Set the extractable fields.
|
public static final String DATAFIELD_PATTERN
public static final String DATAFIELD_PARENT_PATTERN
public static final String DATAFIELD_IND1_PATTERN
public static final String DATAFIELD_IND2_PATTERN
public static final String DATAFIELD_CHILDREN_PATTERN
public List<JsonBranch> getCollectionPaths()
Schema
getCollectionPaths
in interface Schema
public List<JsonBranch> getRootChildrenPaths()
Schema
getRootChildrenPaths
in interface Schema
public List<JsonBranch> getPaths()
Schema
public List<FieldGroup> getFieldGroups()
Schema
getFieldGroups
in interface Schema
public List<String> getNoLanguageFields()
Schema
getNoLanguageFields
in interface Schema
public Map<String,String> getSolrFields()
Schema
solrFields.put("Proxy/dc:title", "dc_title_txt");
getSolrFields
in interface Schema
public Map<String,String> getExtractableFields()
Schema
getExtractableFields
in interface Schema
public void setExtractableFields(Map<String,String> extractableFields)
Schema
setExtractableFields
in interface Schema
extractableFields
- The extractable fields.Schema.getExtractableFields()
public void addExtractableField(String label, String jsonPath)
Schema
addExtractableField
in interface Schema
label
- The label of the field.jsonPath
- JSON path expression.public List<String> getEmptyStringPaths()
ProblemCatalogSchema
getEmptyStringPaths
in interface ProblemCatalogSchema
public String getSubjectPath()
ProblemCatalogSchema
getSubjectPath
in interface ProblemCatalogSchema
public String getTitlePath()
ProblemCatalogSchema
getTitlePath
in interface ProblemCatalogSchema
public String getDescriptionPath()
ProblemCatalogSchema
getDescriptionPath
in interface ProblemCatalogSchema
public JsonBranch getPathByLabel(String label)
Schema
getPathByLabel
in interface Schema
label
- The label to look for.public List<Category> getCategories()
getCategories
in interface Schema
public List<RuleChecker> getRuleCheckers()
getRuleCheckers
in interface Schema
Copyright © 2020. All rights reserved.