Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

loc-id-schema.sql 971 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  1. CREATE SCHEMA IF NOT EXISTS locid;
  2. -- We cannot run more than 1 simulatneous import into this schema.
  3. -- For efficiency, the importer will dump tables and bulk-reload them.
  4. --- Nodes
  5. DROP TABLE IF EXISTS locid.nodes;
  6. CREATE TABLE locid.nodes (
  7. node_id UUID PRIMARY KEY,
  8. node_iri VARCHAR NOT NULL
  9. );
  10. --- Literals
  11. DROP TABLE IF EXISTS locid.literals;
  12. CREATE TABLE locid.literals (
  13. lit_id UUID NOT NULL,
  14. lit_value TEXT NOT NULL
  15. );
  16. --- Authority record triples
  17. DROP TABLE IF EXISTS locid.auth_triple;
  18. CREATE TABLE locid.auth_triple (
  19. subject_id UUID NOT NULL, -- REFERENCES nodes
  20. pred_id UUID NOT NULL, -- REFERENCES nodes
  21. object_id UUID NOT NULL -- either a node or a literal
  22. );
  23. --- BIBRAME work triples
  24. DROP TABLE IF EXISTS locid.work_triple;
  25. CREATE TABLE locid.work_triple (
  26. subject_id BIGINT NOT NULL, -- REFERENCES nodes
  27. pred_id BIGINT NOT NULL, -- REFERENCES nodes
  28. object_id BIGINT NOT NULL -- either a node or a literal
  29. );
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...