/** * Delete everything matching an access path description. */ public void test_DELETE_accessPath_delete_all() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p null ); assertEquals(7, mutationResult); }
/** * Delete everything with a specific object (a Literal). */ public void test_DELETE_accessPath_delete_o_Literal() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p new URIImpl("http://www.bigdata.com/Bryan")// o ); assertEquals(1, mutationResult); }
/** * Delete everything with a specific predicate and object (a Literal). */ public void test_DELETE_accessPath_delete_p_o_Literal() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s RDFS.LABEL,// p new LiteralImpl("Bryan")// o ); assertEquals(1, mutationResult); }
/** * Delete everything with a specific object (a URI). */ public void test_DELETE_accessPath_delete_o_URI() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p new URIImpl("http://xmlns.com/foaf/0.1/Person")// o ); assertEquals(3, mutationResult); }
/** * Delete everything with a specific subject. */ public void test_DELETE_accessPath_delete_s() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// new URIImpl("http://www.bigdata.com/Mike"),// s null,// p null ); assertEquals(3, mutationResult); }
/** * Delete everything with a specific predicate. */ public void test_DELETE_accessPath_delete_p() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s new URIImpl("http://www.w3.org/2000/01/rdf-schema#label"),// p null// o ); assertEquals(2, mutationResult); }
/** * Delete everything with a specific predicate and object (a URI). */ public void test_DELETE_accessPath_delete_p_o_URI() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s RDF.TYPE,// p new URIImpl("http://xmlns.com/foaf/0.1/Person")// o ); assertEquals(3, mutationResult); }
/** * Delete using an access path which does not match anything. */ public void test_DELETE_accessPath_delete_NothingMatched() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p new URIImpl("http://xmlns.com/foaf/0.1/XXX")// o ); assertEquals(0, mutationResult); }
/** * Delete everything in a named graph (context). */ public void test_DELETE_accessPath_delete_c() throws Exception { if(TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_delete_by_access_path.trig"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p null,// o new URIImpl("http://www.bigdata.com/") // c ); assertEquals(3, mutationResult); }
/** * Delete everything in a different named graph (context). */ public void test_DELETE_accessPath_delete_c1() throws Exception { if(TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_delete_by_access_path.trig"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p null,// o new URIImpl("http://www.bigdata.com/c1") // c ); assertEquals(2, mutationResult); }
/** * Delete everything matching an access path description. */ public void test_DELETE_accessPath_delete_all() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p null ); assertEquals(7, mutationResult); }
/** * Delete everything with a specific predicate. */ public void test_DELETE_accessPath_delete_p() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s new URIImpl("http://www.w3.org/2000/01/rdf-schema#label"),// p null// o ); assertEquals(2, mutationResult); }
/** * Delete everything with a specific object (a URI). */ public void test_DELETE_accessPath_delete_o_URI() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p new URIImpl("http://xmlns.com/foaf/0.1/Person")// o ); assertEquals(3, mutationResult); }
/** * Delete everything with a specific predicate and object (a Literal). */ public void test_DELETE_accessPath_delete_p_o_Literal() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s RDFS.LABEL,// p new LiteralImpl("Bryan")// o ); assertEquals(1, mutationResult); }
/** * Delete using an access path which does not match anything. */ public void test_DELETE_accessPath_delete_NothingMatched() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p new URIImpl("http://xmlns.com/foaf/0.1/XXX")// o ); assertEquals(0, mutationResult); }
/** * Delete everything with a specific subject. */ public void test_DELETE_accessPath_delete_s() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// new URIImpl("http://www.bigdata.com/Mike"),// s null,// p null ); assertEquals(3, mutationResult); }
/** * Delete everything with a specific object (a Literal). */ public void test_DELETE_accessPath_delete_o_Literal() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p new URIImpl("http://www.bigdata.com/Bryan")// o ); assertEquals(1, mutationResult); }
/** * Delete everything with a specific predicate and object (a URI). */ public void test_DELETE_accessPath_delete_p_o_URI() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s RDF.TYPE,// p new URIImpl("http://xmlns.com/foaf/0.1/Person")// o ); assertEquals(3, mutationResult); }
/** * Delete everything in a named graph (context). */ public void test_DELETE_accessPath_delete_c() throws Exception { if(TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_delete_by_access_path.trig"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p null,// o new URIImpl("http://www.bigdata.com/") // c ); assertEquals(3, mutationResult); }
/** * Delete using an access path with the context position bound. */ public void test_DELETE_accessPath_delete_c_nothingMatched() throws Exception { if(TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_delete_by_access_path.trig"); final long mutationResult = doDeleteWithAccessPath(// // requestPath,// null,// s null,// p null,// o new URIImpl("http://xmlns.com/foaf/0.1/XXX") // c ); assertEquals(0, mutationResult); }