I'm defining a schema for different persons in my graph knowledge base. A person entity is of course unique in its constellation of attributes. However, suppose just theoretically that we would have two people with the same name ("John Doe") and everything else the same, age, birthplace etc. Would TypeDB treat them as the same person if I do not insert a person-id? I'm trying to understand how TypeDB is differentiating the different entities in its data structure. If for example the two people who just be different in one single attribute, would then TypeDB have two different instances of the John Doe?
Does an entity in TypeDB (formerly Grakn) need always a unique identifier?
185 Views Asked by Linda At
1
There are 1 best solutions below
Related Questions in SCHEMA
- Elasticsearch schema for multiple versions of the same text
- SQL Schema recommendations
- How does an LDAP Client eg Apache Directory Studio get schema from an LDAP Server?
- Looping functoid, Mapping
- No Synchronize Model with Database in Mysql Workbench
- XML Namespace URI with HTTPS?
- sqlite schema has quotes around table name after a table rename
- Group many postgresql databases into separate schemas into same database
- MongoDB: updating an array in array
- How to open an android application from browser
- Error when using JAXB to create JAva classes from XSD
- MongoDB data modeling issue
- Solr 5.1.0: How to set the unique key via Schema API
- Compare Array with Collection-Array containing Objects
- Updating MySQL database schema on update
Related Questions in ENTITIES
- Return more that one entity in RESTful response?
- JPA: many-to-many relationship with @JoinTable having the same column for each side of relationship
- Dependencies in forms Symfony2
- Search all entities Symfony2
- Doctrine2 Lazy Loading
- LINQ2SQL: How to modify fields values when loading anonymous entities?
- JPQL Query a list of Strings inside an Entity
- ManyToOne in a twig template
- Bulk updates using linq entities
- Is it correct to escape "&", ">" and "<" with &, > and < in XML?
- EJB 3.0 entities as interfaces or abstract classes?
- Symfony2 Entities with extended Repository classes
- Symfony 2 : doctrine entities not updated
- Editable Grid Stopped Working for MS Dynamics CRM 2011
- Symfony 2 File Organization
Related Questions in VATICLE-TYPEDB
- Finding All Resources In Grakn
- Failing to start grakn
- Can't install Grakn Python client: ERROR: Command errored out with exit status 1
- Grakn Error; trying to load schema for "phone calls" example
- how to import data online to Grakn
- Grakn Install: Java version unsupported
- Method to export Incidence Matrix from Grakn?
- Manually limiting Graql query results iterator
- Are there any complex application examples in Grakn & Graql?
- How best to batch insert queries in Grakn?
- Unable to create connection to Grakn instance
- How to get all the keyspaces in Grakn?
- How to clone a Grakn keysapce
- Recursive query in GRAQL?
- NullPointerException on loading data into Grakn
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You would get two instances of John Doe. It's pretty-easy to verify; each entity in TypeDB has an internal identifier (called an iid). If you open console and execute this insert statement (assuming a compatible schema) twice you'll get back two entities with different iids:
insert $p isa person, has first_name "John";Result: