Search in sources :

Example 46 with Dataset

use of com.bakdata.conquery.models.datasets.Dataset in project conquery by bakdata.

the class FormTest method importConcepts.

private void importConcepts(StandaloneSupport support) throws JSONException, IOException {
    Dataset dataset = support.getDataset();
    List<Concept<?>> concepts = parseSubTreeList(support, rawConcepts, Concept.class, c -> c.setDataset(support.getDataset()));
    for (Concept<?> concept : concepts) {
        support.getDatasetsProcessor().addConcept(dataset, concept);
    }
}
Also used : Concept(com.bakdata.conquery.models.datasets.concepts.Concept) Dataset(com.bakdata.conquery.models.datasets.Dataset)

Aggregations

Dataset (com.bakdata.conquery.models.datasets.Dataset)46 MetaStorage (com.bakdata.conquery.io.storage.MetaStorage)14 CentralRegistry (com.bakdata.conquery.models.identifiable.CentralRegistry)12 Test (org.junit.jupiter.api.Test)12 Slf4j (lombok.extern.slf4j.Slf4j)10 Table (com.bakdata.conquery.models.datasets.Table)9 Namespace (com.bakdata.conquery.models.worker.Namespace)9 Query (com.bakdata.conquery.apiv1.query.Query)8 User (com.bakdata.conquery.models.auth.entities.User)8 IdMapSerialisationTest (com.bakdata.conquery.models.identifiable.IdMapSerialisationTest)8 StandaloneSupport (com.bakdata.conquery.util.support.StandaloneSupport)8 Response (javax.ws.rs.core.Response)8 QueryTest (com.bakdata.conquery.integration.json.QueryTest)7 TreeConcept (com.bakdata.conquery.models.datasets.concepts.tree.TreeConcept)7 ManagedQuery (com.bakdata.conquery.models.query.ManagedQuery)7 List (java.util.List)7 LoadingUtil (com.bakdata.conquery.integration.common.LoadingUtil)6 Role (com.bakdata.conquery.models.auth.entities.Role)6 ExecutionState (com.bakdata.conquery.models.execution.ExecutionState)6 DatasetId (com.bakdata.conquery.models.identifiable.ids.specific.DatasetId)6