tao_rdfizer 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tao_rdfizer/tao_rdfizer.rb +7 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95aaa9006671c09cfcf08d12876932c5783f3d784ad3855b4a3819ad79febf87
|
4
|
+
data.tar.gz: 6f3970db2a93208bd760c68651bc33a212d7e384396314deaebe1fdc744b20b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ffe933f1e7ecfc91b7e51d010fc84d42c5afabfc0cac59df717f264a45d337a4e67d5a2e56082cc00a67b9b20594156fd60fe51e700a4a78cef8c3d2c50fe20
|
7
|
+
data.tar.gz: efc71f7e1765dff987554031bbf4edcea8881cabf232ac5504b67fb33d4ac5b514b96f02410b2293b3a37b443508a4167786bd67cf696543802dcba150146299
|
@@ -80,9 +80,9 @@ class TAO::RDFizer
|
|
80
80
|
_relations = annotations[:relations] || []
|
81
81
|
if @mode == :spans && annotations.has_key?(:tracks)
|
82
82
|
annotations[:tracks].each do |track|
|
83
|
-
_denotations += track[:denotations]
|
84
|
-
_attributes += track[:attributes]
|
85
|
-
_relations += track[:relations]
|
83
|
+
_denotations += track[:denotations] if track.has_key? :denotations
|
84
|
+
_attributes += track[:attributes] if track.has_key? :attributes
|
85
|
+
_relations += track[:relations] if track.has_key? :relations
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
@@ -212,7 +212,10 @@ class TAO::RDFizer
|
|
212
212
|
end
|
213
213
|
|
214
214
|
def find_uri (label, namespaces, prefix_for_this)
|
215
|
-
|
215
|
+
if label.match(/\s/)
|
216
|
+
# raise ArgumentError, "A label including a whitespace character found: #{label}."
|
217
|
+
label.gsub(/\s/, '_')
|
218
|
+
end
|
216
219
|
delimiter_position = label.index(':')
|
217
220
|
if !delimiter_position.nil? && namespaces.keys.include?(label[0...delimiter_position])
|
218
221
|
label.gsub('(', '\(').gsub(')', '\)') # brackets have to be escaped
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tao_rdfizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jin-Dong Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: It uses TAO (text annotation ontology) for representation of annotations
|
14
14
|
to text.
|