From f5bb65c9effd7297a3d1441d23dbd4913d590ce3 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Tue, 7 Jul 2020 17:34:40 +0200 Subject: [PATCH] the json schema for the dump of the results --- .../dhp/oa/graph/dump/result_schema.json | 530 ++++++++++++++++++ .../dump/resultDump/singelRecord_pub.json | 0 2 files changed, 530 insertions(+) create mode 100644 dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/dump/result_schema.json create mode 100644 dhp-workflows/dhp-graph-mapper/src/test/resources/eu/dnetlib/dhp/oa/graph/dump/resultDump/singelRecord_pub.json diff --git a/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/dump/result_schema.json b/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/dump/result_schema.json new file mode 100644 index 000000000..df8ca1d5b --- /dev/null +++ b/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/dump/result_schema.json @@ -0,0 +1,530 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "author": { + "type": "array", + "items": [ + { + "type": "object", + "properties": { + "fullname": { + "type": "string" + }, + "name": { + "type": "string" + }, + "surname": { + "type": "string" + }, + "rank": { + "type": "integer" + }, + "pid": { + "type": "array", + "items": [ + { + "type": "object", + "properties": { + "scheme": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "scheme", + "value" + ] + } + ] + }, + "affiliation": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + } + }, + "required": [ + "fullname" + ] + } + ] + }, + "type": { + "type": "string" + }, + "language": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "label": { + "type": "string" + } + }, + "required": [ + "code", + "label" + ] + }, + "country": { + "type": "array", + "items": [ + { + "type": "object", + "properties": { + "provenance": { + "type": "string" + }, + "code": { + "type": "string" + }, + "label": { + "type": "string" + } + }, + "required": [ + "provenance", + "code", + "label" + ] + } + ] + }, + "subject": { + "type": "array", + "items": [ + { + "type": "object", + "properties": { + "scheme": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "scheme", + "value" + ] + } + ] + }, + "maintitle": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "description": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + }, + "publicationdate": { + "type": "string" + }, + "publisher": { + "type": "string" + }, + "embargoenddate": { + "type": "string" + }, + "source": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + }, + "format": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + }, + "contributor": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + }, + "coverage": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + }, + "bestaccessright": { + "type": "object", + "properties": { + "scheme": { + "type": "string" + }, + "code": { + "type": "string" + }, + "label": { + "type": "string" + } + }, + "required": [ + "scheme", + "code", + "label" + ] + }, + "context": { + "type": "array", + "items": [ + { + "type": "object", + "properties": { + "provenance": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + }, + "code": { + "type": "string" + }, + "label": { + "type": "string" + } + }, + "required": [ + "provenance", + "code", + "label" + ] + } + ] + }, + "externalReference": { + "type": "array", + "items": [ + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "typology": { + "type": "string" + }, + "provenance": { + "type": "string" + }, + "trust": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "name", + "typology", + "provenance", + "trust", + "value" + ] + } + ] + }, + "instance": { + "type": "array", + "items": [ + { + "type": "object", + "properties": { + "license": { + "type": "string" + }, + "accessright": { + "type": "object", + "properties": { + "scheme": { + "type": "string" + }, + "code": { + "type": "string" + }, + "label": { + "type": "string" + } + }, + "required": [ + "scheme", + "code", + "label" + ] + }, + "type": { + "type": "string" + }, + "hostedby": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "key", + "value" + ] + }, + "url": { + "type": "array", + "items": [ + { + "type": "string" + }, + { + "type": "string" + } + ] + }, + "collectedfrom": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "key", + "value" + ] + }, + "publicationdate": { + "type": "string" + }, + "refereed": { + "type": "string" + } + }, + "required": [ + "license", + "accessright", + "type", + "hostedby", + "url", + "collectedfrom", + "publicationdate", + "refereed" + ] + } + ] + }, + "container": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "issnPrinted": { + "type": "string" + }, + "issnOnline": { + "type": "string" + }, + "issnLinking": { + "type": "string" + }, + "ep": { + "type": "string" + }, + "iss": { + "type": "string" + }, + "sp": { + "type": "string" + }, + "vol": { + "type": "string" + }, + "edition": { + "type": "string" + }, + "conferenceplace": { + "type": "string" + }, + "conferencedate": { + "type": "string" + } + }, + "required": [ + "name", + "issnPrinted", + "issnOnline", + "issnLinking", + "ep", + "iss", + "sp", + "vol", + "edition", + "conferenceplace", + "conferencedate" + ] + }, + "documentationUrl": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + }, + "codeRepositoryUrl": { + "type": "string" + }, + "programmingLanguage": { + "type": "string" + }, + "contactperson": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + }, + "contactgroup": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + }, + "tool": { + "type": "array", + "items": [ + { + "type": "string" + } + ] + }, + "size": { + "type": "string" + }, + "version": { + "type": "string" + }, + "geolocation": { + "type": "array", + "items": [ + { + "type": "object", + "properties": { + "point": { + "type": "string" + }, + "box": { + "type": "string" + } + }, + "required": [ + "point", + "box" + ] + }, + { + "type": "object", + "properties": { + "point": { + "type": "string" + }, + "box": { + "type": "string" + } + }, + "required": [ + "point", + "box" + ] + } + ] + }, + "pid": { + "type": "array", + "items": [ + { + "type": "object", + "properties": { + "scheme": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "scheme", + "value" + ] + } + ] + } + }, + "required": [ + "author", + "type", + "language", + "country", + "subject", + "maintitle", + "subtitle", + "description", + "publicationdate", + "publisher", + "embargoenddate", + "source", + "format", + "contributor", + "coverage", + "bestaccessright", + "context", + "externalReference", + "instance", + "container", + "documentationUrl", + "codeRepositoryUrl", + "programmingLanguage", + "contactperson", + "contactgroup", + "tool", + "size", + "version", + "geolocation", + "pid" + ] +} \ No newline at end of file diff --git a/dhp-workflows/dhp-graph-mapper/src/test/resources/eu/dnetlib/dhp/oa/graph/dump/resultDump/singelRecord_pub.json b/dhp-workflows/dhp-graph-mapper/src/test/resources/eu/dnetlib/dhp/oa/graph/dump/resultDump/singelRecord_pub.json new file mode 100644 index 000000000..e69de29bb