diff options
author | mr <mr@mrautenberg.de> | 2011-08-04 18:33:23 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-08-04 18:33:23 +0200 |
commit | 878f522af1d1ac2f132c5b6adb0deacdbd19cfa8 (patch) | |
tree | 429ffb8e6c7d1cf5c2577bfecfa0b84540b1e820 /validate-owl.rb | |
parent | 4c57b6e63fec00a92fa292687302f24f672f3f50 (diff) | |
parent | 9acc6d8a01acbfd2d700edcc2077d1566b8ae44e (diff) |
Merge branch 'release/v2.1.0'v2.1.0
Diffstat (limited to 'validate-owl.rb')
-rw-r--r-- | validate-owl.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/validate-owl.rb b/validate-owl.rb index e219d58..2152e7d 100644 --- a/validate-owl.rb +++ b/validate-owl.rb @@ -2,7 +2,11 @@ def validate_owl(uri, subjectid=nil) if validator_available? owl = OpenTox::RestClientWrapper.get(uri,{:accept => "application/rdf+xml",:subjectid => subjectid}, nil, false) html = OpenTox::RestClientWrapper.post("http://www.mygrid.org.uk/OWL/Validator",{:rdf => owl, :level => "DL",:subjectid => subjectid}) - assert_match(/YES/,html) + # assert_match(/YES/,html) + # avoid verbose html output if validation fails + owl_dl = false + owl_dl = true if html =~ /YES/ + assert_equal true, owl_dl, "Invalid OWL-DL: #{uri}" else puts "http://www.mygrid.org.uk/OWL/Validator offline" end |