countQueryResults("select * where { ?S ?P ?O }")); countQueryResults("select * where { ex:Painter rdf:type rdfs:Class }")); countQueryResults("select * where { ex:picasso rdf:type ex:Painter}")); countQueryResults("select * where {ex:Painter ex:paints ex:Painting}")); countQueryResults("select * where {ex:picasso ex:creates ex:guernica}")); countQueryResults("select * where {ex:picasso ?P ?O}")); countQueryResults("select * where {ex:picasso ex:paints ?O}")); countQueryResults("select * where {?S rdf:type ?O}")); countQueryResults("select * where {?S ?P rdfs:Class}")); countQueryResults("select * where {?S ?P rdf:type}"));
/** * Modified to test SPARQL instead of Serql. */ @Override public void testEmptyRepository() throws Exception { // repository should be empty assertEquals("Empty repository should not return any statements", 0, countAllElements()); assertEquals("Named context should be empty", 0, countContext1Elements()); assertEquals("Empty repository should not return any context identifiers", 0, countElements(con.getContextIDs())); assertEquals("Empty repository should not return any query results", 0, countQueryResults("select * where { ?S ?P ?O }")); }
countQueryResults("select * where { ?S ?P ?O }")); countQueryResults("select * where { ex:Painter rdf:type rdfs:Class }")); countQueryResults("select * where { ex:picasso rdf:type ex:Painter}")); countQueryResults("select * where {ex:Painter ex:paints ex:Painting}")); countQueryResults("select * where {ex:picasso ex:creates ex:guernica}")); countQueryResults("select * where {ex:picasso ?P ?O}")); countQueryResults("select * where {ex:picasso ex:paints ?O}")); countQueryResults("select * where {?S rdf:type ?O}")); countQueryResults("select * where {?S ?P rdfs:Class}")); countQueryResults("select * where {?S ?P rdf:type}"));
/** * Modified to test SPARQL instead of Serql. */ @Override public void testEmptyRepository() throws Exception { // repository should be empty assertEquals("Empty repository should not return any statements", 0, countAllElements()); assertEquals("Named context should be empty", 0, countContext1Elements()); assertEquals("Empty repository should not return any context identifiers", 0, countElements(con.getContextIDs())); assertEquals("Empty repository should not return any query results", 0, countQueryResults("select * where { ?S ?P ?O }")); }
countQueryResults("select * where {ex:Painting rdf:type rdfs:Class}"));
countQueryResults("select * where {ex:Painting rdf:type rdfs:Class}"));