fsp_harvester 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fsp_harvester/version.rb +1 -1
- data/lib/harvester.rb +1 -1
- metadata +1 -2
- data/example_test.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72df31c63580f2b47676bb719c860cd26cab4290346f20bd481f67d18b29f765
|
4
|
+
data.tar.gz: 477bfe524de0a1822790eac1caefb642a5e881734e8f1bc3c8f46c1a91b3e1e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 328b1bf4531034b38f325ec7c2dfb682007ed8ef5fb4f9ea72a4776ffdb49bbdde280bd959f9adddcfb93f6a065b77af68ab6d5222942bc16b5d50901f771770
|
7
|
+
data.tar.gz: d5bc1e2e88be865c17aa12bca0a4308f3bc8e476bc0f49f40ca7a48a4e92142d8613c8e12823d9bb5e2735ea4d4cc492d6740481fdbebd513cb4f0be0c8114c8
|
data/Gemfile.lock
CHANGED
data/lib/harvester.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fsp_harvester
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Wilkinson
|
@@ -180,7 +180,6 @@ files:
|
|
180
180
|
- Rakefile
|
181
181
|
- bin/console
|
182
182
|
- bin/setup
|
183
|
-
- example_test.rb
|
184
183
|
- launch.json
|
185
184
|
- lib/constants.rb
|
186
185
|
- lib/external_tools.rb
|
data/example_test.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen string literal = false
|
2
|
-
require 'cgi'
|
3
|
-
require 'json'
|
4
|
-
require 'uri'
|
5
|
-
require 'rdf'
|
6
|
-
require 'rdf/turtle'
|
7
|
-
require 'sparql'
|
8
|
-
require 'fsp_harvester'
|
9
|
-
|
10
|
-
def test_guid(guid:)
|
11
|
-
_links, metadata = FspHarvester::Utils.resolve_guid(guid: guid) # [LinkHeader::Link], FspHarvester::MetadataObject
|
12
|
-
|
13
|
-
metadata.comments << if metadata.guidtype == 'unknown'
|
14
|
-
"FAILURE: The identifier #{guid} did not match any known identification system.\n"
|
15
|
-
else
|
16
|
-
"SUCCESS: The identifier #{guid} matched known GUID type system #{metadata.guidtype}.\n"
|
17
|
-
end
|
18
|
-
metadata.comments
|
19
|
-
end
|
20
|
-
|
21
|
-
guid = ARGV[0] || 'https://s11.no/2022/a2a-fair-metrics/07-http-describedby-citeas-linkset-json/'
|
22
|
-
response = test_guid(guid: guid)
|
23
|
-
|
24
|
-
puts response
|