lightrdf 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/lightrdf/parser.rb +3 -4
- data/lib/lightrdf.rb +2 -1
- data/lightrdf.gemspec +2 -2
- metadata +3 -3
data/History.txt
CHANGED
data/lib/lightrdf/parser.rb
CHANGED
@@ -36,10 +36,9 @@ module RDF
|
|
36
36
|
when :rdf
|
37
37
|
serialize(:rdfxml)
|
38
38
|
else
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
stdout.read
|
39
|
+
tmpfile = File.join(Dir.tmpdir, "rapper#{$$}#{Thread.current.object_id}")
|
40
|
+
File.open(tmpfile, 'w') { |f| f.write(serialize(:ntriples)) }
|
41
|
+
%x[rapper -q -i ntriples -o #{format} #{tmpfile}]
|
43
42
|
end
|
44
43
|
end
|
45
44
|
|
data/lib/lightrdf.rb
CHANGED
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
|
|
2
2
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
3
|
|
4
4
|
module RDF
|
5
|
-
VERSION = '0.1.
|
5
|
+
VERSION = '0.1.5'
|
6
6
|
end
|
7
7
|
|
8
8
|
require 'rubygems'
|
@@ -10,6 +10,7 @@ require 'active_support'
|
|
10
10
|
require 'uri'
|
11
11
|
require 'open3'
|
12
12
|
require 'open-uri'
|
13
|
+
require 'tmpdir'
|
13
14
|
|
14
15
|
require "lightrdf/quri"
|
15
16
|
require "lightrdf/parser"
|
data/lightrdf.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{lightrdf}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Jose Ignacio"]
|
9
|
-
s.date = %q{2010-11-
|
9
|
+
s.date = %q{2010-11-16}
|
10
10
|
s.default_executable = %q{yarfp}
|
11
11
|
s.description = %q{RDF library}
|
12
12
|
s.email = %q{joseignacio.fernandez@gmail.com}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 5
|
9
|
+
version: 0.1.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jose Ignacio
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-16 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|