sxp 0.0.11 → 0.0.12

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.0.12
@@ -8,6 +8,8 @@ module SXP; class Reader
8
8
  #
9
9
  # @see http://openjena.org/wiki/SSE
10
10
  class SPARQL < Extended
11
+ FALSE = /^false$/i
12
+ TRUE = /^true$/i
11
13
  EXPONENT = /[eE][+-]?[0-9]+/
12
14
  DECIMAL = /^[+-]?(\d*)?\.\d*#{EXPONENT}?$/
13
15
  BNODE_ID = /^_:([A-Za-z][A-Za-z0-9]*)/ # FIXME
@@ -62,6 +64,8 @@ module SXP; class Reader
62
64
  def read_atom
63
65
  case buffer = read_literal
64
66
  when '.' then buffer.to_sym
67
+ when FALSE then RDF::Literal(false)
68
+ when TRUE then RDF::Literal(true)
65
69
  when DECIMAL then RDF::Literal(Float(buffer[-1].eql?(?.) ? buffer + '0' : buffer))
66
70
  when INTEGER then RDF::Literal(Integer(buffer))
67
71
  when BNODE_ID then RDF::Node($1)
@@ -2,7 +2,7 @@ module SXP
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 11
5
+ TINY = 12
6
6
  EXTRA = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 11
9
- version: 0.0.11
8
+ - 12
9
+ version: 0.0.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Arto Bendiken
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-01 00:00:00 +01:00
17
+ date: 2010-11-05 00:00:00 +01:00
18
18
  default_executable: sxp2rdf
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency