$LOAD_PATH << File.expand_path( File.dirname(__FILE__) + '/../lib' ) require 'rubygems' require 'opentox-ruby-minimal' require 'test/unit' #require 'validate-owl' class FeatureTest < Test::Unit::TestCase def setup @features = [ #@@classification_training_dataset.features.keys.first, "http://apps.ideaconsult.net:8080/ambit2/feature/35796", #File.join(OpenTox::Model::Lazar.all.last,"predicted","value") ] end def test_feature @features.each do |uri| puts uri f = OpenTox::Feature.new(uri) metadata = f.metadata puts metadata.inspect assert_equal RDF::OT.Feature, metadata[RDF.type] end end =begin def test_owl #@features.each do |uri| validate_owl @features.first, @@subjectid unless CONFIG[:services]["opentox-dataset"].match(/localhost/) validate_owl @features.last, @@subjectid unless CONFIG[:services]["opentox-dataset"].match(/localhost/) # Ambit does not validate #end end =end end