public class OaipmhHarvester
extends java.lang.Object
Constructor and Description |
---|
OaipmhHarvester() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
The main() method.
|
static void |
run(java.lang.String baseURL,
java.lang.String dn,
java.lang.String password,
java.lang.String from,
java.lang.String until,
java.lang.String metadataPrefix,
java.lang.String setSpec)
Runs a OAI-PMH harvest.
|
public static void main(java.lang.String[] args)
args
- Command line arguments:
-dn distinguished_name -- LDAP user name of the harvester account
-password password -- LDAP password of the harvester account
<-metacatConfigdir dir> -- Directory where metacat.properties file is
found.
<-from date> -- from date of the harvest documents
<-until date> -- until date of the harvest documents
<-metadataPrefix prefix> -- metadata prefix of the harvest documents,
e.g. 'oai_dc'
<-setSpec setName> -- set specification of the harvest documents
baseURL -- base URL of the OAI-PMH data provider
Command options appearing inside angle brackets (<>) are optional.public static void run(java.lang.String baseURL, java.lang.String dn, java.lang.String password, java.lang.String from, java.lang.String until, java.lang.String metadataPrefix, java.lang.String setSpec) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, javax.xml.transform.TransformerException, java.lang.NoSuchFieldException
baseURL
- The base URL of the data provider.dn
- Value of 'dn' option, a LDAP distinguished name,
e.g. "uid=dryad,o=LTER,dc=ecoinformatics,dc=org"password
- Value of 'password' option, a stringfrom
- Value of 'from' option, a date string or nulluntil
- Value of 'until' option, a date string or nullmetadataPrefix
- Value of 'metadataPrefix' option, may be nullsetSpec
- Value of 'setSpec' option, may be nulljava.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
javax.xml.transform.TransformerException
java.lang.NoSuchFieldException
Copyright © 2020 Regents of the University of California. All Rights Reserved.