1 6 7 package com.hp.hpl.jena.vocabulary.test; 8 9 import com.hp.hpl.jena.rdf.model.test.ModelTestBase; 10 import com.hp.hpl.jena.vocabulary.*; 11 import junit.framework.*; 12 13 16 public class TestVocabRDFS extends ModelTestBase 17 { 18 public TestVocabRDFS(String name) 19 { super(name); } 20 21 public static TestSuite suite() 22 { return new TestSuite( TestVocabRDFS.class ); } 23 24 public void testVocabRDFS() 25 { 26 String ns = "http://www.w3.org/2000/01/rdf-schema#"; 27 assertEquals( ns, RDFS.getURI() ); 28 assertEquals( ns + "Class", RDFS.Class.getURI() ); 29 assertEquals( ns + "Datatype", RDFS.Datatype.getURI() ); 30 assertEquals( ns + "ConstraintProperty", RDFS.ConstraintProperty.getURI() ); 31 assertEquals( ns + "Container", RDFS.Container.getURI() ); 32 assertEquals( ns + "ContainerMembershipProperty", RDFS.ContainerMembershipProperty.getURI() ); 33 assertEquals( ns + "ConstraintResource", RDFS.ConstraintResource.getURI() ); 34 assertEquals( ns + "Literal", RDFS.Literal.getURI() ); 35 assertEquals( ns + "Resource", RDFS.Resource.getURI() ); 36 assertEquals( ns + "comment", RDFS.comment.getURI() ); 37 assertEquals( ns + "domain", RDFS.domain.getURI() ); 38 assertEquals( ns + "label", RDFS.label.getURI() ); 39 assertEquals( ns + "isDefinedBy", RDFS.isDefinedBy.getURI() ); 40 assertEquals( ns + "range", RDFS.range.getURI() ); 41 assertEquals( ns + "seeAlso", RDFS.seeAlso.getURI() ); 42 assertEquals( ns + "subClassOf", RDFS.subClassOf.getURI() ); 43 assertEquals( ns + "subPropertyOf", RDFS.subPropertyOf.getURI() ); 44 assertEquals( ns + "member", RDFS.member.getURI() ); 45 } 46 47 public void testNodes() 48 { 49 assertEquals( RDFS.Class.getNode(), RDFS.Nodes.Class ); 50 assertEquals( RDFS.Datatype.getNode(), RDFS.Nodes.Datatype ); 51 assertEquals( RDFS.ConstraintProperty.getNode(), RDFS.Nodes.ConstraintProperty ); 52 assertEquals( RDFS.Container.getNode(), RDFS.Nodes.Container ); 53 assertEquals( RDFS.ContainerMembershipProperty.getNode(), RDFS.Nodes.ContainerMembershipProperty ); 54 assertEquals( RDFS.ConstraintProperty.getNode(), RDFS.Nodes.ConstraintProperty ); 55 assertEquals( RDFS.Literal.getNode(), RDFS.Nodes.Literal ); 56 assertEquals( RDFS.Resource.getNode(), RDFS.Nodes.Resource ); 57 assertEquals( RDFS.comment.getNode(), RDFS.Nodes.comment ); 58 assertEquals( RDFS.domain.getNode(), RDFS.Nodes.domain ); 59 assertEquals( RDFS.label.getNode(), RDFS.Nodes.label ); 60 assertEquals( RDFS.isDefinedBy.getNode(), RDFS.Nodes.isDefinedBy ); 61 assertEquals( RDFS.range.getNode(), RDFS.Nodes.range ); 62 assertEquals( RDFS.seeAlso.getNode(), RDFS.Nodes.seeAlso ); 63 assertEquals( RDFS.subClassOf.getNode(), RDFS.Nodes.subClassOf ); 64 assertEquals( RDFS.subPropertyOf.getNode(), RDFS.Nodes.subPropertyOf ); 65 assertEquals( RDFS.member.getNode(), RDFS.Nodes.member ); 66 } 67 } 68 69 70 99 | Popular Tags |