01: /*
02: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP, all rights reserved.
03: [See end of file]
04: $Id: ExpressionFunctionURIs.java,v 1.8 2008/01/02 12:07:57 andy_seaborne Exp $
05: */
06:
07: package com.hp.hpl.jena.graph.query;
08:
09: /**
10: ExpressionFunctionURIs: constants expressing the URIs for functions that
11: may be recognised or generated by expression constructors and analysers.
12:
13: @author kers
14: */
15: public interface ExpressionFunctionURIs {
16: public static final String prefix = "urn:x-jena:expr:";
17:
18: /**
19: Operator used to AND conditions together. The Query.addConstraint()
20: method explodes ANDed expressions into their components and keeps
21: them separately.
22: */
23:
24: public static final String AND = prefix + "AND";
25:
26: /**
27: Function identfier for "L endsWith string literal R", generated by Rewrite.
28: */
29: public static final String J_EndsWith = prefix + "J_endsWith";
30:
31: /**
32: Function identfier for "L startsWith string literal R", generated by Rewrite.
33: */
34: public static final String J_startsWith = prefix + "J_startsWith";
35:
36: public static final String J_startsWithInsensitive = prefix
37: + "J_startsWithInsensitive";
38:
39: public static final String J_endsWithInsensitive = prefix
40: + "J_endsWithInsensitive";
41:
42: /**
43: Function identfier for "L contains string literal R", generated by Rewrite.
44: */
45: public static final String J_contains = prefix + "J_contains";
46:
47: public static final String J_containsInsensitive = prefix
48: + "J_containsInsensitive";
49:
50: /**
51: Function identifier for RDQL-style string-match operation. This is recognised
52: by Query and rewritten by Rewrite to the J_* methods. The left operand
53: may be any expression, but the right operand must be a PatternLiteral.
54: */
55: public static final String Q_StringMatch = prefix + "Q_StringMatch";
56:
57: }
58:
59: /*
60: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
61: All rights reserved.
62:
63: Redistribution and use in source and binary forms, with or without
64: modification, are permitted provided that the following conditions
65: are met:
66:
67: 1. Redistributions of source code must retain the above copyright
68: notice, this list of conditions and the following disclaimer.
69:
70: 2. Redistributions in binary form must reproduce the above copyright
71: notice, this list of conditions and the following disclaimer in the
72: documentation and/or other materials provided with the distribution.
73:
74: 3. The name of the author may not be used to endorse or promote products
75: derived from this software without specific prior written permission.
76:
77: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
78: IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
79: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
80: IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
81: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
82: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
83: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
84: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
85: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
86: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
87: */
|