(triples string)
| 137 | } |
| 138 | |
| 139 | func deleteTriplesInCluster(triples string) { |
| 140 | txn := client.NewTxn() |
| 141 | ctx := context.Background() |
| 142 | defer func() { _ = txn.Discard(ctx) }() |
| 143 | |
| 144 | _, err := txn.Mutate(ctx, &api.Mutation{ |
| 145 | DelNquads: []byte(triples), |
| 146 | CommitNow: true, |
| 147 | }) |
| 148 | if err != nil { |
| 149 | panic(fmt.Sprintf("Could not delete triples. Got error %v", err.Error())) |
| 150 | } |
| 151 | } |
| 152 | func updateVector(t *testing.T, triple string, pred string) []float32 { |
| 153 | uid := strings.Split(triple, " ")[0] |
| 154 | randomVec := generateRandomVector(10) |
no test coverage detected
searching dependent graphs…