marc2linkeddata 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -19
- data/bin/marc2LD_config +11 -5
- data/marc2linkeddata.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f5b48cd2615016b2074faf141788dac112c6057
|
4
|
+
data.tar.gz: 7d195907262b587e7314e0c8dd1f8bf9623d754a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f2ccf46fa41e4efb2bd38aa51862fc44dddb75f4f0808bd2ae25561d0a1b5cffc55eb5aa0d9b47631b58573b66cd6a3ddc6cc4d3f87ed055bb1d7242aa1e7f5
|
7
|
+
data.tar.gz: 80697d0532b4cac487db5900a08675f9095bf0f1fb2423a9617946303aaf324fb91017cef03fa7f6fd81d5b9eff2fe3067d6b667bbb45ee41f2abff0dbdcdb69
|
data/README.md
CHANGED
@@ -14,7 +14,6 @@ Optional Dependencies
|
|
14
14
|
Install
|
15
15
|
|
16
16
|
gem install marc2linkeddata
|
17
|
-
# when a gem is published
|
18
17
|
|
19
18
|
Install with rbenv (on linux)
|
20
19
|
|
@@ -32,10 +31,24 @@ Install with rbenv (on linux)
|
|
32
31
|
|
33
32
|
Configure
|
34
33
|
|
35
|
-
|
36
|
-
|
34
|
+
# set env values and/or create or modify a .env file
|
35
|
+
# see the .env_example file for details
|
36
|
+
marc2LD_config
|
37
|
+
# Performance will slow with more retrieval of linked
|
38
|
+
# data resources, such as OCLC works for authorities.
|
37
39
|
|
38
|
-
|
40
|
+
Scripting
|
41
|
+
|
42
|
+
# First configure (see details above).
|
43
|
+
# Translate a MARC21 authority file to a turtle file.
|
44
|
+
# readMarcAuthority [ authfile1.mrc .. authfileN.mrc ]
|
45
|
+
marcAuthority2LD auth.01.mrc
|
46
|
+
|
47
|
+
# Check the syntax of the resulting turtle file.
|
48
|
+
rapper -c -i turtle auth.01.ttl
|
49
|
+
|
50
|
+
|
51
|
+
Ruby Library Use
|
39
52
|
|
40
53
|
- authority files
|
41
54
|
|
@@ -53,26 +66,16 @@ Use
|
|
53
66
|
end
|
54
67
|
end
|
55
68
|
|
56
|
-
|
69
|
+
Development
|
57
70
|
|
58
|
-
git clone
|
71
|
+
git clone https://github.com/ld4l/marc2linkeddata.git
|
59
72
|
cd marc2linkeddata
|
60
73
|
./bin/setup.sh
|
61
74
|
./bin/test.sh
|
62
|
-
cp .env_example .env #
|
75
|
+
cp .env_example .env # and edit .env
|
76
|
+
# develop code and/or bin scripts; run bin scripts, e.g.
|
77
|
+
.binstubs/marcAuthority2LD auth.01.mrc
|
63
78
|
|
64
|
-
Script
|
65
|
-
|
66
|
-
# First configure (see .env_example). Performance will
|
67
|
-
# slow with more retrieval of linked data resources, such
|
68
|
-
# as OCLC works for authorities.
|
69
|
-
|
70
|
-
# Translate a MARC21 authority file to a turtle file.
|
71
|
-
# readMarcAuthority [ authfile1.mrc .. authfileN.mrc ]
|
72
|
-
.binstubs/readMarcAuthority data/auth.01.mrc
|
73
|
-
|
74
|
-
# Check the syntax of the resulting turtle file.
|
75
|
-
rapper -c -i turtle data/auth.01.ttl
|
76
79
|
|
77
80
|
# License
|
78
81
|
|
data/bin/marc2LD_config
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'fileutils'
|
4
|
+
# p FileUtils.options
|
5
|
+
|
6
|
+
bin_path = File.dirname(__FILE__)
|
7
|
+
env_example_file = File.join(bin_path, '..', '.env_example')
|
8
|
+
|
9
|
+
puts "Copying config file: #{env_example_file} -> #{FileUtils.pwd}"
|
10
|
+
FileUtils.copy(env_example_file, FileUtils.pwd) rescue nil
|
11
|
+
puts 'Copy .env_example into .env and modify as required'
|
2
12
|
|
3
|
-
gem_path=$(dirname $0)
|
4
|
-
env_example_file="$gem_path/.env_example"
|
5
|
-
cp $env_example_file .env_example
|
6
|
-
echo "Copy .env_example into .env and modify as required"
|
7
13
|
|
data/marc2linkeddata.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marc2linkeddata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darren Weber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|