diff --git a/app/graphql/lupo_schema.rb b/app/graphql/lupo_schema.rb index 0be676f59..cc20f34ef 100644 --- a/app/graphql/lupo_schema.rb +++ b/app/graphql/lupo_schema.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true class LupoSchema < GraphQL::Schema - default_max_page_size 100 - max_depth 5 + default_max_page_size 250 + max_depth 10 # mutation(Types::MutationType) query(QueryType) diff --git a/app/graphql/types/dataset_connection_with_meta_type.rb b/app/graphql/types/dataset_connection_with_meta_type.rb new file mode 100644 index 000000000..983581ce6 --- /dev/null +++ b/app/graphql/types/dataset_connection_with_meta_type.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class DatasetConnectionWithMetaType < GraphQL::Types::Relay::BaseConnection + edge_type(EventEdgeType, edge_class: EventEdge) + # edge_type(EventEdgeType) + # field :total_count, Integer, null: false + + # def total_count + # args = object.arguments + + # 1 + # end +end diff --git a/app/graphql/types/event_edge.rb b/app/graphql/types/event_edge.rb new file mode 100644 index 000000000..51628a600 --- /dev/null +++ b/app/graphql/types/event_edge.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +class EventEdge < GraphQL::Relay::Edge + def event + logger = Logger.new(STDOUT) + + @event ||= begin + Event.query(nil, subj_id: self.node[:id], obj_id: self.parent[:id])[:data].first + end + end + + def source + event[:source_id].underscore.camelcase(:lower) + end + + def relation_type + event[:relation_type_id].underscore.camelcase(:lower) + end + + def total + event[:total] + end +end diff --git a/app/graphql/types/event_edge_type.rb b/app/graphql/types/event_edge_type.rb new file mode 100644 index 000000000..b682e8582 --- /dev/null +++ b/app/graphql/types/event_edge_type.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class EventEdgeType < GraphQL::Types::Relay::BaseEdge + node_type(DatasetType) + + field :source, String, null: false, description: "Source for this event" + field :relation_type, String, null: false, description: "Relation type for this event" + field :total, Integer, null: false, description: "Total count for this event" +end diff --git a/app/graphql/types/funder_connection_with_meta_type.rb b/app/graphql/types/funder_connection_with_meta_type.rb new file mode 100644 index 000000000..8e1692f08 --- /dev/null +++ b/app/graphql/types/funder_connection_with_meta_type.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class FunderConnectionWithMetaType < GraphQL::Types::Relay::BaseConnection + edge_type(FunderEdgeType) + + field :total_count, Integer, null: false + + def total_count + args = object.arguments + + Funder.query(args[:query], limit: 0).dig(:meta, "total").to_i + end +end diff --git a/app/graphql/types/funder_edge_type.rb b/app/graphql/types/funder_edge_type.rb new file mode 100644 index 000000000..b0846c00c --- /dev/null +++ b/app/graphql/types/funder_edge_type.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +class FunderEdgeType < GraphQL::Types::Relay::BaseEdge + node_type(FunderType) +end diff --git a/app/graphql/types/funder_type.rb b/app/graphql/types/funder_type.rb index 279af8131..c8fa8ee4f 100644 --- a/app/graphql/types/funder_type.rb +++ b/app/graphql/types/funder_type.rb @@ -8,4 +8,33 @@ class FunderType < BaseObject field :alternate_name, [String], null: true, description: "Alternate funder names" field :country, String, null: true, description: "Country where funder is located" field :date_modified, String, null: false, description: "Date information was last updated" + field :datasets, DatasetConnectionWithMetaType, null: false, description: "Funded datasets", connection: true, max_page_size: 100 do + argument :first, Int, required: false, default_value: 25 + end + + field :publications, [PublicationType], null: false, description: "Funded publications" do + argument :query, String, required: false + argument :first, Int, required: false, default_value: 25 + end + + def datasets(**args) + ids = Event.query(nil, obj_id: object[:id], citation_type: "Dataset-Funder").fetch(:data, []).map do |e| + doi_from_url(e[:subj_id]) + end.join(",") + Doi.find_by_ids(ids, page: { number: 1, size: args[:first] }).to_a + end + + def publications(**args) + ids = Event.query(nil, obj_id: object[:id], citation_type: "Funder-ScholarlyArticle").fetch(:data, []).map do |e| + doi_from_url(e[:subj_id]) + end.join(",") + Doi.find_by_ids(ids, page: { number: 1, size: args[:first] }).to_a + end + + def doi_from_url(url) + if /\A(?:(http|https):\/\/(dx\.)?(doi.org|handle.test.datacite.org)\/)?(doi:)?(10\.\d{4,5}\/.+)\z/.match?(url) + uri = Addressable::URI.parse(url) + uri.path.gsub(/^\//, "").downcase + end + end end diff --git a/app/models/event.rb b/app/models/event.rb index ce8cfb31b..8db685253 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -27,8 +27,11 @@ def self.query(query, options={}) url = "https://api.datacite.org/events?page[size]=#{size}" url += "&relation-type-id=#{options[:relation_type_id]}" if options[:relation_type_id].present? url += "&source-id=#{options[:source_id]}" if options[:source_id].present? + url += "&citation-type=#{options[:citation_type]}" if options[:citation_type].present? url += "&doi=#{doi}" if doi.present? - + url += "&subj-id=#{options[:subj_id]}" if options[:subj_id].present? + url += "&obj-id=#{options[:obj_id]}" if options[:obj_id].present? + response = Maremma.get(url, accept: "application/vnd.api+json; version=2") if response.status == 200 diff --git a/app/models/funder.rb b/app/models/funder.rb index 97fc6c5ce..901a963a9 100644 --- a/app/models/funder.rb +++ b/app/models/funder.rb @@ -12,7 +12,11 @@ def self.find_by_id(id) return [] if response.status != 200 message = response.body.dig("data", "message") - [parse_message(id: id, message: message)] + data = [parse_message(id: id, message: message)] + + errors = response.body.fetch("errors", nil) + + { data: data, errors: errors } end def self.query(query, options={}) @@ -27,11 +31,14 @@ def self.query(query, options={}) response = Maremma.get(url, host: true) return [] if response.status != 200 - - items = response.body.dig("data", "message", "items") - items.map do |message| + + data = response.body.dig("data", "message", "items").map do |message| parse_message(id: "https://doi.org/10.13039/#{message['id']}", message: message) end + meta = { "total" => response.body.dig("data", "message", "total-results") } + errors = response.body.fetch("errors", nil) + + { data: data, meta: meta, errors: errors } end def self.parse_message(id: nil, message: nil) diff --git a/spec/fixtures/vcr_cassettes/Event/query/citation_type.yml b/spec/fixtures/vcr_cassettes/Event/query/citation_type.yml new file mode 100644 index 000000000..09b5f94cd --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Event/query/citation_type.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: get + uri: https://api.datacite.org/events?citation-type=Dataset-Funder&page%5Bsize%5D=100 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.2.1; +https://github.com/datacite/maremma) + Accept: + - application/vnd.api+json; version=2 + response: + status: + code: 200 + message: OK + headers: + Date: + - Sun, 12 May 2019 11:37:58 GMT + Content-Type: + - application/json; charset=utf-8 + Connection: + - keep-alive + Status: + - 200 OK + X-Anonymous-Consumer: + - 'true' + Cache-Control: + - max-age=0, private, must-revalidate + Vary: + - Accept-Encoding, Origin + Etag: + - W/"eed63f336a48990aec458120f7bb0c17" + X-Runtime: + - '0.280031' + X-Request-Id: + - 806e668c-c395-463f-a603-78bc38f3ab1f + X-Powered-By: + - Phusion Passenger 6.0.2 + Server: + - nginx/1.15.8 + Phusion Passenger 6.0.2 + body: + encoding: ASCII-8BIT + string: '{"data":[{"id":"28fa7d4f-60e0-4db8-8365-b19b1b9904e9","type":"events","attributes":{"subjId":"https://doi.org/10.23725/e9sa-1y49","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-25T09:01:28.000Z","timestamp":"2019-02-25T09:01:33.395Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/e9sa-1y49","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"fac24233-cdea-4fde-81b3-105178b49315","type":"events","attributes":{"subjId":"https://doi.org/10.1594/ieda/317072","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-25T09:01:03.000Z","timestamp":"2019-02-25T09:01:33.438Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/ieda/317072","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"e7885729-1d24-4c2a-a005-2bff309a0f0b","type":"events","attributes":{"subjId":"https://doi.org/10.23725/xyj6-e522","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T20:32:37.000Z","timestamp":"2019-02-25T09:04:00.615Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/xyj6-e522","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"d0f54fbe-402e-4510-b1f0-497019516938","type":"events","attributes":{"subjId":"https://doi.org/10.23725/1m8y-m768","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T15:30:59.000Z","timestamp":"2019-02-25T09:04:00.714Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/1m8y-m768","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"232cf402-2f5a-431e-96f1-e87b1ede516b","type":"events","attributes":{"subjId":"https://doi.org/10.23725/55fw-2m37","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T20:32:02.000Z","timestamp":"2019-02-25T09:04:00.746Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/55fw-2m37","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"385b593d-19bc-490e-9a6a-38bce751f9b8","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.j3qt5pf","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T04:10:49.000Z","timestamp":"2019-02-25T09:04:00.751Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.j3qt5pf","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"86a692fe-45ff-4b77-8afd-162c6bca34da","type":"events","attributes":{"subjId":"https://doi.org/10.5518/396","objId":"https://doi.org/10.13039/501100004396","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T18:32:29.000Z","timestamp":"2019-02-25T09:04:01.207Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5518/396","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100004396","type":"objects"}}}},{"id":"d0ce4c67-a863-474a-9575-57a010fdd4ba","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2575591","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-25T07:54:48.000Z","timestamp":"2019-02-25T09:04:01.271Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2575591","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"6b9ab5cf-e701-4d4f-96ad-4078c77f0d86","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2576152","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T14:01:56.000Z","timestamp":"2019-02-25T09:04:01.476Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2576152","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"905070b3-1592-4bc7-a5ef-c5d7b712e1d0","type":"events","attributes":{"subjId":"https://doi.org/10.23725/5h1q-8v54","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T16:32:03.000Z","timestamp":"2019-02-25T09:04:01.637Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/5h1q-8v54","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"2d767e9d-44a1-4d3d-8c28-b11f2ee9483c","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2576583","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-25T07:56:16.000Z","timestamp":"2019-02-25T09:04:01.691Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2576583","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"ba19b410-4be7-4b27-a9fe-315012296358","type":"events","attributes":{"subjId":"https://doi.org/10.23725/bv2f-a858","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-25T07:02:34.000Z","timestamp":"2019-02-25T09:04:01.730Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/bv2f-a858","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"0085b92b-ea71-47c6-a735-c74c824327cb","type":"events","attributes":{"subjId":"https://doi.org/10.23725/654s-wb85","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T18:02:26.000Z","timestamp":"2019-02-25T09:04:02.142Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/654s-wb85","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"67b85184-10be-449f-ada5-084bef42d076","type":"events","attributes":{"subjId":"https://doi.org/10.1594/ieda/322214","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T19:01:27.000Z","timestamp":"2019-02-25T09:04:02.154Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/ieda/322214","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"abb94afd-7a6b-418e-bb4e-aa9d5cf53783","type":"events","attributes":{"subjId":"https://doi.org/10.23725/1r63-df60","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T19:31:17.000Z","timestamp":"2019-02-25T09:04:02.281Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/1r63-df60","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"bfd1f181-cbac-4052-bba7-80aab59e7553","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2576584","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-25T07:56:15.000Z","timestamp":"2019-02-25T09:04:02.317Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2576584","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"8e69de73-2279-491b-9d24-061228fbd6a1","type":"events","attributes":{"subjId":"https://doi.org/10.23725/b48h-r607","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T21:31:38.000Z","timestamp":"2019-02-25T09:04:02.361Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/b48h-r607","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"750c56d2-a9d2-4606-8aa5-1158fc1ab0f5","type":"events","attributes":{"subjId":"https://doi.org/10.23725/kr7r-1054","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T14:32:28.000Z","timestamp":"2019-02-25T09:04:02.371Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/kr7r-1054","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"cf6e780c-046b-4b4c-8899-a11462f5a33f","type":"events","attributes":{"subjId":"https://doi.org/10.23725/7bq1-0731","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T19:01:38.000Z","timestamp":"2019-02-25T09:04:02.414Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/7bq1-0731","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"6358821a-f6ad-45ff-b0b5-364d6ea7242f","type":"events","attributes":{"subjId":"https://doi.org/10.1594/ieda/300323","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T01:02:18.000Z","timestamp":"2019-02-25T09:04:02.435Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/ieda/300323","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"f2e260cc-dd80-4940-981a-e389036cb7b9","type":"events","attributes":{"subjId":"https://doi.org/10.1594/ieda/324376","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T14:32:18.000Z","timestamp":"2019-02-25T09:04:02.481Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/ieda/324376","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"59208d9c-1d53-4747-b6a8-629b765254d6","type":"events","attributes":{"subjId":"https://doi.org/10.23725/t9s9-w303","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T00:01:32.000Z","timestamp":"2019-02-25T09:04:02.494Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/t9s9-w303","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"241210af-c0ce-412a-b215-a7795ae68610","type":"events","attributes":{"subjId":"https://doi.org/10.23725/ma8b-5d12","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T23:00:50.000Z","timestamp":"2019-02-25T09:04:02.596Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/ma8b-5d12","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"d11cb8db-b24a-4773-8e9c-911e0b2fe6e5","type":"events","attributes":{"subjId":"https://doi.org/10.23725/rq7c-yy45","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T07:02:45.000Z","timestamp":"2019-02-25T09:04:02.637Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/rq7c-yy45","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"59a738de-e8f2-4822-8d0b-57e8a264691b","type":"events","attributes":{"subjId":"https://doi.org/10.1594/ieda/312261","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:31:27.000Z","timestamp":"2019-02-25T09:04:02.661Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/ieda/312261","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"2f20cc35-e1f8-40bb-b01a-858ad552a2a4","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.269271","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:55.000Z","timestamp":"2019-02-25T09:04:02.683Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.269271","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"2eec6ae8-1ca6-425f-9167-d0bbc627c08e","type":"events","attributes":{"subjId":"https://doi.org/10.23725/ay7v-sm49","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T11:32:10.000Z","timestamp":"2019-02-25T09:04:02.801Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/ay7v-sm49","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"e28109e4-4620-4418-a3dc-d556cacf40e7","type":"events","attributes":{"subjId":"https://doi.org/10.23725/w1p2-w170","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T17:01:14.000Z","timestamp":"2019-02-25T09:04:02.839Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/w1p2-w170","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"4638c566-7fd8-417e-a078-9935d6256560","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.1010076","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T15:55:11.000Z","timestamp":"2019-02-25T09:04:02.950Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.1010076","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"a8940efa-0c67-4e28-b08b-9543a2f0d9cb","type":"events","attributes":{"subjId":"https://doi.org/10.23725/85wm-a666","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T14:02:03.000Z","timestamp":"2019-02-25T09:04:02.964Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/85wm-a666","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"2a442561-1349-4f40-a49a-9473ef5d1307","type":"events","attributes":{"subjId":"https://doi.org/10.23725/ahg4-v968","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:31:38.000Z","timestamp":"2019-02-25T09:04:03.000Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/ahg4-v968","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"4eb00358-f8ed-4b43-84ad-3e0af56a52b6","type":"events","attributes":{"subjId":"https://doi.org/10.23725/zhm3-p012","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T08:31:50.000Z","timestamp":"2019-02-25T09:04:03.026Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/zhm3-p012","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"d2bc928c-e6bd-46ae-99cf-4fefdf6800fe","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355281","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:03:09.000Z","timestamp":"2019-02-25T09:04:03.032Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355281","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"c061f3d0-9d5d-4c1b-8be0-9016c3cf8f25","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.269281","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:03:09.000Z","timestamp":"2019-02-25T09:04:03.061Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.269281","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"4c63905c-525d-428b-9766-6a4dc83d29ac","type":"events","attributes":{"subjId":"https://doi.org/10.23725/mkjp-dq41","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T04:01:49.000Z","timestamp":"2019-02-25T09:04:03.112Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/mkjp-dq41","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"801eeddf-7997-4d21-9138-9b538bf004d4","type":"events","attributes":{"subjId":"https://doi.org/10.23725/8xsk-q150","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-25T00:01:46.000Z","timestamp":"2019-02-25T09:04:03.171Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/8xsk-q150","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"6fdbce34-48e4-4aa3-90c4-15db2da254c1","type":"events","attributes":{"subjId":"https://doi.org/10.1594/ieda/500093","objId":"https://doi.org/10.13039/501100008982","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T11:02:11.000Z","timestamp":"2019-02-25T09:04:03.252Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/ieda/500093","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100008982","type":"objects"}}}},{"id":"3a47add3-8eb7-4bb0-bb24-99069b63e8d3","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.56177","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:04:22.000Z","timestamp":"2019-02-25T09:04:03.292Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.56177","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"5096986f-1416-48f9-b474-0a39195a6956","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2575405","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T18:42:08.000Z","timestamp":"2019-02-25T09:04:03.314Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2575405","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"a88e2503-7602-4fa7-b149-d02c0f184dca","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.55784","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:04:21.000Z","timestamp":"2019-02-25T09:04:03.333Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.55784","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"b2529919-8327-42e0-aea0-c4115b42123b","type":"events","attributes":{"subjId":"https://doi.org/10.23725/f8bc-qq06","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T14:31:27.000Z","timestamp":"2019-02-25T09:04:03.398Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/f8bc-qq06","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"5d02ae16-704d-41c2-955d-9b2484433c25","type":"events","attributes":{"subjId":"https://doi.org/10.23725/5k4t-pb47","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T19:01:42.000Z","timestamp":"2019-02-25T09:04:03.483Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/5k4t-pb47","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"3a7edb7f-db32-4685-96eb-da57f923ce3f","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2550702","objId":"https://doi.org/10.13039/100004440","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T14:16:37.000Z","timestamp":"2019-02-25T09:04:03.532Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2550702","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100004440","type":"objects"}}}},{"id":"f33b799c-eede-40d1-aed9-1cf95bce1afd","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2575404","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T18:42:09.000Z","timestamp":"2019-02-25T09:04:03.543Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2575404","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"fea5cbb0-fd33-469b-b4a0-a5b30f3cdcdd","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355284","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:56.000Z","timestamp":"2019-02-25T09:04:03.546Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355284","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"a1ac5c4a-08d9-4496-ad2e-985ab5392311","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.269274","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:58.000Z","timestamp":"2019-02-25T09:04:03.625Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.269274","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"60de170f-f37e-45e8-9ff2-a4511279cea2","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.7t3d30c","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T02:52:07.000Z","timestamp":"2019-02-25T09:04:03.635Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.7t3d30c","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"02523fe2-b99f-4865-aa2a-58eb7060b575","type":"events","attributes":{"subjId":"https://doi.org/10.23725/gh6p-2336","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T22:31:29.000Z","timestamp":"2019-02-25T09:04:03.654Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/gh6p-2336","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"a8404a9b-d02f-47c0-b2f9-7abf1a4c3c96","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2575590","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-25T07:54:49.000Z","timestamp":"2019-02-25T09:04:03.661Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2575590","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"45408de0-b3e8-4081-b91d-e3facaa4948d","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2574157","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T07:50:36.000Z","timestamp":"2019-02-25T09:04:03.668Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2574157","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"0599578b-8396-4333-a12e-250384613d0e","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.269272","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:03:08.000Z","timestamp":"2019-02-25T09:04:03.750Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.269272","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"44db29a9-d95a-4bf8-b99f-4127be42d036","type":"events","attributes":{"subjId":"https://doi.org/10.23725/knsn-f707","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T20:31:29.000Z","timestamp":"2019-02-25T09:04:03.777Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/knsn-f707","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"707a953a-9cda-4dea-aed5-1bcf2282ab3f","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355290","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:03:06.000Z","timestamp":"2019-02-25T09:04:03.827Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355290","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"18577aec-a32f-46a1-a1fb-c33379389cc0","type":"events","attributes":{"subjId":"https://doi.org/10.23725/edzw-ew23","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T21:32:35.000Z","timestamp":"2019-02-25T09:04:03.855Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/edzw-ew23","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"7668b0b5-f56f-47b5-a2c1-3bf0c844c13b","type":"events","attributes":{"subjId":"https://doi.org/10.23725/yk7v-zp76","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T11:02:18.000Z","timestamp":"2019-02-25T09:04:03.955Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/yk7v-zp76","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"598cb164-01ff-4a40-b043-993704f1fa1a","type":"events","attributes":{"subjId":"https://doi.org/10.23725/rb43-6n08","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T13:01:12.000Z","timestamp":"2019-02-25T09:04:03.964Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/rb43-6n08","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"e74e57bc-8faf-4dde-a6ce-8faec507101b","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2576151","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T14:01:57.000Z","timestamp":"2019-02-25T09:04:04.111Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2576151","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"fa56ba1e-b094-4a52-bae8-6c12c01fc844","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.j17pm.1","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T03:28:13.000Z","timestamp":"2019-02-25T09:04:04.162Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.j17pm.1","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"1145b853-25ef-4e44-88d1-a24db2844fd3","type":"events","attributes":{"subjId":"https://doi.org/10.1594/ieda/317595","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-21T15:31:29.000Z","timestamp":"2019-02-25T09:04:04.179Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/ieda/317595","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"c6e8928b-b7eb-4ff4-be3d-ef849cb8cea2","type":"events","attributes":{"subjId":"https://doi.org/10.5281/zenodo.2574156","objId":"https://doi.org/10.13039/501100000780","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T07:50:37.000Z","timestamp":"2019-02-25T09:04:04.198Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5281/zenodo.2574156","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100000780","type":"objects"}}}},{"id":"7cab5b6c-7735-430c-8cf9-1d0d835c95bd","type":"events","attributes":{"subjId":"https://doi.org/10.1594/ieda/307791","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T17:31:46.000Z","timestamp":"2019-02-25T09:04:04.249Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/ieda/307791","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"837bf4b5-2924-490f-82e2-6b36f90849b1","type":"events","attributes":{"subjId":"https://doi.org/10.23725/e1aw-4h98","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T01:02:20.000Z","timestamp":"2019-02-25T09:04:04.252Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/e1aw-4h98","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"d6cb711c-5046-46b8-a0c4-a278bb3babbd","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.72222","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:03:12.000Z","timestamp":"2019-02-25T09:04:04.362Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.72222","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"87297865-cc37-432f-a390-556421f5ce6c","type":"events","attributes":{"subjId":"https://doi.org/10.23725/nwj8-pn34","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T17:31:59.000Z","timestamp":"2019-02-25T09:04:04.382Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/nwj8-pn34","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"507ead5c-74cb-48b8-9fee-86f918090c67","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.269279","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:59.000Z","timestamp":"2019-02-25T09:04:04.416Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.269279","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"5b448410-6289-49b4-b18f-a7e05944cd9f","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.269283","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:57.000Z","timestamp":"2019-02-25T09:04:04.462Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.269283","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"53e93911-d147-4a24-9162-5c418c125617","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.2rh61k0","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T03:58:40.000Z","timestamp":"2019-02-25T09:04:04.501Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.2rh61k0","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"d238ccb5-c32f-4b42-95d2-7a3e8e3234f5","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.897521","objId":"https://doi.org/10.13039/501100007601","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T07:48:42.000Z","timestamp":"2019-02-25T09:04:04.558Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.897521","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100007601","type":"objects"}}}},{"id":"3aab4152-cb11-4643-ba76-c9fbe2aa1a9a","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.50s5g5q","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T04:07:15.000Z","timestamp":"2019-02-25T09:04:04.684Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.50s5g5q","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"b32d4956-7403-4a20-b3b8-db69b7702e3e","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355283","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:59.000Z","timestamp":"2019-02-25T09:04:04.688Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355283","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"0d9a113c-91e2-4f7a-aa5e-c3bb18594f52","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355287","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:49.000Z","timestamp":"2019-02-25T09:04:04.735Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355287","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"99aecd04-ff03-4386-af41-277160b9f578","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.h5r18.1","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T03:25:57.000Z","timestamp":"2019-02-25T09:04:04.781Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.h5r18.1","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"4cb62666-136f-4962-850d-a4502fe12b9b","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.897520","objId":"https://doi.org/10.13039/501100007601","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-24T07:47:52.000Z","timestamp":"2019-02-25T09:04:04.793Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.897520","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/501100007601","type":"objects"}}}},{"id":"a1e0ce02-297b-4755-8302-f1fa5b485644","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355289","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:50.000Z","timestamp":"2019-02-25T09:04:04.837Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355289","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"2f4f1607-5d08-4e23-935a-3bb2ae41ea38","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.cb5cf20","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T03:54:43.000Z","timestamp":"2019-02-25T09:04:04.954Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.cb5cf20","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"6b43096d-7cda-4d24-95e9-1a433365f66e","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.269278","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:03:09.000Z","timestamp":"2019-02-25T09:04:05.060Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.269278","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"4476b9cc-8d5c-481a-b7b5-60d74f20b062","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.87367","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-21T03:07:58.000Z","timestamp":"2019-02-25T09:04:05.082Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.87367","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"e70d7fdc-dc30-4f17-b716-aa4a59da395a","type":"events","attributes":{"subjId":"https://doi.org/10.23725/7hky-5e37","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T13:31:48.000Z","timestamp":"2019-02-25T09:04:05.108Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/7hky-5e37","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"14d8f243-ffb3-41c5-9459-09cfef5a5a6a","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.0r76j.1","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T03:41:29.000Z","timestamp":"2019-02-25T09:04:05.111Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.0r76j.1","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"c9bd2a57-ea17-4231-acc1-61fc338b29b3","type":"events","attributes":{"subjId":"https://doi.org/10.23725/6t35-rg61","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T00:31:54.000Z","timestamp":"2019-02-25T09:04:05.126Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/6t35-rg61","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"dacaf1ab-b4c9-4abb-97c5-1f571b9e5f7a","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.269273","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:03:00.000Z","timestamp":"2019-02-25T09:04:05.130Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.269273","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"8f9773d0-c324-4bb7-a03e-b1dac06c8a2a","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355286","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:58.000Z","timestamp":"2019-02-25T09:04:05.160Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355286","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"42e516c2-a750-4254-aa0a-f8e1e2c265b7","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355288","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:56.000Z","timestamp":"2019-02-25T09:04:05.190Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355288","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"f6b16114-6988-4d5c-84bc-497d3a409a18","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355282","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:58.000Z","timestamp":"2019-02-25T09:04:05.296Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355282","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"e3fd649c-69a4-4bfa-80af-afcbaa7b7322","type":"events","attributes":{"subjId":"https://doi.org/10.23725/6d54-n998","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T08:01:37.000Z","timestamp":"2019-02-25T09:04:05.389Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/6d54-n998","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"4670fbf7-a660-44b7-98a7-ba8c4856e3c7","type":"events","attributes":{"subjId":"https://doi.org/10.23725/8nmd-8p42","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T04:31:02.000Z","timestamp":"2019-02-25T09:04:05.400Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/8nmd-8p42","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"b0fc7937-57d4-4ac0-ae28-935308853739","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.55349","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:04:21.000Z","timestamp":"2019-02-25T09:04:05.400Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.55349","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"e3b8131f-3bf8-4c51-b0b3-fa75565c096a","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355280","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:03:04.000Z","timestamp":"2019-02-25T09:04:05.407Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355280","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"e54da28c-2de2-4fb7-894c-ecbdf15e061d","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.m715hp3","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T03:46:34.000Z","timestamp":"2019-02-25T09:04:05.460Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.m715hp3","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"d93a7ef7-ddae-4bed-9320-e8d919fb6f31","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.tg706dv","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T03:35:46.000Z","timestamp":"2019-02-25T09:04:05.469Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.tg706dv","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"52da9773-432c-4b58-b9f5-6cd38c53927f","type":"events","attributes":{"subjId":"https://doi.org/10.23725/ttqf-8352","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T20:30:42.000Z","timestamp":"2019-02-25T09:04:05.535Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/ttqf-8352","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"b167bd4d-cc4d-41be-a61b-83bfa2016d11","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.np0s26r","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T03:47:06.000Z","timestamp":"2019-02-25T09:04:05.568Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.np0s26r","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"741485e5-5742-4e15-bbe6-b9779a48b3a1","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.355285","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:03:09.000Z","timestamp":"2019-02-25T09:04:05.637Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.355285","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"d70b59fe-369c-4f62-8f89-88dca5502d62","type":"events","attributes":{"subjId":"https://doi.org/10.1594/pangaea.269277","objId":"https://doi.org/10.13039/100011105","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T05:02:57.000Z","timestamp":"2019-02-25T09:04:05.672Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.1594/pangaea.269277","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100011105","type":"objects"}}}},{"id":"862f3469-d991-44ff-a8a8-8d2c9ad3745a","type":"events","attributes":{"subjId":"https://doi.org/10.23725/crft-3n59","objId":"https://doi.org/10.13039/100000050","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-23T06:32:47.000Z","timestamp":"2019-02-25T09:04:05.675Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.23725/crft-3n59","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000050","type":"objects"}}}},{"id":"432eb0f2-c85d-4ff7-84bb-1714be10957f","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.68fr52p","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T04:01:57.000Z","timestamp":"2019-02-25T09:04:05.690Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.68fr52p","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"657dc5e9-6f23-4bf7-ba98-53d121a4b6ab","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.p85q4.1","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T03:41:33.000Z","timestamp":"2019-02-25T09:04:05.767Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.p85q4.1","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"b5ab3770-f2a1-4e89-990e-8bc5f63a7b8a","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.sc35630","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T03:57:14.000Z","timestamp":"2019-02-25T09:04:05.804Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.sc35630","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"065a290f-eafd-4579-acc5-20b279a50e01","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.vd6k4b2.1","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T04:05:56.000Z","timestamp":"2019-02-25T09:04:05.861Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.vd6k4b2.1","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}},{"id":"269c2c40-8a37-43e4-a355-cac69cfcc8c8","type":"events","attributes":{"subjId":"https://doi.org/10.5061/dryad.3jn4gs8","objId":"https://doi.org/10.13039/100000001","sourceId":"datacite-funder","relationTypeId":"is-funded-by","total":1,"messageAction":"create","sourceToken":"6be0ac24-f58c-4a9f-968a-5c69a1ec0e68","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-22T04:01:42.000Z","timestamp":"2019-02-25T09:04:05.861Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.5061/dryad.3jn4gs8","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.13039/100000001","type":"objects"}}}}],"meta":{"total":27246,"totalPages":100,"page":1,"sources":[{"id":"datacite-funder","title":"DataCite + Funder Information","count":27246}],"prefixes":[{"id":"10.13039","title":"10.13039","count":27246},{"id":"10.1594","title":"10.1594","count":10522},{"id":"10.23725","title":"10.23725","count":8606},{"id":"10.5281","title":"10.5281","count":5183},{"id":"10.5061","title":"10.5061","count":894},{"id":"10.25337","title":"10.25337","count":768},{"id":"10.15125","title":"10.15125","count":330},{"id":"10.5523","title":"10.5523","count":262},{"id":"10.25491","title":"10.25491","count":154},{"id":"10.5285","title":"10.5285","count":128},{"id":"10.5518","title":"10.5518","count":117},{"id":"10.5524","title":"10.5524","count":88},{"id":"10.5880","title":"10.5880","count":83},{"id":"10.12751","title":"10.12751","count":32},{"id":"10.4121","title":"10.4121","count":20},{"id":"10.22033","title":"10.22033","count":18},{"id":"10.23637","title":"10.23637","count":14},{"id":"10.14278","title":"10.14278","count":8},{"id":"10.6092","title":"10.6092","count":7},{"id":"10.15479","title":"10.15479","count":3},{"id":"10.18167","title":"10.18167","count":2},{"id":"10.7936","title":"10.7936","count":2},{"id":"10.13127","title":"10.13127","count":1},{"id":"10.15454","title":"10.15454","count":1},{"id":"10.20387","title":"10.20387","count":1},{"id":"10.25885","title":"10.25885","count":1},{"id":"10.5442","title":"10.5442","count":1}],"citationTypes":[{"id":"Dataset-Funder","title":"Dataset-Funder","count":27246,"year-months":[{"id":"2017-10","title":"October + 2017","sum":1.0},{"id":"2017-11","title":"November 2017","sum":7.0},{"id":"2018-01","title":"January + 2018","sum":2.0},{"id":"2018-02","title":"February 2018","sum":2.0},{"id":"2018-03","title":"March + 2018","sum":936.0},{"id":"2018-04","title":"April 2018","sum":24.0},{"id":"2018-05","title":"May + 2018","sum":2070.0},{"id":"2018-06","title":"June 2018","sum":143.0},{"id":"2018-07","title":"July + 2018","sum":529.0},{"id":"2018-08","title":"August 2018","sum":292.0},{"id":"2018-09","title":"September + 2018","sum":261.0},{"id":"2018-10","title":"October 2018","sum":8718.0},{"id":"2018-11","title":"November + 2018","sum":240.0},{"id":"2018-12","title":"December 2018","sum":314.0},{"id":"2019-01","title":"January + 2019","sum":662.0},{"id":"2019-02","title":"February 2019","sum":8713.0},{"id":"2019-03","title":"March + 2019","sum":963.0},{"id":"2019-04","title":"April 2019","sum":1591.0},{"id":"2019-05","title":"May + 2019","sum":1778.0}]}],"relationTypes":[{"id":"is-funded-by","title":"is-funded-by","count":27246.0,"yearMonths":[{"id":"2017-10","title":"October + 2017","sum":1.0},{"id":"2017-11","title":"November 2017","sum":7.0},{"id":"2018-01","title":"January + 2018","sum":2.0},{"id":"2018-02","title":"February 2018","sum":2.0},{"id":"2018-03","title":"March + 2018","sum":936.0},{"id":"2018-04","title":"April 2018","sum":24.0},{"id":"2018-05","title":"May + 2018","sum":2070.0},{"id":"2018-06","title":"June 2018","sum":143.0},{"id":"2018-07","title":"July + 2018","sum":529.0},{"id":"2018-08","title":"August 2018","sum":292.0},{"id":"2018-09","title":"September + 2018","sum":261.0},{"id":"2018-10","title":"October 2018","sum":8718.0},{"id":"2018-11","title":"November + 2018","sum":240.0},{"id":"2018-12","title":"December 2018","sum":314.0},{"id":"2019-01","title":"January + 2019","sum":662.0},{"id":"2019-02","title":"February 2019","sum":8713.0},{"id":"2019-03","title":"March + 2019","sum":963.0},{"id":"2019-04","title":"April 2019","sum":1591.0},{"id":"2019-05","title":"May + 2019","sum":1778.0}]}]},"links":{"self":"https://api.datacite.org/events?citation-type=Dataset-Funder&page%5Bsize%5D=100","next":"https://api.datacite.org/events?citation_type=Dataset-Funder&page%5Bnumber%5D=2&page%5Bsize%5D=100"}}' + http_version: + recorded_at: Sun, 12 May 2019 11:37:58 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Event/query/obj_id.yml b/spec/fixtures/vcr_cassettes/Event/query/obj_id.yml new file mode 100644 index 000000000..7d107d90b --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Event/query/obj_id.yml @@ -0,0 +1,59 @@ +--- +http_interactions: +- request: + method: get + uri: https://api.datacite.org/events?obj-id=https://doi.org/10.7272/q6z60kzd&page%5Bsize%5D=100 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.2.1; +https://github.com/datacite/maremma) + Accept: + - application/vnd.api+json; version=2 + response: + status: + code: 200 + message: OK + headers: + Date: + - Sun, 12 May 2019 11:13:20 GMT + Content-Type: + - application/json; charset=utf-8 + Connection: + - keep-alive + Status: + - 200 OK + X-Anonymous-Consumer: + - 'true' + Cache-Control: + - max-age=0, private, must-revalidate + Vary: + - Accept-Encoding, Origin + Etag: + - W/"1ecf55a0a98f9a24832b0448137cb503" + X-Runtime: + - '0.065414' + X-Request-Id: + - '0382566b-041a-445e-9174-fd1d5c963385' + X-Powered-By: + - Phusion Passenger 6.0.2 + Server: + - nginx/1.15.8 + Phusion Passenger 6.0.2 + body: + encoding: ASCII-8BIT + string: '{"data":[{"id":"758199db-95c9-4216-ae7a-70b9d00425d4","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/08761bb6-f8d9-4d01-8012-fd21042fd71d","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-investigations-regular","total":58,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-05-31T00:00:00.000Z","timestamp":"2018-09-05T20:03:51.000Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/08761bb6-f8d9-4d01-8012-fd21042fd71d","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"de42c435-144d-4320-811c-bb66202dfaf3","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/08761bb6-f8d9-4d01-8012-fd21042fd71d","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-investigations-regular","total":6,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-05-31T00:00:00.000Z","timestamp":"2018-09-05T20:03:58.141Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/08761bb6-f8d9-4d01-8012-fd21042fd71d","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"0449c7e8-1ee2-48ec-b1fd-c7839b88b500","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/2018-4-Dash","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-requests-regular","total":23157,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-04-30T00:00:00.000Z","timestamp":"2018-09-05T22:00:29.445Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/2018-4-Dash","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"7ac4532e-52af-465d-a628-88a2e7165d78","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/2018-4-Dash","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-requests-regular","total":179,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-04-30T00:00:00.000Z","timestamp":"2018-09-05T22:00:35.566Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/2018-4-Dash","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"5844e1d2-edc9-43dc-9d52-d070926ecc6b","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/2018-4-Dash","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-investigations-regular","total":7,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-04-30T00:00:00.000Z","timestamp":"2018-09-05T22:00:41.215Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/2018-4-Dash","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"242f47a5-5382-41f8-8506-1b934b9d8578","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/2018-4-Dash","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-investigations-regular","total":7,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-04-30T00:00:00.000Z","timestamp":"2018-09-05T22:00:46.682Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/2018-4-Dash","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"344debf2-cde6-47a7-a11b-241e22514773","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/d4cccd37-9044-4c59-85d4-f2063ce361cd","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-investigations-regular","total":4,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-06-30T00:00:00.000Z","timestamp":"2018-09-07T14:48:13.355Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/d4cccd37-9044-4c59-85d4-f2063ce361cd","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"daba4b90-ed78-4479-93fd-b979d1008b75","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/d4cccd37-9044-4c59-85d4-f2063ce361cd","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-investigations-regular","total":3,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-06-30T00:00:00.000Z","timestamp":"2018-09-07T14:48:13.423Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/d4cccd37-9044-4c59-85d4-f2063ce361cd","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"82d5898b-019f-4fd0-b194-bfff651fc985","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/21fd2e8e-5481-4bbd-b2ef-742d8b270a66","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-requests-regular","total":23157,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-04-30T00:00:00.000Z","timestamp":"2018-09-07T14:50:02.748Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/21fd2e8e-5481-4bbd-b2ef-742d8b270a66","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"099d8a1e-4553-4653-b2be-9553e6772832","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/21fd2e8e-5481-4bbd-b2ef-742d8b270a66","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-requests-regular","total":179,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-04-30T00:00:00.000Z","timestamp":"2018-09-07T14:50:02.812Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/21fd2e8e-5481-4bbd-b2ef-742d8b270a66","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"03f5743e-089e-4163-a406-f6529e81e422","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/21fd2e8e-5481-4bbd-b2ef-742d8b270a66","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-investigations-regular","total":23164,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-04-30T00:00:00.000Z","timestamp":"2018-09-07T14:50:02.889Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/21fd2e8e-5481-4bbd-b2ef-742d8b270a66","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"b50631aa-6f06-4a80-b137-49a52166750f","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/21fd2e8e-5481-4bbd-b2ef-742d8b270a66","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-investigations-regular","total":185,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-04-30T00:00:00.000Z","timestamp":"2018-09-07T14:50:02.947Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/21fd2e8e-5481-4bbd-b2ef-742d8b270a66","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"ddf862d2-e196-4354-bc72-4ce5d0a3c154","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/0cb326d1-e3e7-4cc1-9d86-7c5f3d5ca310","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-investigations-regular","total":16,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-08-31T00:00:00.000Z","timestamp":"2018-09-07T14:52:22.718Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/0cb326d1-e3e7-4cc1-9d86-7c5f3d5ca310","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"38a4944d-37fe-4f07-a5d4-7dae84726830","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/0cb326d1-e3e7-4cc1-9d86-7c5f3d5ca310","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-investigations-regular","total":16,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2018-08-31T00:00:00.000Z","timestamp":"2018-09-07T14:52:22.786Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/0cb326d1-e3e7-4cc1-9d86-7c5f3d5ca310","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"de91d05f-99f8-413f-96c4-68a093d0ebcf","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/0c732186-e057-47d9-a5ee-a8121a26c4f9","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-investigations-regular","total":10,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-01T00:00:00.000Z","timestamp":"2019-02-27T16:20:55.490Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/0c732186-e057-47d9-a5ee-a8121a26c4f9","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"68b5403b-2151-4b67-96ab-d23332a08e1a","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/0c732186-e057-47d9-a5ee-a8121a26c4f9","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-investigations-regular","total":11,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-02-01T00:00:00.000Z","timestamp":"2019-02-27T16:20:55.527Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/0c732186-e057-47d9-a5ee-a8121a26c4f9","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"cfcad9be-5651-4ebb-b01d-5be10ab054d7","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/d47d3a5a-7a7a-495a-8db8-d6fb5bba4e5e","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-investigations-regular","total":5,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-03-01T00:00:00.000Z","timestamp":"2019-03-11T15:05:48.624Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/d47d3a5a-7a7a-495a-8db8-d6fb5bba4e5e","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"1ed26cf4-7d2a-44a7-92c5-263a5c40c9bd","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/d47d3a5a-7a7a-495a-8db8-d6fb5bba4e5e","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-investigations-regular","total":5,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-03-01T00:00:00.000Z","timestamp":"2019-03-11T15:05:52.502Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/d47d3a5a-7a7a-495a-8db8-d6fb5bba4e5e","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"2d6d4e2c-2d61-4362-8794-2c80d33b5263","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/98258e11-c29d-471d-aaf2-7d650f28029a","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-investigations-regular","total":2,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-04-01T00:00:00.000Z","timestamp":"2019-04-05T14:33:07.912Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/98258e11-c29d-471d-aaf2-7d650f28029a","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"f8f75e97-cfec-4b19-bbb9-2d2e8151d84c","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/98258e11-c29d-471d-aaf2-7d650f28029a","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-investigations-regular","total":2,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-04-01T00:00:00.000Z","timestamp":"2019-04-05T14:33:09.388Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/98258e11-c29d-471d-aaf2-7d650f28029a","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"b7e90ced-2381-46bc-9f42-25a296a60192","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/073f27b5-d38b-4301-ab73-3274ba3eb672","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"total-dataset-investigations-regular","total":2,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-05-01T00:00:00.000Z","timestamp":"2019-05-10T14:44:25.527Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/073f27b5-d38b-4301-ab73-3274ba3eb672","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}},{"id":"9487211a-c9c8-4f33-9dcb-97d8ca983ffd","type":"events","attributes":{"subjId":"https://api.datacite.org/reports/073f27b5-d38b-4301-ab73-3274ba3eb672","objId":"https://doi.org/10.7272/q6z60kzd","sourceId":"datacite-usage","relationTypeId":"unique-dataset-investigations-regular","total":2,"messageAction":"create","sourceToken":"43ba99ae-5cf0-11e8-9c2d-fa7ae01bbebc","license":"https://creativecommons.org/publicdomain/zero/1.0/","occurredAt":"2019-05-01T00:00:00.000Z","timestamp":"2019-05-10T14:44:27.929Z"},"relationships":{"subj":{"data":{"id":"https://api.datacite.org/reports/073f27b5-d38b-4301-ab73-3274ba3eb672","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.7272/q6z60kzd","type":"objects"}}}}],"meta":{"total":22,"totalPages":1,"page":1,"sources":[{"id":"datacite-usage","title":"DataCite + Usage Stats","count":22}],"prefixes":[{"id":"10.7272","title":"10.7272","count":22}],"citationTypes":[],"relationTypes":[{"id":"total-dataset-investigations-regular","title":"total-dataset-investigations-regular","count":23269.0,"yearMonths":[{"id":"2018-04","title":"April + 2018","sum":23171.0},{"id":"2018-05","title":"May 2018","sum":58.0},{"id":"2018-06","title":"June + 2018","sum":4.0},{"id":"2018-08","title":"August 2018","sum":16.0},{"id":"2019-02","title":"February + 2019","sum":11.0},{"id":"2019-03","title":"March 2019","sum":5.0},{"id":"2019-04","title":"April + 2019","sum":2.0},{"id":"2019-05","title":"May 2019","sum":2.0}]},{"id":"unique-dataset-investigations-regular","title":"unique-dataset-investigations-regular","count":236.0,"yearMonths":[{"id":"2018-04","title":"April + 2018","sum":192.0},{"id":"2018-05","title":"May 2018","sum":6.0},{"id":"2018-06","title":"June + 2018","sum":3.0},{"id":"2018-08","title":"August 2018","sum":16.0},{"id":"2019-02","title":"February + 2019","sum":10.0},{"id":"2019-03","title":"March 2019","sum":5.0},{"id":"2019-04","title":"April + 2019","sum":2.0},{"id":"2019-05","title":"May 2019","sum":2.0}]},{"id":"total-dataset-requests-regular","title":"total-dataset-requests-regular","count":46314.0,"yearMonths":[{"id":"2018-04","title":"April + 2018","sum":46314.0}]},{"id":"unique-dataset-requests-regular","title":"unique-dataset-requests-regular","count":358.0,"yearMonths":[{"id":"2018-04","title":"April + 2018","sum":358.0}]}]},"links":{"self":"https://api.datacite.org/events?obj-id=https%3A%2F%2Fdoi.org%2F10.7272%2Fq6z60kzd&page%5Bsize%5D=100","next":"https://api.datacite.org/events?obj-id=https%3A%2F%2Fdoi.org%2F10.7272%2Fq6z60kzd&page%5Bnumber%5D=2&page%5Bsize%5D=100"}}' + http_version: + recorded_at: Sun, 12 May 2019 11:13:20 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Event/query/subj_id.yml b/spec/fixtures/vcr_cassettes/Event/query/subj_id.yml new file mode 100644 index 000000000..934d3b6a2 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Event/query/subj_id.yml @@ -0,0 +1,50 @@ +--- +http_interactions: +- request: + method: get + uri: https://api.datacite.org/events?page%5Bsize%5D=100&subj-id=https://doi.org/10.3389/feart.2018.00153 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.2.1; +https://github.com/datacite/maremma) + Accept: + - application/vnd.api+json; version=2 + response: + status: + code: 200 + message: OK + headers: + Date: + - Sun, 12 May 2019 11:20:43 GMT + Content-Type: + - application/json; charset=utf-8 + Connection: + - keep-alive + Status: + - 200 OK + X-Anonymous-Consumer: + - 'true' + Cache-Control: + - max-age=0, private, must-revalidate + Vary: + - Accept-Encoding, Origin + Etag: + - W/"99199bd170d8143970a644f69cd7f8ee" + X-Runtime: + - '0.454156' + X-Request-Id: + - d1fd23ce-9a94-4cba-b020-ee4e0813d97a + X-Powered-By: + - Phusion Passenger 6.0.2 + Server: + - nginx/1.15.8 + Phusion Passenger 6.0.2 + body: + encoding: ASCII-8BIT + string: '{"data":[{"id":"63897322-b0fd-4145-a3a7-014b37954aed","type":"events","attributes":{"subjId":"https://doi.org/10.3389/feart.2018.00153","objId":"https://doi.org/10.3886/icpsr04254.v1","sourceId":"crossref","relationTypeId":"references","total":1,"messageAction":"create","sourceToken":"8676e950-8ac5-4074-8ac3-c0a18ada7e99","license":"https://doi.org/10.13003/CED-terms-of-use","occurredAt":"0000-01-01T00:00:00.000Z","timestamp":"2019-02-26T11:39:57.967Z"},"relationships":{"subj":{"data":{"id":"https://doi.org/10.3389/feart.2018.00153","type":"objects"}},"obj":{"data":{"id":"https://doi.org/10.3886/icpsr04254.v1","type":"objects"}}}}],"meta":{"total":1,"totalPages":1,"page":1,"sources":[{"id":"crossref","title":"Crossref + to DataCite","count":1}],"prefixes":[{"id":"10.3389","title":"10.3389","count":1},{"id":"10.3886","title":"10.3886","count":1}],"citationTypes":[],"relationTypes":[{"id":"references","title":"references","count":1.0,"yearMonths":[{"id":"0000-01","title":"January + 0000","sum":1.0}]}]},"links":{"self":"https://api.datacite.org/events?page%5Bsize%5D=100&subj-id=https%3A%2F%2Fdoi.org%2F10.3389%2Ffeart.2018.00153","next":"https://api.datacite.org/events?page%5Bnumber%5D=2&page%5Bsize%5D=100&subj-id=https%3A%2F%2Fdoi.org%2F10.3389%2Ffeart.2018.00153"}}' + http_version: + recorded_at: Sun, 12 May 2019 11:20:43 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index c089682c6..3db39442d 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -28,6 +28,7 @@ it "limit" do query = nil response = Event.query(query, limit: 10) + expect(response.dig(:meta, "total")).to eq(9165580) expect(response[:data].size).to eq(10) expect(response[:data].first).to eq(:id=>"c8bcd46c-3433-47ac-b8db-d039ce346d65", :subj_id=>"https://doi.org/10.5281/zenodo.595698", :obj_id=>"https://doi.org/10.13039/501100000780", :source_id=>"datacite-funder", :relation_type_id=>"is-funded-by", :total=>1) end @@ -35,14 +36,29 @@ it "source_id" do source_id = "datacite-usage" response = Event.query(nil, source_id: source_id) + expect(response.dig(:meta, "total")).to eq(16672) expect(response[:data].size).to eq(100) expect(response[:data].first).to eq(:id=>"308185f3-1607-478b-a25e-ed5671994db5", :subj_id=>"https://api.datacite.org/reports/fa2ad308-1b25-4394-9bc6-e0c7511e763d", :obj_id=>"https://doi.org/10.7272/q6g15xs4", :source_id=>"datacite-usage", :relation_type_id=>"total-dataset-investigations-regular", :total=>4) end + it "citation_type" do + citation_type = "Dataset-Funder" + response = Event.query(nil, citation_type: citation_type) + expect(response.dig(:meta, "total")).to eq(27246) + expect(response[:data].size).to eq(100) + expect(response[:data].first).to eq(:id => "28fa7d4f-60e0-4db8-8365-b19b1b9904e9", + :obj_id => "https://doi.org/10.13039/100000050", + :relation_type_id => "is-funded-by", + :source_id => "datacite-funder", + :subj_id => "https://doi.org/10.23725/e9sa-1y49", + :total => 1) + end + it "doi" do doi = "https://doi.org/10.7272/q6z60kzd" response = Event.query(nil, doi: doi) expect(response[:data].size).to eq(22) + expect(response[:data].first).to eq(:id=>"758199db-95c9-4216-ae7a-70b9d00425d4", :subj_id=>"https://api.datacite.org/reports/08761bb6-f8d9-4d01-8012-fd21042fd71d", :obj_id=>"https://doi.org/10.7272/q6z60kzd", :source_id=>"datacite-usage", :relation_type_id=>"total-dataset-investigations-regular", :total=>58) expect(response.dig(:meta, "relationTypes", 0, "yearMonths")).to eq([{"id"=>"2018-04", "title"=>"April 2018", "sum"=>23171.0}, {"id"=>"2018-05", "title"=>"May 2018", "sum"=>58.0}, {"id"=>"2018-06", "title"=>"June 2018", "sum"=>4.0}, @@ -53,6 +69,29 @@ {"id"=>"2019-05", "title"=>"May 2019", "sum"=>1.0}]) end + it "subj_id" do + subj_id = "https://doi.org/10.3389/feart.2018.00153" + response = Event.query(nil, subj_id: subj_id) + expect(response[:data].size).to eq(1) + expect(response[:data].first).to eq(:id=>"63897322-b0fd-4145-a3a7-014b37954aed", :subj_id=>"https://doi.org/10.3389/feart.2018.00153", :obj_id=>"https://doi.org/10.3886/icpsr04254.v1", :source_id=>"crossref", :relation_type_id=>"references", :total=>1) + expect(response.dig(:meta, "relationTypes", 0, "yearMonths")).to eq([{"id"=>"0000-01", "sum"=>1.0, "title"=>"January 0000"}]) + end + + it "obj_id" do + obj_id = "https://doi.org/10.7272/q6z60kzd" + response = Event.query(nil, obj_id: obj_id) + expect(response[:data].size).to eq(22) + expect(response[:data].first).to eq(:id=>"758199db-95c9-4216-ae7a-70b9d00425d4", :subj_id=>"https://api.datacite.org/reports/08761bb6-f8d9-4d01-8012-fd21042fd71d", :obj_id=>"https://doi.org/10.7272/q6z60kzd", :source_id=>"datacite-usage", :relation_type_id=>"total-dataset-investigations-regular", :total=>58) + expect(response.dig(:meta, "relationTypes", 0, "yearMonths")).to eq([{"id"=>"2018-04", "title"=>"April 2018", "sum"=>23171.0}, + {"id"=>"2018-05", "title"=>"May 2018", "sum"=>58.0}, + {"id"=>"2018-06", "title"=>"June 2018", "sum"=>4.0}, + {"id"=>"2018-08", "title"=>"August 2018", "sum"=>16.0}, + {"id"=>"2019-02", "title"=>"February 2019", "sum"=>11.0}, + {"id"=>"2019-03", "title"=>"March 2019", "sum"=>5.0}, + {"id"=>"2019-04", "title"=>"April 2019", "sum"=>2.0}, + {"id"=>"2019-05", "title"=>"May 2019", "sum"=>2.0}]) + end + it "not found" do source_id = "xxx" response = Event.query(nil, source_id: source_id) diff --git a/spec/models/funder_spec.rb b/spec/models/funder_spec.rb index 7a725f252..88e1af295 100644 --- a/spec/models/funder_spec.rb +++ b/spec/models/funder_spec.rb @@ -5,8 +5,8 @@ it "found" do id = "https://doi.org/10.13039/100011326" funders = Funder.find_by_id(id) - expect(funders.size).to eq(1) - expect(funders.first).to eq(id: "https://doi.org/10.13039/100011326", name: "London School of Economics and Political Science", alternate_name: ["London School of Economics & Political Science", "LSE"], date_modified: "2019-04-18T00:00:00Z") + expect(funders[:data].size).to eq(1) + expect(funders[:data].first).to eq(id: "https://doi.org/10.13039/100011326", name: "London School of Economics and Political Science", alternate_name: ["London School of Economics & Political Science", "LSE"], date_modified: "2019-04-18T00:00:00Z") end it "not found" do @@ -20,28 +20,32 @@ it "all" do query = nil funders = Funder.query(query) - expect(funders.size).to eq(100) - expect(funders.first).to eq(id: "https://doi.org/10.13039/100002569", name: "American Association of Endodontists Foundation", alternate_name: ["AAE Foundation for Endodontics", "AAE Foundation", "Foundation for Endodontics", "AAEF"], country: "United States", date_modified: "2019-04-18T00:00:00Z") + expect(funders.dig(:meta, "total")).to eq(19662) + expect(funders[:data].size).to eq(100) + expect(funders[:data].first).to eq(id: "https://doi.org/10.13039/100002569", name: "American Association of Endodontists Foundation", alternate_name: ["AAE Foundation for Endodontics", "AAE Foundation", "Foundation for Endodontics", "AAEF"], country: "United States", date_modified: "2019-04-18T00:00:00Z") end it "limit" do query = nil funders = Funder.query(query, limit: 10) - expect(funders.size).to eq(10) - expect(funders.first).to eq(id: "https://doi.org/10.13039/100002569", name: "American Association of Endodontists Foundation", alternate_name: ["AAE Foundation for Endodontics", "AAE Foundation", "Foundation for Endodontics", "AAEF"], country: "United States", date_modified: "2019-04-18T00:00:00Z") + expect(funders.dig(:meta, "total")).to eq(19662) + expect(funders[:data].size).to eq(10) + expect(funders[:data].first).to eq(id: "https://doi.org/10.13039/100002569", name: "American Association of Endodontists Foundation", alternate_name: ["AAE Foundation for Endodontics", "AAE Foundation", "Foundation for Endodontics", "AAEF"], country: "United States", date_modified: "2019-04-18T00:00:00Z") end it "found" do query = "dfg" funders = Funder.query(query) - expect(funders.size).to eq(3) - expect(funders.first).to eq(id: "https://doi.org/10.13039/501100001659", name: "Deutsche Forschungsgemeinschaft", alternate_name: ["DFG", "German Research Association", "German Research Foundation"], date_modified: "2019-04-18T00:00:00Z") + expect(funders.dig(:meta, "total")).to eq(3) + expect(funders[:data].size).to eq(3) + expect(funders[:data].first).to eq(id: "https://doi.org/10.13039/501100001659", name: "Deutsche Forschungsgemeinschaft", alternate_name: ["DFG", "German Research Association", "German Research Foundation"], date_modified: "2019-04-18T00:00:00Z") end it "not found" do query = "xxx" funders = Funder.query(query) - expect(funders).to be_empty + expect(funders[:data]).to be_empty + expect(funders[:errors]).to be_nil end end end \ No newline at end of file