Skip to content

Commit

Permalink
update owl wrapper version to v1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jun 26, 2024
1 parent 452c5e2 commit c2ac9e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/controllers/test_properties_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ def test_properties
get "/ontologies/#{@@acronyms.first}/properties"
assert last_response.ok?
results = MultiJson.load(last_response.body)
assert_includes [85, 56], results.length # depending if owlapi imports SKOS
assert_equal 81, results.length

get "/ontologies/#{@@acronyms.last}/properties"
assert last_response.ok?
results = MultiJson.load(last_response.body)
assert_includes [35] , results.length # depending if owlapi imports SKOS
assert_equal 35, results.length
end

def test_single_property
Expand All @@ -59,7 +59,7 @@ def test_property_roots
get "/ontologies/#{@@acronyms.first}/properties/roots"
assert last_response.ok?
pr = MultiJson.load(last_response.body)
assert_includes [62, 52], pr.length #depending if owlapi import SKOS
assert_equal 58, pr.length

# count object properties
opr = pr.select { |p| p["@type"] == "http://www.w3.org/2002/07/owl#ObjectProperty" }
Expand Down Expand Up @@ -108,7 +108,7 @@ def test_property_tree
get "/ontologies/#{@@acronyms.first}/properties/http%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23topConceptOf/tree"
assert last_response.ok?
pr = MultiJson.load(last_response.body)
assert_equal 62, pr.length
assert_equal 58, pr.length
num_found = 0

pr.each do |p|
Expand Down

0 comments on commit c2ac9e0

Please sign in to comment.