//default dataset :(
}
@Test
public void testFieldQueryRangeConstraints() throws IOException, JSONException {
FieldQueryTestCase test = new FieldQueryTestCase(
"{ "+
"'selected': ["+
"'http:\\/\\/www.w3.org\\/2000\\/01\\/rdf-schema#label',"+
"'http:\\/\\/www.w3.org\\/1999\\/02\\/22-rdf-syntax-ns#type',"+
"'http:\\/\\/dbpedia.org\\/ontology\\/birthDate',"+
"'http:\\/\\/dbpedia.org\\/ontology\\/deathDate'],"+
"'offset': '0',"+
"'limit': '5',"+
"'constraints': [{ "+
"'type': 'range', "+
"'field': 'http:\\/\\/dbpedia.org\\/ontology\\/birthDate', "+
"'lowerBound': '1946-07-01T00:00:00.000Z',"+
"'upperBound': '1946-08-31T23:59:59.999Z',"+
"'inclusive': true,"+
"'datatype': 'xsd:dateTime'"+
"},{ "+
"'type': 'reference', "+
"'field': 'http:\\/\\/www.w3.org\\/1999\\/02\\/22-rdf-syntax-ns#type', "+
"'value': 'http:\\/\\/dbpedia.org\\/ontology\\/MusicalArtist', "+
"}]"+
"}",
Arrays.asList( //list of expected results (3/5 found)
"http://dbpedia.org/resource/Linda_Ronstadt",
"http://dbpedia.org/resource/Barry_Gibb",
"http://dbpedia.org/resource/Jimmy_Webb"),
Arrays.asList( //list of required fields for results
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
"http://www.w3.org/2000/01/rdf-schema#label",
"http://dbpedia.org/ontology/birthDate"));
//now execute the test
executeQuery(test);
//cities with more than 3 million inhabitants and an altitude over
//1000 meter
test = new FieldQueryTestCase(
"{"+
"'selected': ["+
"'http:\\/\\/www.w3.org\\/2000\\/01\\/rdf-schema#label',"+
"'http:\\/\\/dbpedia.org\\/ontology\\/populationTotal',"+
"'http:\\/\\/www.w3.org\\/2003\\/01\\/geo\\/wgs84_pos#alt'],"+