File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def test_instance_counts_ontology
4141 assert_equal 714 , instances . length
4242 end
4343
44- def test_instance_labels
44+ def test_instance_types
4545 submission_parse ( 'TESTINST' , 'Testing instances' ,
4646 'test/data/ontology_files/XCTontologyvtemp2_vvtemp2.zip' ,
4747 12 ,
@@ -53,17 +53,17 @@ def test_instance_labels
5353
5454 instances = LinkedData ::InstanceLoader . get_instances_by_class ( submission_id , class_id )
5555 instances . each do |inst |
56- assert ( not inst . label . nil? )
56+ assert ( not inst . types . nil? )
5757 assert ( not inst . id . nil? )
5858 end
5959
6060 inst1 = instances . find { |inst | inst . id . to_s == 'http://www.owl-ontologies.com/OntologyXCT.owl#PresenceofAbnormalFacialShapeAt46' }
6161 assert !inst1 . nil?
62- assert_equal 'PresenceofAbnormalFacialShapeAt46' , inst1 . label
62+ assert_includes inst1 . types , class_id
6363
6464 inst2 = instances . find { |inst | inst . id . to_s == 'http://www.owl-ontologies.com/OntologyXCT.owl#PresenceofGaitDisturbanceAt50' }
6565 assert !inst2 . nil?
66- assert_equal 'PresenceofGaitDisturbanceAt50' , inst2 . label
66+ assert_includes inst2 . types , class_id
6767 end
6868
6969 def test_instance_properties
You can’t perform that action at this time.
0 commit comments