File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ repo_token : RoxdgPedMabKaRMN2QPrPD2pWVbaicMW1
Original file line number Diff line number Diff line change 2323 - 2.5
2424 - 2.6
2525 - 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
2828 - jruby
2929 steps :
3030 - name : Clone repository
Original file line number Diff line number Diff line change @@ -24,5 +24,4 @@ group :development, :test do
2424 gem 'erubis'
2525 gem 'simplecov' , platforms : :mri
2626 gem 'coveralls' , '~> 0.8' , platforms : :mri
27- gem 'awesome_print' , github : 'akshaymohite/awesome_print'
2827end
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][].
44
55[ ![ Gem Version] ( https://badge.fury.io/rb/ld-patch.png )] ( https://badge.fury.io/rb/ld-patch )
66[ ![ 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 )
88[ ![ Gitter chat] ( https://badges.gitter.im/ruby-rdf/rdf.png )] ( https://gitter.im/ruby-rdf/rdf )
99
1010## 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 1414 doap:homepage <https://ruby-rdf.github.com/ld-patch> ;
1515 doap:license <https://unlicense.org/1.0/> ;
1616 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 ;
2118 doap:created " 2015-08-23" ^^xsd:date ;
2219 doap:programming-language " Ruby" ;
2320 doap:implements <http://www.w3.org/TR/ldpatch/> ;
3128 doap:maintainer <https://greggkellogg.net/foaf#me> ;
3229 doap:documenter <https://greggkellogg.net/foaf#me> ;
3330 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 ;
4031 dc:creator <https://greggkellogg.net/foaf#me> ;
4132 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 = {})
4343 end
4444
4545 # 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 |
4747 queryable . delete ( statement )
4848 cut_count += 1
4949 end
Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ def execute(queryable, options = {})
5252 case op
5353 when RDF ::URI
5454 terms . map do |subject |
55- queryable . query ( subject : subject , predicate : op ) . map ( &:object )
55+ queryable . query ( { subject : subject , predicate : op } ) . map ( &:object )
5656 end . flatten
5757 when SPARQL ::Algebra ::Query
5858 # 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 |
6060 soln . path
6161 end . flatten
6262 else
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Prefix < SPARQL::Algebra::Operator::Binary
3131 # @see http://www.w3.org/TR/rdf-sparql-query/#sparqlAlgebra
3232 def execute ( queryable , options = { } , &block )
3333 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 )
3535 end
3636
3737 ##
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def execute(queryable, options = {})
3030 terms = Array ( options . fetch ( :terms ) )
3131
3232 results = terms . map do |object |
33- queryable . query ( object : object , predicate : op ) . map ( &:subject )
33+ queryable . query ( { object : object , predicate : op } ) . map ( &:subject )
3434 end . flatten
3535
3636 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