efxtools.filtering
Class EfXScopedQuery

java.lang.Object
  extended by efxtools.filtering.AScopedQuery
      extended by efxtools.filtering.EfXScopedQuery

public class EfXScopedQuery
extends AScopedQuery

Reference implementation of the abstract AScopedQuery that takes a query string as input and parses it in order to obtain the scoped query that represents the current extraction problem.

Information on the structure of the strings that can be parsed is given under EfXScopedQuery(TypeSystem, String).

Author:
Author of EfXTools

Constructor Summary
EfXScopedQuery(org.apache.uima.cas.TypeSystem typeSystem, java.lang.String query)
          Constructor that parses the scoped query given as a string based on the given type system.
 
Method Summary
 
Methods inherited from class efxtools.filtering.AScopedQuery
getRoots, getTypeSystem, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EfXScopedQuery

public EfXScopedQuery(org.apache.uima.cas.TypeSystem typeSystem,
                      java.lang.String query)
Constructor that parses the scoped query given as a string based on the given type system. The query is supposed to be in disjunctive normal form where each conjunction conjunction_i is assumed to be of the form and where an argument is an output type or feature name or a conjunction itself. All type and features must be defined in the given type system. An example for a query could be Notice that the fully qualified names of the annotation types and features must be given in order to use the query in the ScopeTMS. Different from the arguments, for scopes only types are allowed.

Parameters:
typeSystem - The type system
query - The query