|
10 | 10 | rdfs:comment "SPARQL regex test cases" ;
|
11 | 11 | mf:entries (
|
12 | 12 | :dawg-regex-001 :dawg-regex-002 :dawg-regex-003 :dawg-regex-004
|
| 13 | + :regex-quantifier-optional |
| 14 | + :regex-quantifier-zero-or-more |
| 15 | + :regex-quantifier-one-or-more |
| 16 | + :regex-quantifier-counted-exact |
| 17 | + :regex-quantifier-counted-lower-bound |
| 18 | + :regex-quantifier-counted-lower-upper-bounds |
| 19 | + :regex-dot |
| 20 | + :regex-dot-all |
| 21 | + :regex-case-insensitive |
| 22 | + :regex-no-metacharacters |
| 23 | + :regex-no-metacharacters-case-insensitive |
| 24 | + :regex-start-end |
| 25 | + :regex-start-end-multiline |
| 26 | + :regex-char-class-expression |
| 27 | + :regex-negative-char-class-expression |
| 28 | + :regex-ignore-whitespaces |
| 29 | + :regex-ignore-whitespaces-class-expression |
13 | 30 | ).
|
14 | 31 |
|
15 | 32 | :dawg-regex-001 a mf:QueryEvaluationTest ;
|
|
56 | 73 | qt:data <regex-data-01.ttl> ] ;
|
57 | 74 | mf:result <regex-result-004.ttl> .
|
58 | 75 |
|
| 76 | +:regex-quantifier-optional a mf:QueryEvaluationTest ; |
| 77 | + mf:name "REGEX with an ? quantifier" ; |
| 78 | + mf:action |
| 79 | + [ qt:query <regex-quantifier-optional.rq> ; |
| 80 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 81 | + mf:result <regex-quantifier-optional.srx> . |
| 82 | + |
| 83 | +:regex-quantifier-zero-or-more a mf:QueryEvaluationTest ; |
| 84 | + mf:name "REGEX with an * quantifier" ; |
| 85 | + mf:action |
| 86 | + [ qt:query <regex-quantifier-zero-or-more.rq> ; |
| 87 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 88 | + mf:result <regex-quantifier-zero-or-more.srx> . |
| 89 | + |
| 90 | +:regex-quantifier-one-or-more a mf:QueryEvaluationTest ; |
| 91 | + mf:name "REGEX with a + quantifier" ; |
| 92 | + mf:action |
| 93 | + [ qt:query <regex-quantifier-one-or-more.rq> ; |
| 94 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 95 | + mf:result <regex-quantifier-one-or-more.srx> . |
| 96 | + |
| 97 | +:regex-quantifier-counted-exact a mf:QueryEvaluationTest ; |
| 98 | + mf:name "REGEX with an {2} quantifier" ; |
| 99 | + mf:action |
| 100 | + [ qt:query <regex-quantifier-counted-exact.rq> ; |
| 101 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 102 | + mf:result <regex-quantifier-counted-exact.srx> . |
| 103 | + |
| 104 | +:regex-quantifier-counted-lower-bound a mf:QueryEvaluationTest ; |
| 105 | + mf:name "REGEX with an {,2} quantifier" ; |
| 106 | + mf:action |
| 107 | + [ qt:query <regex-quantifier-counted-lower-bound.rq> ; |
| 108 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 109 | + mf:result <regex-quantifier-counted-lower-bound.srx> . |
| 110 | + |
| 111 | +:regex-quantifier-counted-lower-upper-bounds a mf:QueryEvaluationTest ; |
| 112 | + mf:name "REGEX with an {2,} quantifier" ; |
| 113 | + mf:action |
| 114 | + [ qt:query <regex-quantifier-counted-lower-upper-bounds.rq> ; |
| 115 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 116 | + mf:result <regex-quantifier-counted-lower-upper-bounds.srx> . |
| 117 | + |
| 118 | +:regex-dot a mf:QueryEvaluationTest ; |
| 119 | + mf:name "REGEX with an . operator" ; |
| 120 | + mf:action |
| 121 | + [ qt:query <regex-dot.rq> ; |
| 122 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 123 | + mf:result <regex-dot.srx> . |
| 124 | + |
| 125 | +:regex-dot-all a mf:QueryEvaluationTest ; |
| 126 | + mf:name "REGEX with an . operator and the s option" ; |
| 127 | + mf:action |
| 128 | + [ qt:query <regex-dot-all.rq> ; |
| 129 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 130 | + mf:result <regex-dot-all.srx> . |
| 131 | + |
| 132 | +:regex-case-insensitive a mf:QueryEvaluationTest ; |
| 133 | + mf:name "REGEX with the i option" ; |
| 134 | + mf:action |
| 135 | + [ qt:query <regex-case-insensitive.rq> ; |
| 136 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 137 | + mf:result <regex-case-insensitive.srx> . |
| 138 | + |
| 139 | +:regex-no-metacharacters a mf:QueryEvaluationTest ; |
| 140 | + mf:name "REGEX with the q option" ; |
| 141 | + mf:action |
| 142 | + [ qt:query <regex-no-metacharacters.rq> ; |
| 143 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 144 | + mf:result <regex-no-metacharacters.srx> . |
| 145 | + |
| 146 | +:regex-no-metacharacters-case-insensitive a mf:QueryEvaluationTest ; |
| 147 | + mf:name "REGEX with the iq option" ; |
| 148 | + mf:action |
| 149 | + [ qt:query <regex-no-metacharacters-case-insensitive.rq> ; |
| 150 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 151 | + mf:result <regex-no-metacharacters.srx> . |
| 152 | + |
| 153 | +:regex-start-end a mf:QueryEvaluationTest ; |
| 154 | + mf:name "REGEX with ^ and $" ; |
| 155 | + mf:action |
| 156 | + [ qt:query <regex-start-end.rq> ; |
| 157 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 158 | + mf:result <regex-start-end.srx> . |
| 159 | + |
| 160 | +:regex-start-end-multiline a mf:QueryEvaluationTest ; |
| 161 | + mf:name "REGEX with ^ and $ and m option" ; |
| 162 | + mf:action |
| 163 | + [ qt:query <regex-start-end-multiline.rq> ; |
| 164 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 165 | + mf:result <regex-start-end-multiline.srx> . |
| 166 | + |
| 167 | +:regex-char-class-expression a mf:QueryEvaluationTest ; |
| 168 | + mf:name "REGEX with [] expression" ; |
| 169 | + mf:action |
| 170 | + [ qt:query <regex-char-class-expression.rq> ; |
| 171 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 172 | + mf:result <regex-char-class-expression.srx> . |
| 173 | + |
| 174 | +:regex-negative-char-class-expression a mf:QueryEvaluationTest ; |
| 175 | + mf:name "REGEX with a [^] expression" ; |
| 176 | + mf:action |
| 177 | + [ qt:query <regex-negative-char-class-expression.rq> ; |
| 178 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 179 | + mf:result <regex-negative-char-class-expression.srx> . |
| 180 | + |
| 181 | +:regex-ignore-whitespaces a mf:QueryEvaluationTest ; |
| 182 | + mf:name "REGEX with the ignore spacing (x) option" ; |
| 183 | + mf:action |
| 184 | + [ qt:query <regex-ignore-whitespaces.rq> ; |
| 185 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 186 | + mf:result <regex-ignore-whitespaces.srx> . |
| 187 | + |
| 188 | +:regex-ignore-whitespaces-class-expression a mf:QueryEvaluationTest ; |
| 189 | + mf:name "REGEX with the ignore spacing (x) option with class expression" ; |
| 190 | + mf:action |
| 191 | + [ qt:query <regex-ignore-whitespaces-class-expression.rq> ; |
| 192 | + qt:data <regex-data-quantifiers.ttl> ] ; |
| 193 | + mf:result <regex-ignore-whitespaces-class-expression.srx> . |
0 commit comments