Skip to content

Commit

Permalink
Update schema with DataCite tables (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Jun 21, 2024
1 parent 7eb6ec3 commit 3de6f55
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/update-schema
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e

for format in svg pdf ; do
# Create individual schema diagrams
for schema in crossref orcid ror uspto pubmed ; do
for schema in crossref orcid ror uspto pubmed datacite ; do
(
cat docs/schema/schema-head.dot docs/schema/$schema.dot
bin/a3k list-source-schema $schema | bin/schema2dot.sed
Expand All @@ -27,7 +27,7 @@ for format in svg pdf ; do

# Create combined schema diagram
(
( cd docs/schema ; cat schema-head.dot crossref.dot orcid.dot ror.dot uspto.dot pubmed.dot other.dot )
( cd docs/schema ; cat schema-head.dot crossref.dot orcid.dot ror.dot uspto.dot pubmed.dot datacite.dot other.dot )
( bin/a3k list-source-schema ; bin/a3k list-process-schema ) |
bin/schema2dot.sed
) | dot -T$format -o docs/schema/all.$format
Expand Down
18 changes: 18 additions & 0 deletions docs/schema/datacite.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
node [fillcolor="#00b0e1", fontcolor="#000000"];
dc_works;
dc_work_geo_locations;
dc_work_funding_references;
dc_work_titles;
dc_creator_name_identifiers;
dc_work_contributors;
dc_work_sizes;
dc_work_subjects;
dc_work_descriptions;
dc_contributor_name_identifiers;
dc_work_formats;
dc_work_related_identifiers;
dc_work_dates;
dc_work_rights;
dc_contributor_affiliations;
dc_work_creators;
dc_creator_affiliations;
8 changes: 6 additions & 2 deletions docs/schema/other.dot
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
"PubMed tables" [shape=box, margin="0.11,0.055"];
pubmed_articles;

node [fillcolor="#00b0e1", fontcolor="#000000"];
"DataCite tables" [shape=box, margin="0.11,0.055"];
dc_works;

// Shape schema tables
node [shape=plaintext, margin=0];

Expand All @@ -54,7 +58,7 @@
"DOAJ table" [shape=box, margin="0.11,0.055"];
open_access_journals;

node [fillcolor="#3db1c8", fontcolor="#000000"];
node [fillcolor="#dfa60c", fontcolor="#000000"];
"Additional Crossref tables" [shape=box, margin="0.11,0.055"];
works -> open_access_journals;
work_funders -> funder_names;
Expand All @@ -75,4 +79,4 @@
pubmed_articles -> works [taillabel="0…1" headlabel="0…1"];

edge [style="invis"];
{ rank = source; "Main Crossref tables" -> "Additional Crossref tables" -> "DOAJ table" -> "ROR tables" -> "ORCID tables" -> "USPTO tables" -> "PubMed tables" -> "Alexandria3k tables"; }
{ rank = source; "Main Crossref tables" -> "Additional Crossref tables" -> "DOAJ table" -> "ROR tables" -> "ORCID tables" -> "USPTO tables" -> "PubMed tables" -> "DataCite tables" ->"Alexandria3k tables"; }

0 comments on commit 3de6f55

Please sign in to comment.