/** * 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 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); }
/** * Get everything matching an access path description. */ public void test_GET_accessPath_delete_all() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long result = countResults(doGetWithAccessPath(// // requestPath,// null,// s null,// p null )); assertEquals(7, result); }
/** * 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); }
/** * Get everything with a specific subject. */ public void test_GET_accessPath_delete_s() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long result = countResults(doGetWithAccessPath(// // requestPath,// new URIImpl("http://www.bigdata.com/Mike"),// s null,// p null )); assertEquals(3, result); }
/** * Get everything with a specific predicate and object (a Literal). */ public void test_GET_accessPath_delete_p_o_Literal() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long result = countResults(doGetWithAccessPath(// // requestPath,// null,// s RDFS.LABEL,// p new LiteralImpl("Bryan")// o )); assertEquals(1, result); }
/** * Get everything with a specific predicate. */ public void test_GET_accessPath_delete_p() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long result = countResults(doGetWithAccessPath(// // requestPath,// null,// s new URIImpl("http://www.w3.org/2000/01/rdf-schema#label"),// p null// o )); assertEquals(2, result); }
/** * 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 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 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 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); }
/** * Get everything matching an access path description. */ public void test_GET_accessPath_delete_all() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long result = countResults(doGetWithAccessPath(// // requestPath,// null,// s null,// p null )); assertEquals(7, result); }
/** * Get everything with a specific predicate and object (a Literal). */ public void test_GET_accessPath_delete_p_o_Literal() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long result = countResults(doGetWithAccessPath(// // requestPath,// null,// s RDFS.LABEL,// p new LiteralImpl("Bryan")// o )); assertEquals(1, result); }
/** * Get using an access path which does not match anything. */ public void test_GET_accessPath_delete_NothingMatched() throws Exception { doInsertbyURL("POST", packagePath + "test_delete_by_access_path.ttl"); final long result = countResults(doGetWithAccessPath(// // requestPath,// null,// s null,// p new URIImpl("http://xmlns.com/foaf/0.1/XXX")// o )); assertEquals(0, result); }