ld4l-foaf_rdf 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.coveralls.yml +1 -0
- data/.travis.yml +1 -17
- data/README.md +4 -7
- data/ld4l-foaf_rdf.gemspec +4 -1
- data/lib/ld4l/foaf_rdf/agent.rb +13 -0
- data/lib/ld4l/foaf_rdf/version.rb +1 -1
- data/lib/ld4l/foaf_rdf.rb +1 -0
- data/spec/spec_helper.rb +3 -0
- metadata +39 -23
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NDNmNjA4MGRjZTZlNjgwOTNhYTE3MjhhNDFiZTZjYjkxNzNlNGY0OQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 10d46bdd365de45b658492da21672b0d89e25e8a
|
4
|
+
data.tar.gz: 77951e466f61e788932478ede986806cbb98d0db
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MzdkMjkxNWM3ZmEzOGI1YjU2YzBjODM5MTY0MjQxY2FlNDY0MzY5ZjM5Y2Fh
|
11
|
-
Njc2ZDdmY2RiMDE5YzE1NzBhNTc5YWUzNzU4YWRhMGIwZjZhZjE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ODhmYTVhODdhMTY0ZGNkNzZhOGNmNmZlY2NmZWUzYTIzOGYxNzUzMzZkNGI2
|
14
|
-
M2IyMDFmZGFkNTMwYzdjNzg3OGUxNTk1ODY5MTc4Yjk1YTRhMzExNTc1ZTUz
|
15
|
-
YzE3MDAyOWU5ZGVkNzEzODQ2YTBkNDBiNWQyMmJiODE5M2NiZDI=
|
6
|
+
metadata.gz: 824f16697566e71d829208bf60d5897b3961f54168a3bb34ab794dcb2b7dc36140bbee555b268c1f6963a370dfa60e7a1bece693fd753df9c0fb3bd92a7248c0
|
7
|
+
data.tar.gz: d3c6408c8b8d87d2150fb276beb7a90abfbed7083ee6f85d1a4a0089897d60126227ef8fd9cbe2756e2fad574a8fd3070922bd718f98aa3c07af82909bf457bb
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/.travis.yml
CHANGED
@@ -9,20 +9,4 @@ rvm:
|
|
9
9
|
- jruby-19mode
|
10
10
|
matrix:
|
11
11
|
allow_failures:
|
12
|
-
- rvm: jruby-19mode
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
### DID NOT WORK ###
|
18
|
-
|
19
|
-
# Handle git submodules yourself
|
20
|
-
|
21
|
-
git:
|
22
|
-
submodules: false
|
23
|
-
# Use sed to replace the SSH URL with the public URL, then initialize submodules
|
24
|
-
before_install:
|
25
|
-
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
|
26
|
-
- git submodule update --init --recursive
|
27
|
-
|
28
|
-
### END SECTION THAT DID NOT WORK ###
|
12
|
+
- rvm: jruby-19mode
|
data/README.md
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
LD4L FOAF RDF provides tools for modeling person triples based on the FOAF ontology and persisting to a triplestore.
|
4
4
|
|
5
5
|
[![Build Status](https://travis-ci.org/ld4l/foaf_rdf.png?branch=master)](https://travis-ci.org/ld4l/foaf_rdf)
|
6
|
-
[![
|
6
|
+
[![Coverage Status](https://coveralls.io/repos/ld4l/foaf_rdf/badge.png?branch=master)](https://coveralls.io/r/ld4l/foaf_rdf?branch=master)
|
7
7
|
[![Gem Version](https://badge.fury.io/rb/ld4l-foaf_rdf.svg)](http://badge.fury.io/rb/ld4l-foaf_rdf)
|
8
8
|
[![Dependency Status](https://www.versioneye.com/ruby/ld4l-foaf_rdf/0.0.4/badge.svg)](https://www.versioneye.com/ruby/ld4l-foaf_rdf/0.0.4)
|
9
|
-
|
9
|
+
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
@@ -14,19 +14,16 @@ Temporary get the gem from github until the gem is released publicly.
|
|
14
14
|
|
15
15
|
Add this line to your application's Gemfile:
|
16
16
|
|
17
|
-
|
18
|
-
gem 'ld4l-foaf_rdf', '~> 0.0.3', :git => 'git@github.com:ld4l/foaf_rdf.git'
|
17
|
+
gem 'ld4l-foaf_rdf'
|
19
18
|
|
20
|
-
|
21
19
|
And then execute:
|
22
20
|
|
23
21
|
$ bundle install
|
24
22
|
|
25
|
-
|
23
|
+
|
26
24
|
Or install it yourself as:
|
27
25
|
|
28
26
|
$ gem install ld4l-foaf_rdf
|
29
|
-
-->
|
30
27
|
|
31
28
|
|
32
29
|
## Usage
|
data/ld4l-foaf_rdf.gemspec
CHANGED
@@ -20,15 +20,18 @@ Gem::Specification.new do |spec|
|
|
20
20
|
# spec.test_files = `git ls-files -- {spec}/*`.split("\n") # FROM ActiveTriples gemspec file
|
21
21
|
# spec.require_paths = ["lib"] # NOT IN ActiveTriples gemspec file
|
22
22
|
|
23
|
-
# spec.add_dependency('ffi', '~> 1.9.5')
|
23
|
+
# spec.add_dependency('ffi', '~> 1.9.5')
|
24
24
|
spec.add_dependency('rdf', '~> 1.1')
|
25
25
|
|
26
26
|
spec.add_dependency('active-triples', '~> 0.5')
|
27
27
|
spec.add_dependency('active_triples-local_name', '~> 0.1')
|
28
28
|
|
29
29
|
spec.add_development_dependency('pry')
|
30
|
+
# spec.add_development_dependency('pry-byebug') # Works with ruby > 2
|
31
|
+
# spec.add_development_dependency('pry-debugger') # Works with ruby < 2
|
30
32
|
spec.add_development_dependency('rdoc')
|
31
33
|
spec.add_development_dependency('rspec')
|
34
|
+
spec.add_development_dependency('coveralls')
|
32
35
|
spec.add_development_dependency('guard-rspec')
|
33
36
|
spec.add_development_dependency('webmock')
|
34
37
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module LD4L
|
2
|
+
module FoafRDF
|
3
|
+
class Agent < ActiveTriples::Resource
|
4
|
+
|
5
|
+
class << self; attr_reader :localname_prefix end
|
6
|
+
@localname_prefix="a"
|
7
|
+
|
8
|
+
configure :type => RDF::FOAF.Agent, :base_uri => LD4L::FoafRDF.configuration.base_uri, :repository => :default
|
9
|
+
|
10
|
+
property :label, :predicate => RDF::RDFS.label
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/ld4l/foaf_rdf.rb
CHANGED
@@ -32,6 +32,7 @@ module LD4L
|
|
32
32
|
# autoload classes
|
33
33
|
autoload :Configuration, 'ld4l/foaf_rdf/configuration'
|
34
34
|
autoload :Person, 'ld4l/foaf_rdf/person'
|
35
|
+
autoload :Agent, 'ld4l/foaf_rdf/agent'
|
35
36
|
|
36
37
|
def self.class_from_string(class_name, container_class=Kernel)
|
37
38
|
container_class = container_class.name if container_class.is_a? Module
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,125 +1,139 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ld4l-foaf_rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- E. Lynette Rayle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: active-triples
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0.5'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: active_triples-local_name
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pry
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rdoc
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coveralls
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: guard-rspec
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
|
-
- -
|
115
|
+
- - ">="
|
102
116
|
- !ruby/object:Gem::Version
|
103
117
|
version: '0'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
|
-
- -
|
122
|
+
- - ">="
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: webmock
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
|
-
- -
|
129
|
+
- - ">="
|
116
130
|
- !ruby/object:Gem::Version
|
117
131
|
version: '0'
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
|
-
- -
|
136
|
+
- - ">="
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
125
139
|
description: LD4L FOAF RDF provides tools for modeling a person triples based on the
|
@@ -132,14 +146,16 @@ extra_rdoc_files:
|
|
132
146
|
- LICENSE.txt
|
133
147
|
- README.md
|
134
148
|
files:
|
135
|
-
- .
|
136
|
-
- .
|
149
|
+
- ".coveralls.yml"
|
150
|
+
- ".gitignore"
|
151
|
+
- ".travis.yml"
|
137
152
|
- Gemfile
|
138
153
|
- LICENSE.txt
|
139
154
|
- README.md
|
140
155
|
- Rakefile
|
141
156
|
- ld4l-foaf_rdf.gemspec
|
142
157
|
- lib/ld4l/foaf_rdf.rb
|
158
|
+
- lib/ld4l/foaf_rdf/agent.rb
|
143
159
|
- lib/ld4l/foaf_rdf/configuration.rb
|
144
160
|
- lib/ld4l/foaf_rdf/person.rb
|
145
161
|
- lib/ld4l/foaf_rdf/version.rb
|
@@ -157,17 +173,17 @@ require_paths:
|
|
157
173
|
- lib
|
158
174
|
required_ruby_version: !ruby/object:Gem::Requirement
|
159
175
|
requirements:
|
160
|
-
- -
|
176
|
+
- - ">="
|
161
177
|
- !ruby/object:Gem::Version
|
162
178
|
version: 1.9.3
|
163
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
180
|
requirements:
|
165
|
-
- -
|
181
|
+
- - ">="
|
166
182
|
- !ruby/object:Gem::Version
|
167
183
|
version: '0'
|
168
184
|
requirements: []
|
169
185
|
rubyforge_project:
|
170
|
-
rubygems_version: 2.
|
186
|
+
rubygems_version: 2.4.3
|
171
187
|
signing_key:
|
172
188
|
specification_version: 4
|
173
189
|
summary: FOAF RDF models.
|