biointerchange 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01fc18ed7598a19760d3aa84ce74b1c6619023b9
|
4
|
+
data.tar.gz: 17d6501371c161b6069ad67994f218c14ef0777d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32a73d60c849c0a7720c0d15b36769ec7ccdc2f672348ec5b57106cee7575841b9def8ed0a738f4c67678d90092eed009459af9a376c04a8e932bcfcf94e1999
|
7
|
+
data.tar.gz: 00c591e5792cc7c2b3a907f5238549e386931c5be3002275649c55210009c80b6ddbc1566aab5b3f523769848b88a4234a2b9e288c57f8dd8f8df1be0e650343
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.7
|
@@ -124,6 +124,12 @@ protected
|
|
124
124
|
# ...TODO
|
125
125
|
# Everything else:
|
126
126
|
else
|
127
|
+
pragma.each_pair { |key, value|
|
128
|
+
custom_uri = RDF::URI.new("#{set_uri}/custom-pragma/#{key}")
|
129
|
+
create_triple(set_uri, @base.has_attribute, custom_uri)
|
130
|
+
create_triple(custom_uri, RDF.type, @base.InformationContentEntity)
|
131
|
+
create_triple(custom_uri, @base.has_value, value)
|
132
|
+
}
|
127
133
|
end
|
128
134
|
elsif pragma.kind_of?(Array) then
|
129
135
|
# VCF section:
|
@@ -139,7 +139,7 @@ protected
|
|
139
139
|
# The type might be a SO/SOFA term or SO/SOFA accession:
|
140
140
|
begin
|
141
141
|
if type.match(/^SO:\d{7}$/) then
|
142
|
-
type = RDF::URI.new("http://www.sequenceontology.org/miso/current_release/term/#{
|
142
|
+
type = RDF::URI.new("http://www.sequenceontology.org/miso/current_release/term/#{type}")
|
143
143
|
else
|
144
144
|
type = BioInterchange::SO.send(BioInterchange.make_safe_label(type))
|
145
145
|
end
|
@@ -188,7 +188,12 @@ protected
|
|
188
188
|
def add_pragma(feature_set, line)
|
189
189
|
line.chomp!
|
190
190
|
name, value = line[2..-1].split(/\s/, 2)
|
191
|
-
|
191
|
+
|
192
|
+
if value then
|
193
|
+
value.strip!
|
194
|
+
else
|
195
|
+
value = true
|
196
|
+
end
|
192
197
|
|
193
198
|
# Interpret pragmas depending on their definition (sorted alphabetically):
|
194
199
|
if name == 'feature-ontology' then
|
@@ -36,11 +36,7 @@ protected
|
|
36
36
|
line.chomp!
|
37
37
|
name, value = line[2..-1].split(/\s/, 2)
|
38
38
|
|
39
|
-
|
40
|
-
raise BioInterchange::Exceptions::InputFormatError, "Line #{@linenumber}. Pragma statement is ill-formatted. Expected name/value separation by space, but reading \"#{line}\"."
|
41
|
-
end
|
42
|
-
|
43
|
-
value.strip!
|
39
|
+
value.strip! if value
|
44
40
|
|
45
41
|
# Interpret pragmas, and if not known, delegate to GFF3Reader (in alphabetical order):
|
46
42
|
if name == 'attribute-method' or name == 'data-source' or name == 'score-method' or name == 'source-method' or name == 'technology-platform' then
|
@@ -52,6 +52,8 @@ class Writer
|
|
52
52
|
object_representation = object.to_s
|
53
53
|
elsif object.kind_of?(Float) then
|
54
54
|
object_representation = object.to_s
|
55
|
+
elsif object.instance_of?(TrueClass) or object.instance_of?(FalseClass) then
|
56
|
+
object_representation = object.to_s
|
55
57
|
else
|
56
58
|
if datatype then
|
57
59
|
object_representation = "\"#{object.to_s}\"^^<#{datatype.to_s}>"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: biointerchange
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joachim Baran
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-12-
|
15
|
+
date: 2014-12-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rdf
|