public class AsnTopics
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
cacheTopicsDoc(java.lang.String srcDir)
Utility to update cached Topics File
|
static AsnTopics |
getInstance()
Gets the AsnTopic instance
|
java.lang.String |
getTopic(java.lang.String purl)
Returns a topic for a given topic purl (e.g., http://purl.org/ASN/scheme/ASNTopic/behavioralStudies)
|
java.util.Map |
getTopicMap()
Returns a mapping from topic purl to topic label
|
static void |
main(java.lang.String[] args)
The main program for the AsnTopics class - runs cacheTopicsDoc utility.
|
public static AsnTopics getInstance() throws java.lang.Exception
java.lang.Exception
- if topicURL cannot be processedpublic static void cacheTopicsDoc(java.lang.String srcDir) throws java.lang.Exception
srcDir
- path to local src directoryjava.lang.Exception
- if file cannot be writtenpublic static void main(java.lang.String[] args)
args
- The command line argumentspublic java.lang.String getTopic(java.lang.String purl)
purl
- NOT YET DOCUMENTEDpublic java.util.Map getTopicMap() throws java.lang.Exception
java.lang.Exception
- NOT YET DOCUMENTED