diff --git a/bin/update-schema b/bin/update-schema index 8a22452..ad1edba 100755 --- a/bin/update-schema +++ b/bin/update-schema @@ -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 @@ -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 diff --git a/docs/schema/datacite.dot b/docs/schema/datacite.dot new file mode 100644 index 0000000..0344295 --- /dev/null +++ b/docs/schema/datacite.dot @@ -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; diff --git a/docs/schema/other.dot b/docs/schema/other.dot index 86273c0..5630848 100644 --- a/docs/schema/other.dot +++ b/docs/schema/other.dot @@ -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]; @@ -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; @@ -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"; }