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 865 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
  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. CREATE TABLE locid.nodes (
  6. node_id BIGINT NOT NULL, -- always positive
  7. node_iri VARCHAR NOT NULL
  8. );
  9. --- Literals
  10. CREATE TABLE locid.literals (
  11. lit_id BIGINT NOT NULL, -- always negative
  12. lit_value TEXT NOT NULL
  13. );
  14. --- Authority record triples
  15. CREATE TABLE locid.auth_triple (
  16. subject_id BIGINT NOT NULL, -- REFERENCES nodes
  17. pred_id BIGINT NOT NULL, -- REFERENCES nodes
  18. object_id BIGINT NOT NULL -- either a node or a literal
  19. );
  20. --- BIBRAME work triples
  21. CREATE TABLE locid.work_triple (
  22. subject_id BIGINT NOT NULL, -- REFERENCES nodes
  23. pred_id BIGINT NOT NULL, -- REFERENCES nodes
  24. object_id BIGINT NOT NULL -- either a node or a literal
  25. );
Tip!

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

Comments

Loading...