All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.grakn.kb.internal.concept.EntityImpl Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
/*
 * 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.kb.internal.concept;

import ai.grakn.concept.Attribute;
import ai.grakn.concept.Entity;
import ai.grakn.concept.EntityType;
import ai.grakn.concept.Relationship;
import ai.grakn.kb.internal.structure.VertexElement;

/**
 * 

* An instance of Entity Type {@link EntityType} *

* *

* This represents an entity in the graph. * Entities are objects which are defined by their {@link Attribute} and their links to * other entities via {@link Relationship} *

* * @author fppt */ public class EntityImpl extends ThingImpl implements Entity { private EntityImpl(VertexElement vertexElement) { super(vertexElement); } private EntityImpl(VertexElement vertexElement, EntityType type) { super(vertexElement, type); } public static EntityImpl get(VertexElement vertexElement){ return new EntityImpl(vertexElement); } public static EntityImpl create(VertexElement vertexElement, EntityType type){ return new EntityImpl(vertexElement, type); } public static EntityImpl from(Entity entity){ return (EntityImpl) entity; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy