# File test/test_resource.rb, line 67 def test_type() model = Model.new() resource = model.create_resource() resource.type = @foaf['Person'] assert_equal(Node.new(:uri_string=>'http://xmlns.com/foaf/0.1/Person'), resource.get_property(TYPE)) assert_equal(@foaf['Person'],resource.type) resource.type = @faa['Project'] assert_equal(Node.new(:uri_string=>'http://www.faa.gov/faa#Project'),resource.type) puts resource.model.triples() end