Package org.dlese.dpc.standards.asn
Class AsnTopics
java.lang.Object
org.dlese.dpc.standards.asn.AsnTopics
Class to read the ASN topics document from ASN web service and provide topic
lookup by topic purl.
- Author:
- Jonathan Ostwald
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheTopicsDoc(String srcDir) Utility to update cached Topics Filestatic AsnTopicsGets the AsnTopic instanceReturns a topic for a given topic purl (e.g., http://purl.org/ASN/scheme/ASNTopic/behavioralStudies)Returns a mapping from topic purl to topic labelstatic voidThe main program for the AsnTopics class - runs cacheTopicsDoc utility.
-
Method Details
-
getInstance
Gets the AsnTopic instance- Returns:
- The instance value
- Throws:
Exception- if topicURL cannot be processed
-
cacheTopicsDoc
Utility to update cached Topics File- Parameters:
srcDir- path to local src directory- Throws:
Exception- if file cannot be written
-
main
The main program for the AsnTopics class - runs cacheTopicsDoc utility.- Parameters:
args- The command line arguments
-
getTopic
Returns a topic for a given topic purl (e.g., http://purl.org/ASN/scheme/ASNTopic/behavioralStudies)- Parameters:
purl- NOT YET DOCUMENTED- Returns:
- The topic value
-
getTopicMap
Returns a mapping from topic purl to topic label- Returns:
- The topicMap value
- Throws:
Exception- NOT YET DOCUMENTED
-