Skip to content

Instantly share code, notes, and snippets.

@mcobzarenco
Created July 14, 2015 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcobzarenco/04cce1543cb579a2c8bb to your computer and use it in GitHub Desktop.
Save mcobzarenco/04cce1543cb579a2c8bb to your computer and use it in GitHub Desktop.
Capnp for a knowledge base
struct Entity {
type @0 :EntityType;
union {
id @0 :Text;
blob @1 :Text;
text @1 :List(Text);
}
}
enum EntityType {
BLOB @0;
PERSON @1;
ORGANISATION @2;
TEXT @3;
URL @4;
TIMESTAMP @5;
LOCATION @6;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment