Public Member Functions | |
| List< String > | ask (String synset) |
| void | load () throws IOException |
| void | save () throws Exception |
| void | tell (String synset, List< String > concepts) |
Static Public Attributes | |
| static final String | ATTR_VALUE = "value" |
| static final String | TAG_CACHE = "cyccache" |
| static final String | TAG_CONCEPT = "cycconcept" |
| static final String | TAG_SYNSET = "synsetid" |
Package Attributes | |
| Map< String, List< String > > | map = new HashMap<String, List<String>>() |
Definition at line 20 of file CycCache.java.
| List<String> instruction.opencyc.CycCache.ask | ( | String | synset | ) | [inline] |
Checks if the Synset-ID synset already has been cached
| synset |
null if the Synset-ID has not been found in the cache Definition at line 51 of file CycCache.java.
| void instruction.opencyc.CycCache.load | ( | ) | throws IOException [inline] |
Loads the cache file etc/cyccache.xml
| IOException | |
| @throws | Exception |
Definition at line 64 of file CycCache.java.
| void instruction.opencyc.CycCache.save | ( | ) | throws Exception [inline] |
Saves the cache to the file etc/cyccache.xml
| Exception |
Definition at line 122 of file CycCache.java.
| void instruction.opencyc.CycCache.tell | ( | String | synset, |
| List< String > | concepts | ||
| ) | [inline] |
Puts a new list of Cyc concept names to be associated with the Synset-ID synset to the cache
| synset | |
| concepts |
Definition at line 39 of file CycCache.java.
final String instruction.opencyc.CycCache.ATTR_VALUE = "value" [static] |
Definition at line 28 of file CycCache.java.
Map<String, List<String> > instruction.opencyc.CycCache.map = new HashMap<String, List<String>>() [package] |
Definition at line 30 of file CycCache.java.
final String instruction.opencyc.CycCache.TAG_CACHE = "cyccache" [static] |
Definition at line 22 of file CycCache.java.
final String instruction.opencyc.CycCache.TAG_CONCEPT = "cycconcept" [static] |
Definition at line 26 of file CycCache.java.
final String instruction.opencyc.CycCache.TAG_SYNSET = "synsetid" [static] |
Definition at line 24 of file CycCache.java.