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()
SchemagetCollectionPaths in interface Schemapublic List<JsonBranch> getRootChildrenPaths()
SchemagetRootChildrenPaths in interface Schemapublic List<JsonBranch> getPaths()
Schemapublic List<FieldGroup> getFieldGroups()
SchemagetFieldGroups in interface Schemapublic List<String> getNoLanguageFields()
SchemagetNoLanguageFields in interface Schemapublic Map<String,String> getSolrFields()
Schema
solrFields.put("Proxy/dc:title", "dc_title_txt");
getSolrFields in interface Schemapublic Map<String,String> getExtractableFields()
SchemagetExtractableFields in interface Schemapublic void setExtractableFields(Map<String,String> extractableFields)
SchemasetExtractableFields in interface SchemaextractableFields - The extractable fields.Schema.getExtractableFields()public void addExtractableField(String label, String jsonPath)
SchemaaddExtractableField in interface Schemalabel - The label of the field.jsonPath - JSON path expression.public List<String> getEmptyStringPaths()
ProblemCatalogSchemagetEmptyStringPaths in interface ProblemCatalogSchemapublic String getSubjectPath()
ProblemCatalogSchemagetSubjectPath in interface ProblemCatalogSchemapublic String getTitlePath()
ProblemCatalogSchemagetTitlePath in interface ProblemCatalogSchemapublic String getDescriptionPath()
ProblemCatalogSchemagetDescriptionPath in interface ProblemCatalogSchemapublic JsonBranch getPathByLabel(String label)
SchemagetPathByLabel in interface Schemalabel - The label to look for.public List<Category> getCategories()
getCategories in interface Schemapublic List<RuleChecker> getRuleCheckers()
getRuleCheckers in interface SchemaCopyright © 2020. All rights reserved.