dharmjit
(Dharmjit Singh)
August 7, 2020, 2:16pm
1
Hi Team,
I am just figuring out the best way to populate data into Dgraph for integration testing(mainly queries). To represent data in rdf or json feels messy once the number of Predicates(relations) increases. I also tried csv, then again there is this code to transform it into NQuad before loading and this code also needs maintenance if there are some changes to schema etc. Any suggestions on this will be much appreciated.
Thanks
Neeraj
(Neeraj Battan)
August 9, 2020, 1:46pm
2
Hey @dharmjit ,
You can check this file to see how we’re populating the data for integration testing.
/*
* Copyright 2017-2018 Dgraph Labs, Inc. and Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package query
import (
"context"
This file has been truncated. show original
and this file for the queries for testing.
/*
* Copyright 2018 Dgraph Labs, Inc. and Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package query
import (
"context"
This file has been truncated. show original
Let me know in case you still face any problems.