Package org.apache.uima.cas
Common Analysis System(CAS) Interfaces
Common Analysis System (CAS) Interfaces
The CAS provides
- a set of methods for creating Feature Structures and setting / getting their Feature values, based on parameters referencing Types and Features.
- a link to the type system being used
- a container for the set of one or more "Views" - each view corresponding to a separate set of indexes, contained in a index repository. These indexes can be used to retrieve the Feature Structures that have already been created.
- For each view:
- a link to the indexes used to index Feature Structures
- information about that view's (optional) Subject of Analysis (SofA).
- convenience methods for adding Feature Structures to the view's indexes
- For each view:
Type System
The Type System is a collection of types and features of each type, where the types are in a single type hierarchy. The type/feature information is collected from possibly multiple annotators that make up a UIMA pipeline, and the definitions are merged.
Index Repository
Indexes provide a way to access those Feature Structures which have been indexed (added to the index, and not subsequently removed). Each CAS view has a separate set of indexes.
- FSIndexRepository - UIMA pipelines specify a set of index definitions to be used; these definitions are used for all views. In addition to user-specified indexes, there are two built-in indexes: the Annotation Index, and a default "bag" index that is used whenever no other index is defined, to enable retrieval of all indexed Feature Structures. When users add instances to the indexes, they do so for the indexes in just one view. Users may choose to index the same Feature Structure in multiple views, with one restriction: Feature Structures which are subtypes of AnnotationBase may only be added to the view where the Feature Structure was created. The FSIndexRepository instance per view allows access to the Feature Structures indexed in that view.
- FSIndex - represents a particular index over a type and its subtypes. There are three underlying kinds of indexes: Bag, Set, and Sorted. The Set and Sorted include a "comparator" which defines a compare order which is also used as the definition of "equal" for Sets.
Built-in Feature Structure classes
This package holds the definition for many of the built-in Feature Structures.
The following classes are alternate interfaces for built-in Feature Structures; they remain for backwards compatibility.org.apache.uima.cas
UIMA v2 name org.apache.uima.cas |
preferred org.apache.uima.jcas.cas |
BooleanArrayFS | BooleanArray |
ByteArrayFS | ByteArray |
ShortArrayFS | ShortArray |
IntegerArrayFS | IntegerArray |
FloatArrayFS | FloatArray |
LongArrayFS | LongArray |
DoubleArrayFS | DoubleArray |
SofaFS | Sofa |
AnnotationBaseFS | AnnotationBase |
Constraints - used by filtered iterators
Iterators may be filtered, using constraints, specified using these interfaces.
- ConstraintFactor
- FeaturePath
- FeatureValuePath
- FSBooleanConstraint
- FSConstraint
- FSFloatConstraint
- FSIntConstraint
- FSMatchConstraint
- FSStringConstraint
- FSTypeConstraint
Exception collections
Many of the exceptions that UIMA may throw are collected into groups here. These classes provide one level of indirection that permit IDE environments to conveniently locate and work with these.
Extends | |
CASException | UIMAException (checked) |
CASRuntimeException | UIMARuntimeException |
-
ClassDescriptionThe base interface extended by all CAS (Common Analysis System) interfaces in the UIMA SDK.Base class from which CAS implementations should extend.Annotation Base API.ArrayFS<E extends FeatureStructure>Feature structure array interface.Boolean array interface.Byte array interface.Object-oriented CAS (Common Analysis System) API.Exception class for package org.apache.uima.cas.Represents the "owner" of a CAS.Runtime exception class for package org.apache.uima.cas.Common parts of the Array interfaces.Information that a CAS needs to know about the component that's currently operating on it.Methods to create
FSMatchConstraint
s for filtered iterators or other use.Double array interface.The interface that describes features in the type system.Interface for a feature path.Interface for feature structures.Deprecated.Interface for CAS float arrays.Interface for a boolean constraint.There are 4 kinds of comparators for the combinations of comparing - with or without the "id" - with or without type order (with only includes typeOrder if there is such a key included)Interface for feature structure constraints.Interface for a float constraint.FSIndex<T extends FeatureStructure>Feature structure index access interface.Repository of indexes over feature structures.Interface for an integer constraint.FSIterator<T extends FeatureStructure>Iterator over feature structures.Interface for feature structure matching constraints.Interface for a String constraint.Interface for type constraint.Interface for CAS int arrays.Long array interface.An object obtained from theCAS
that is used to query when FSs were created or modified with respect to the marker.Deprecated.The Constraint Parser is not supported in externally released versions of UIMASelectFSs<T extends FeatureStructure>Collection of builder style methods to specify selection of FSs from indexes Documentation is in a chapter in the UIMA Version 3 User's Guide.The various forms of serialization (typically of the CAS)Short array interface.Interface for "Subject of Analysis" (Sofa) feature structures.Deprecated.As of v2.0, this is no longer needed.String array interface.The interface describing types in the type system.This class may not be used.An object holding the namespace string for a type.The interface to the type system.
FeaturePath