ai.grakn.graql.admin.InsertQueryAdmin Maven / Gradle / Ivy
/*
* GRAKN.AI - THE KNOWLEDGE GRAPH
* Copyright (C) 2018 Grakn Labs Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package ai.grakn.graql.admin;
import ai.grakn.concept.SchemaConcept;
import ai.grakn.graql.InsertQuery;
import ai.grakn.graql.Match;
import javax.annotation.CheckReturnValue;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Set;
/**
* Admin class for inspecting and manipulating an InsertQuery
*
* @author Grakn Warriors
*/
public interface InsertQueryAdmin extends InsertQuery {
/**
* @return the {@link Match} that this insert query is using, if it was provided one
*/
@Nullable
@CheckReturnValue
Match match();
/**
* @return all concept types referred to explicitly in the query
*/
@CheckReturnValue
Set getSchemaConcepts();
/**
* @return the variables to insert in the insert query
*/
@CheckReturnValue
Collection varPatterns();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy