|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.standards.asn.AsnTopics
public class AsnTopics
Class to read the ASN topics document from ASN web service and provide topic lookup by topic purl.
Method Summary | |
---|---|
static void |
cacheTopicsDoc(String srcDir)
Utility to update cached Topics File |
static AsnTopics |
getInstance()
Gets the AsnTopic instance |
String |
getTopic(String purl)
Returns a topic for a given topic purl (e.g., http://purl.org/ASN/scheme/ASNTopic/behavioralStudies) |
Map |
getTopicMap()
Returns a mapping from topic purl to topic label |
static void |
main(String[] args)
The main program for the AsnTopics class - runs cacheTopicsDoc utility. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AsnTopics getInstance() throws Exception
Exception
- if topicURL cannot be processedpublic static void cacheTopicsDoc(String srcDir) throws Exception
srcDir
- path to local src directory
Exception
- if file cannot be writtenpublic static void main(String[] args)
args
- The command line argumentspublic String getTopic(String purl)
purl
- NOT YET DOCUMENTED
public Map getTopicMap() throws Exception
Exception
- NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |