|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for Content Language encoders/decoders. This interface declares two methods that must convert between text and frame representations according to a specific content language.
| Method Summary | |
java.util.List |
decode(java.lang.String s,
Ontology o)
Decodes a given String, according to the given
Content Language and obtains a t-uple of Frame objects.
|
java.lang.String |
encode(java.util.List v,
Ontology o)
Encodes a t-uple of Frame objects into a Java
String, according to this Content Language and Ontology by
looking up the given ontology for the role played by symbols
(i.e. whether they are concepts, actions or predicates). |
| Method Detail |
public java.lang.String encode(java.util.List v,
Ontology o)
Frame objects into a Java
String, according to this Content Language and Ontology by
looking up the given ontology for the role played by symbols
(i.e. whether they are concepts, actions or predicates).
o - The ontology to use to lookup the roles for the various
symbols.
public java.util.List decode(java.lang.String s,
Ontology o)
throws CodecException
String, according to the given
Content Language and obtains a t-uple of Frame objects.
This method can use the given ontology to distinguish among the different
kinds of roles a symbol can play (i.e. Concept vs. Action
vs. Predicate).
s - A string containing the representation of an ontological
element, encoded according to this content language.o - The ontology to use to lookup the roles for the various
symbols.
CodecException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||