summaryrefslogtreecommitdiff
path: root/validate-owl.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-06-17 15:21:14 +0200
committerChristoph Helma <helma@in-silico.ch>2011-06-17 15:21:14 +0200
commit983ad5cd9d1bc9f2ccd931b7d75fbb8b95e5f873 (patch)
tree7f2f0a85bfa4b4209c5308a6cb8fdf55fda7b029 /validate-owl.rb
parentec9aaf16bff077231e7fe3ff300492df3df432e2 (diff)
lazar dumpfiles implemented
Diffstat (limited to 'validate-owl.rb')
-rw-r--r--validate-owl.rb6
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