Skip to content

Commit

Permalink
RDF::SKOS is replaced with RDF::Vocab::SKOS in the latest version of RDF
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Feb 20, 2024
1 parent 2da7a41 commit acbb9c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ group :profiling do
end

gem 'sparql-client', github: 'ontoportal-lirmm/sparql-client', branch: 'master'
gem 'faraday', '2.7.11' #unpin if we no more support ruby 2.7
13 changes: 6 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ GEM
docile (1.4.0)
domain_name (0.6.20240107)
eventmachine (1.2.7)
faraday (2.9.0)
faraday-net_http (>= 2.0, < 3.2)
faraday-net_http (3.1.0)
net-http
faraday (2.7.11)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
ffi (1.16.3)
htmlentities (4.3.4)
http-accept (1.7.0)
Expand All @@ -69,8 +70,6 @@ GEM
multi_json (1.15.0)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
net-http (0.4.1)
uri
net-http-persistent (2.9.4)
netrc (0.11.0)
pry (0.14.2)
Expand Down Expand Up @@ -140,7 +139,6 @@ GEM
thread_safe (0.3.6)
tilt (2.3.0)
tzinfo (0.3.62)
uri (0.13.0)
uuid (2.3.9)
macaddr (~> 1.0)

Expand All @@ -152,6 +150,7 @@ PLATFORMS
DEPENDENCIES
activesupport
cube-ruby
faraday (= 2.7.11)
goo!
minitest (< 5.0)
pry
Expand Down
4 changes: 2 additions & 2 deletions test/test_model_complex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ def self.tree_property(*args)
if collection.id.to_s["submission1"]
return RDF::RDFS[:subClassOf]
end
return RDF::SKOS[:broader]
return RDF::Vocab::SKOS[:broader]
end

def self.class_rdf_type(*args)
collection = args.flatten.first
if collection.id.to_s["submission1"]
return RDF::OWL[:Class]
end
return RDF::SKOS[:Concept]
return RDF::Vocab::SKOS[:Concept]
end

attribute :methodBased, namespace: :rdfs, property: :subClassOf, handler: :dataMethod
Expand Down

0 comments on commit acbb9c9

Please sign in to comment.