### Question:
SparqlQueryUtils { public static String createSparqlSelectQuery(SparqlFieldQuery query, SparqlEndpointTypeEnum endpointType) { return createSparqlSelectQuery(query, true, -1, endpointType); } private  SparqlQueryUtils(); static String createSparqlConstructQuery(SparqlFieldQuery query,
                                                    SparqlEndpointTypeEnum endpointType,
                                                    String... additionalFields); static String createSparqlConstructQuery(SparqlFieldQuery query,
                                                    int limit,
                                                    SparqlEndpointTypeEnum endpointType,
                                                    String... additionalFields); static String createSparqlSelectQuery(SparqlFieldQuery query, SparqlEndpointTypeEnum endpointType); static String createSparqlSelectQuery(SparqlFieldQuery query,
                                                 int limit,
                                                 SparqlEndpointTypeEnum endpointType); static String createSparqlSelectQuery(SparqlFieldQuery query,
                                                 boolean includeFields,
                                                 SparqlEndpointTypeEnum endpointType); static String createSparqlSelectQuery(SparqlFieldQuery query,
                                                 boolean includeFields,
                                                 int limit,
                                                 SparqlEndpointTypeEnum endpointType); static String guessXsdType(Class<?> javaClass); static void main(String[] args);  }### Answer:
@Test public void testMultiWordTextConstraints(){ SparqlFieldQuery query = SparqlFieldQueryFactory.getInstance().createFieldQuery(); query.setConstraint("urn:field4", new TextConstraint(Arrays.asList("Global","Toy"), PatternType.none, false, "en", null)); String queryString = SparqlQueryUtils.createSparqlSelectQuery(query, true, 0, SparqlEndpointTypeEnum.Standard); Assert.assertTrue(queryString.contains("regex(str(?tmp1),\"\\\\bGlobal\\\\b\",\"i\") " + "|| regex(str(?tmp1),\"\\\\bToy\\\\b\",\"i\")")); query = SparqlFieldQueryFactory.getInstance().createFieldQuery(); query.setConstraint("urn:field4", new TextConstraint(Arrays.asList("Glo?al","Toy"), PatternType.wildcard, false, "en", null)); queryString = SparqlQueryUtils.createSparqlSelectQuery(query, true, 0, SparqlEndpointTypeEnum.Standard); Assert.assertTrue(queryString.contains("regex(str(?tmp1),\"\\\\bGlo.al\\\\b\",\"i\") " + "|| regex(str(?tmp1),\"\\\\bToy\\\\b\",\"i\")")); }