rdf-jena 0.1.0-java → 0.2.0-java

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: 436d13cfcce5adbf169ff95dfe09c605ac2c292e
4
- data.tar.gz: ed9f989d25e20a72f0b8d6e537b35b5d0e72fe8c
3
+ metadata.gz: baf793382f28bf290975dbd688aeb28d9c30a8d0
4
+ data.tar.gz: e6c37ac80c1c9cb30e9a918275630d3e72bb05dc
5
5
  SHA512:
6
- metadata.gz: 74b469ed5eab2d4b5f323702ab73a3c36c0bbeef06fb0ebc665378a142fa8cd71607030cee40c4cb69d1005f6384dd958023912bcad8742a200846974c7e42b6
7
- data.tar.gz: ef758707472136d1da0b29ee19c364478be411fff4c0c25a183ffe4a02900c61b24fe71b4586a187eb8ce8613df1c4a8516099ba9d2b2304a588c8977dd6defa
6
+ metadata.gz: 267d29c639c877ded8bbe4cdaa623585de12f001432c08c73221b4a626c97e4223ae6d013fa30b132c3ca456d757ad19553352ea4df3805df100925c40a94627
7
+ data.tar.gz: e44215e25039a9c988eb150a8061a51696173fb04f2995577c56f24837123fd546b6c867351d1d16ff8a9a8ad24b4451961b234e985f0ceb86564ee30e07c737
data/CHANGELOG.md ADDED
@@ -0,0 +1,24 @@
1
+ # Change Log
2
+
3
+ All notable changes to rdf-jena will be documented in this file. The curated log begins at changes to version 0.1.0.
4
+
5
+ This project adheres to [Semantic Versioning](http://semver.org/).
6
+
7
+ ## 0.2.0 - 2015-12-01
8
+ ### Fixed
9
+ - Alias `each_statement` to `each`. The java method iterateStatements is now provided as both ruby methods.
10
+
11
+ ### Added
12
+ - Implemented query_pattern method to take advantage of Apache Jena model selectors.
13
+
14
+ ## 0.1.0 - 2015-12-01
15
+ ### Added
16
+ - Implements an [RDF.rb][RDF.rb] RDF::Repository using Apache Jena with TDB storage.
17
+ - Implements an [RDF.rb][RDF.rb] RDF::Graph as a Jena named model.
18
+ - Implemented `each_statement` to enumerate all statements in the repository (TDB Dataset's defaut model).
19
+ - Implemented `has_statement?` to check for presence of statement in repository or graph.
20
+ - Implemented mutation methods `clear_statements`, `delete_statement`, and `insert_statement`.
21
+ - Support for query and modification of graphs using `each_graph`, `insert_graph`, `replace_graph`, and `delete_graph`.
22
+ - Supporting boolean flag on RDF::Repository to union named graphs with the default when retrieved (see `each_graph`).
23
+
24
+ [RDF.rb]: https://github.com/ruby-rdf/rdf
data/README.md CHANGED
@@ -1,6 +1,49 @@
1
- rdf-jena
2
- ========
1
+ # rdf-jena
3
2
 
4
3
  RDF Storage backed by Apache Jena and running on JRuby.
5
4
 
6
- Implemented for JRuby 9.0.0.0+.
5
+ Works on JRuby 1.7 and 9k series.
6
+
7
+ ## Install
8
+
9
+ `gem install rdf-jena`
10
+
11
+ ## Use
12
+
13
+ ```ruby
14
+ require 'rdf/jena'
15
+
16
+ # Create TDB directory 'data'.
17
+ r = RDF::Jena::Repository.new('data')
18
+
19
+ # Insert a statement into the default graph (Jena's default model for the TDB dataset).
20
+ r << RDF::Statement.new(
21
+ RDF::URI('https://github.com/abargnesi'),
22
+ RDF::URI('http://purl.org/dc/terms/created'),
23
+ RDF::URI('https://github.com/abargnesi/rdf-jena')
24
+ )
25
+
26
+ # Work with graphs.
27
+
28
+ # Create repository data source for graph.
29
+ graph_repository = RDF::Repository.new(:graph_name=>'https://github.com')
30
+ graph_repository << RDF::Statement.new(
31
+ RDF::URI('https://github.com/abargnesi/rdf-jena'),
32
+ RDF::URI('http://purl.org/dc/terms/requires'),
33
+ RDF::URI('https://github.com/ruby-rdf/rdf')
34
+ )
35
+
36
+ # Create named graph from repository.
37
+ graph = RDF::Graph.new('https://github.com', :data => graph_repository)
38
+
39
+ # Insert as a named graph into repository (Added as a named model to the TDB dataset).
40
+ r.insert_graph(graph)
41
+
42
+ # You can also:
43
+
44
+ # replace a graph
45
+ r.replace_graph(graph)
46
+
47
+ # delete a graph
48
+ r.delete_graph(graph)
49
+ ```
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
data/lib/rdf/jena.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rdf'
2
2
 
3
3
  # Loads Repository within the RDF::Jena module.
4
- require_relative 'jena/jars/rdf-jena-1.0.0.jar'
4
+ require_relative 'jena/jars/rdf-jena-0.2.0.jar'
5
5
  require 'com/github/rdf_jena/JenaRepository'
6
6
 
7
7
  require_relative 'jena/version'
@@ -24,4 +24,4 @@ module RDF::Jena
24
24
  include RDF::Queryable
25
25
  include RDF::Mutable
26
26
  end
27
- end
27
+ end
data/rdf-jena.gemspec CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
  Dir.glob('lib/**/*.{jar,rb}'),
21
21
  __FILE__,
22
22
  'README.md',
23
+ 'CHANGELOG.md',
23
24
  'VERSION',
24
25
  ].flatten!
25
26
  spec.homepage = 'https://github.com/abargnesi/rdf-jena'
@@ -28,6 +29,8 @@ Gem::Specification.new do |spec|
28
29
  '--main', 'README.md',
29
30
  '--line-numbers',
30
31
  'README.md',
32
+ 'CHANGELOG.md',
33
+ 'VERSION',
31
34
  ]
32
35
 
33
36
  spec.platform = 'java'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-jena
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: java
6
6
  authors:
7
7
  - Anthony Bargnesi
@@ -129,10 +129,11 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
+ - CHANGELOG.md
132
133
  - README.md
133
134
  - VERSION
134
135
  - lib/rdf/jena.rb
135
- - lib/rdf/jena/jars/rdf-jena-1.0.0.jar
136
+ - lib/rdf/jena/jars/rdf-jena-0.2.0.jar
136
137
  - lib/rdf/jena/version.rb
137
138
  - rdf-jena.gemspec
138
139
  homepage: https://github.com/abargnesi/rdf-jena
@@ -147,6 +148,8 @@ rdoc_options:
147
148
  - README.md
148
149
  - "--line-numbers"
149
150
  - README.md
151
+ - CHANGELOG.md
152
+ - VERSION
150
153
  require_paths:
151
154
  - lib
152
155
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -166,3 +169,4 @@ signing_key:
166
169
  specification_version: 4
167
170
  summary: RDF.rb storage implementation for Apache Jena
168
171
  test_files: []
172
+ has_rdoc: