Creating Entities
Creating entities is achieved by using the create entity
statement. The statement defines 2 key elements:
- A variable name that can be referenced when attaching the entity as an object of a property for a triple
- The Type Uri identifying the
rdf:a
of the entity
Basic Create Entity
statement
The basic create Entity
statement takes the following form.
create entity myPersonEntity as foaf:Person with
{
...
}
Inside the with block of the create entity
statement, properties can be added to the entity being created. This is done by using create property
statements. See Creating Properties for more details on creating properties.
A create entity
statement can also have a identified by
clause added. This will be used to identify and update any existing entities within the materialized graph with new properties, or create the entity with all created properties from the gfear script. See Identified By for more details on identified by
clause.