Skip to content

Commit 99cf5e2

Browse files
committed
Add unit test for issue #771
- add documentation to example Signed-off-by:Jacek Grzebyta <grzebyta.dev@gmail.com>
1 parent 3d6cac9 commit 99cf5e2

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

testsuites/lucene/src/main/java/org/eclipse/rdf4j/sail/lucene/AbstractLuceneSailSpinTest.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,19 @@ public void testDistanceFunction()
290290
}
291291

292292
/**
293-
* Complex query: <code>
294-
*
295-
* </code>
293+
* Example for issue #771. Complex query: <br\> <code>
294+
* prefix t: <urn:test.org/onto#>
295+
* sb.append("prefix kw: <urn:test.org/key-words/>
296+
*
297+
* select ?term_string ?sub ?score where {
298+
* ?pred_map rdfs:label "keyWord" ;
299+
* t:column ?pred .
300+
* [] ?pred ?term .
301+
* bind(str(?term) as ?term_string) .
302+
* (?term_string search:allMaches search:score) search:search (?sub ?score) .
303+
* ?sub a t:Data .
304+
* }
305+
* </code>
296306
*
297307
* @throws Exception
298308
*/

0 commit comments

Comments
 (0)