File tree Expand file tree Collapse file tree 11 files changed +12
-21
lines changed Expand file tree Collapse file tree 11 files changed +12
-21
lines changed Original file line number Diff line number Diff line change
1
+ repo_token : RoxdgPedMabKaRMN2QPrPD2pWVbaicMW1
Original file line number Diff line number Diff line change 23
23
- 2.5
24
24
- 2.6
25
25
- 2.7
26
- # - 3.0 # Commented out until net-http-persistent is updaated
27
- # - ruby-head # Commented out until net-http-persistent is updaated
26
+ - 3.0
27
+ - ruby-head
28
28
- jruby
29
29
steps :
30
30
- name : Clone repository
Original file line number Diff line number Diff line change @@ -24,5 +24,4 @@ group :development, :test do
24
24
gem 'erubis'
25
25
gem 'simplecov' , platforms : :mri
26
26
gem 'coveralls' , '~> 0.8' , platforms : :mri
27
- gem 'awesome_print' , github : 'akshaymohite/awesome_print'
28
27
end
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This is a [Ruby][] implementation of [LD Patch][] for [RDF.rb][].
4
4
5
5
[ ![ Gem Version] ( https://badge.fury.io/rb/ld-patch.png )] ( https://badge.fury.io/rb/ld-patch )
6
6
[ ![ Build Status] ( https://github.com/ruby-rdf/ld-patch/workflows/CI/badge.svg?branch=develop )] ( https://github.com/ruby-rdf/ld-patch/actions?query=workflow%3ACI )
7
- [ ![ Coverage Status] ( https://coveralls.io/repos/ruby-rdf/ld-patch/badge.svg )] ( https://coveralls.io/github/ruby-rdf/ld-patch )
7
+ [ ![ Coverage Status] ( https://coveralls.io/repos/ruby-rdf/ld-patch/badge.svg?branch=develop )] ( https://coveralls.io/github/ruby-rdf/ld-patch?branch=develop )
8
8
[ ![ Gitter chat] ( https://badges.gitter.im/ruby-rdf/rdf.png )] ( https://gitter.im/ruby-rdf/rdf )
9
9
10
10
## Description
Original file line number Diff line number Diff line change 1
- 3.1.2
1
+ 3.1.3
Original file line number Diff line number Diff line change 14
14
doap:homepage <https://ruby-rdf.github.com/ld-patch> ;
15
15
doap:license <https://unlicense.org/1.0/> ;
16
16
doap:shortdesc " W3C Linked Data Patch Format for RDF.rb." @en ;
17
- doap:description """
18
- Implements the W3C Linked Data Patch Format and operations for RDF.rb.
19
- Makes use of the SPARQL gem for performing updates
20
- """ @en ;
17
+ doap:description " Implements the W3C Linked Data Patch Format and operations for RDF.rb." @en ;
21
18
doap:created " 2015-08-23" ^^xsd:date ;
22
19
doap:programming-language " Ruby" ;
23
20
doap:implements <http://www.w3.org/TR/ldpatch/> ;
31
28
doap:maintainer <https://greggkellogg.net/foaf#me> ;
32
29
doap:documenter <https://greggkellogg.net/foaf#me> ;
33
30
foaf:maker <https://greggkellogg.net/foaf#me> ;
34
- dc:title " LD::Patch" ;
35
- dc:description """
36
- Implements the W3C Linked Data Patch Format and operations for RDF.rb.
37
- Makes use of the SPARQL gem for performing updates
38
- """ @en ;
39
- dc:date " 2015-08-23" ^^xsd:date ;
40
31
dc:creator <https://greggkellogg.net/foaf#me> ;
41
32
dc:isPartOf <https://rubygems.org/gems/rdf> .
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def execute(queryable, options = {})
43
43
end
44
44
45
45
# Also delete triples having var in the object position
46
- queryable . query ( object : var ) . each do |statement |
46
+ queryable . query ( { object : var } ) . each do |statement |
47
47
queryable . delete ( statement )
48
48
cut_count += 1
49
49
end
Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ def execute(queryable, options = {})
52
52
case op
53
53
when RDF ::URI
54
54
terms . map do |subject |
55
- queryable . query ( subject : subject , predicate : op ) . map ( &:object )
55
+ queryable . query ( { subject : subject , predicate : op } ) . map ( &:object )
56
56
end . flatten
57
57
when SPARQL ::Algebra ::Query
58
58
# Get path solutions for each term for op
59
- op . execute ( queryable , options . merge ( terms : terms ) ) . map do |soln |
59
+ op . execute ( queryable , ** options . merge ( terms : terms ) ) . map do |soln |
60
60
soln . path
61
61
end . flatten
62
62
else
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Prefix < SPARQL::Algebra::Operator::Binary
31
31
# @see http://www.w3.org/TR/rdf-sparql-query/#sparqlAlgebra
32
32
def execute ( queryable , options = { } , &block )
33
33
debug ( options ) { "Prefix" }
34
- @solutions = queryable . query ( operands . last , options . merge ( depth : options [ :depth ] . to_i + 1 ) , &block )
34
+ @solutions = queryable . query ( operands . last , ** options . merge ( depth : options [ :depth ] . to_i + 1 ) , &block )
35
35
end
36
36
37
37
##
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def execute(queryable, options = {})
30
30
terms = Array ( options . fetch ( :terms ) )
31
31
32
32
results = terms . map do |object |
33
- queryable . query ( object : object , predicate : op ) . map ( &:subject )
33
+ queryable . query ( { object : object , predicate : op } ) . map ( &:subject )
34
34
end . flatten
35
35
36
36
RDF ::Query ::Solutions . new ( results . map { |t | RDF ::Query ::Solution . new ( path : t ) } )
You can’t perform that action at this time.
0 commit comments