sxp 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/CREDITS +1 -0
- data/README +6 -1
- data/VERSION +1 -1
- data/lib/sxp/reader/sparql.rb +2 -0
- data/lib/sxp/version.rb +1 -1
- metadata +3 -3
data/CREDITS
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
* Ben Lavender <blavender@gmail.com>
|
data/README
CHANGED
@@ -92,7 +92,12 @@ Resources
|
|
92
92
|
Author
|
93
93
|
------
|
94
94
|
|
95
|
-
* [Arto Bendiken](
|
95
|
+
* [Arto Bendiken](https://github.com/bendiken) - <http://ar.to/>
|
96
|
+
|
97
|
+
Contributors
|
98
|
+
------------
|
99
|
+
|
100
|
+
* [Ben Lavender](https://github.com/bhuga) - <http://bhuga.net/>
|
96
101
|
|
97
102
|
License
|
98
103
|
-------
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.13
|
data/lib/sxp/reader/sparql.rb
CHANGED
@@ -8,6 +8,7 @@ module SXP; class Reader
|
|
8
8
|
#
|
9
9
|
# @see http://openjena.org/wiki/SSE
|
10
10
|
class SPARQL < Extended
|
11
|
+
NIL = /^nil$/i
|
11
12
|
FALSE = /^false$/i
|
12
13
|
TRUE = /^true$/i
|
13
14
|
EXPONENT = /[eE][+-]?[0-9]+/
|
@@ -64,6 +65,7 @@ module SXP; class Reader
|
|
64
65
|
def read_atom
|
65
66
|
case buffer = read_literal
|
66
67
|
when '.' then buffer.to_sym
|
68
|
+
when NIL then nil
|
67
69
|
when FALSE then RDF::Literal(false)
|
68
70
|
when TRUE then RDF::Literal(true)
|
69
71
|
when DECIMAL then RDF::Literal(Float(buffer[-1].eql?(?.) ? buffer + '0' : buffer))
|
data/lib/sxp/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 13
|
9
|
+
version: 0.0.13
|
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:
|
17
|
+
date: 2011-01-13 00:00:00 +01:00
|
18
18
|
default_executable: sxp2rdf
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|