Skip to content

Instantly share code, notes, and snippets.

@sorsaffari
Last active September 25, 2018 15:34
Show Gist options
  • Save sorsaffari/430081c6172adbf5f7c431564ac40466 to your computer and use it in GitHub Desktop.
Save sorsaffari/430081c6172adbf5f7c431564ac40466 to your computer and use it in GitHub Desktop.
The schema for the phone_calls knowledge graph
define
contract sub relationship,
relates provider,
relates customer;
call sub relationship,
relates caller,
relates callee,
has started-at,
has duration;
company sub entity,
plays provider,
has name;
person sub entity,
plays customer,
plays caller,
plays callee,
has first-name,
has last-name,
has phone-number,
has city,
has age,
has is-customer;
name sub attribute datatype string;
started-at sub attribute datatype date;
duration sub attribute datatype long;
first-name sub attribute datatype string;
last-name sub attribute datatype string;
phone-number sub attribute datatype string;
city sub attribute datatype string;
age sub attribute datatype long;
is-customer sub attribute datatype boolean;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment