source: FCSSimpleEndpoint/trunk/src/main/java/eu/clarin/sru/server/fcs/Constants.java @ 7273

Last change on this file since 7273 was 7273, checked in by Oliver Schonefeld, 2 years ago
  • update copyright
  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1/**
2 * This software is copyright (c) 2013-2022 by
3 *  - Leibniz-Institut fuer Deutsche Sprache (http://www.ids-mannheim.de)
4 * This is free software. You can redistribute it
5 * and/or modify it under the terms described in
6 * the GNU General Public License v3 of which you
7 * should have received a copy. Otherwise you can download
8 * it from
9 *
10 *   http://www.gnu.org/licenses/gpl-3.0.txt
11 *
12 * @copyright Leibniz-Institut fuer Deutsche Sprache (http://www.ids-mannheim.de)
13 *
14 * @license http://www.gnu.org/licenses/gpl-3.0.txt
15 *  GNU General Public License v3
16 */
17package eu.clarin.sru.server.fcs;
18
19import eu.clarin.sru.server.SRUConstants;
20
21/**
22 * Various useful constants for CLARIN-FCS endpoints.
23 */
24public final class Constants {
25
26    /* diagnostics */
27    private static final String FCS_DIAGNOSTIC_URI_PREFIX =
28            "http://clarin.eu/fcs/diagnostic/";
29
30    public static final String FCS_DIAGNOSTIC_PERSISTENT_IDENTIFIER_INVALID =
31            FCS_DIAGNOSTIC_URI_PREFIX + 1;
32    public static final String FCS_DIAGNOSTIC_RESOURCE_TOO_LARGE_CONTEXT_ADJUSTED =
33            FCS_DIAGNOSTIC_URI_PREFIX + 2;
34    public static final String FCS_DIAGNOSTIC_RESOURCE_TOO_LARGE_CANNOT_PERFORM_QUERY =
35            FCS_DIAGNOSTIC_URI_PREFIX + 3;
36    public static final String FCS_DIAGNOSTIC_REQUESTED_DATA_VIEW_INVALID =
37            FCS_DIAGNOSTIC_URI_PREFIX + 4;
38    public static final String FCS_DIAGNOSTIC_GENERAL_QUERY_SYNTAX_ERROR =
39            FCS_DIAGNOSTIC_URI_PREFIX + 10;
40    public static final String FCS_DIAGNOSTIC_GENERAL_QUERY_TOO_COMPLEX_CANNOT_PERFORM_QUERY =
41            FCS_DIAGNOSTIC_URI_PREFIX + 11;
42    public static final String FCS_DIAGNOSTIC_QUERY_WAS_REWRITTEN =
43            FCS_DIAGNOSTIC_URI_PREFIX + 12;
44    public static final String FCS_DIAGNOSTIC_GENERAL_PROCESSING_HINT =
45            FCS_DIAGNOSTIC_URI_PREFIX + 13;
46
47
48    public static final String FCS_QUERY_TYPE_FCS          = "fcs";
49    public static final String FCS_QUERY_TYPE_CQL          =
50            SRUConstants.SRU_QUERY_TYPE_CQL;
51    public static final String FCS_QUERY_TYPE_SEARCH_TERMS =
52            SRUConstants.SRU_QUERY_TYPE_SEARCH_TERMS;
53
54    public static final String FCS_LAYER_TYPE_TEXT = "text";
55    public static final String FCS_LAYER_TYPE_LEMMA = "lemma";
56    public static final String FCS_LAYER_TYPE_POS = "pos";
57    public static final String FCS_LAYER_TYPE_ORTH = "orth";
58    public static final String FCS_LAYER_TYPE_NORM = "norm";
59    public static final String FCS_LAYER_TYPE_PHONETIC = "phonetic";
60
61
62    /* hide constructor */
63    private Constants() {
64    }
65
66} // final class Constants
Note: See TracBrowser for help on using the repository browser.