public class OAIPMHDateGranularityRule
extends eu.dnetlib.validator.engine.data.Rule
Checks if an OAI-PMH repository handles Date Granularities correctly, i.e., the granularity reported in Identify is the same as the one used in the records' datestamps.
The Validation Object used in
apply(ValidationObject) must be provided
from a OAIPMHSinglePageVerbProvider that issues a simple
'ListIdentifiers&metadataPrefix=oai_dc' verb (no need for full harvesting)
| Constructor and Description |
|---|
OAIPMHDateGranularityRule(Properties pros,
int id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(eu.dnetlib.validator.engine.execution.ValidationObject obj) |
getErrors, getProvider, getValObjId, setErrors, setProvider, setValObjIdpublic static final String BASEURL
public OAIPMHDateGranularityRule(Properties pros, int id)
Copyright © 2022. All rights reserved.