01: /*
02: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
03: [See end of file]
04: $Id: TestVocabRDFS.java,v 1.10 2008/01/02 12:08:10 andy_seaborne Exp $
05: */
06:
07: package com.hp.hpl.jena.vocabulary.test;
08:
09: import com.hp.hpl.jena.rdf.model.test.ModelTestBase;
10: import com.hp.hpl.jena.vocabulary.*;
11: import junit.framework.*;
12:
13: /**
14: @author kers
15: */
16: public class TestVocabRDFS extends ModelTestBase {
17: public TestVocabRDFS(String name) {
18: super (name);
19: }
20:
21: public static TestSuite suite() {
22: return new TestSuite(TestVocabRDFS.class);
23: }
24:
25: public void testVocabRDFS() {
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 + "Container", RDFS.Container.getURI());
31: assertEquals(ns + "ContainerMembershipProperty",
32: RDFS.ContainerMembershipProperty.getURI());
33: assertEquals(ns + "Literal", RDFS.Literal.getURI());
34: assertEquals(ns + "Resource", RDFS.Resource.getURI());
35: assertEquals(ns + "comment", RDFS.comment.getURI());
36: assertEquals(ns + "domain", RDFS.domain.getURI());
37: assertEquals(ns + "label", RDFS.label.getURI());
38: assertEquals(ns + "isDefinedBy", RDFS.isDefinedBy.getURI());
39: assertEquals(ns + "range", RDFS.range.getURI());
40: assertEquals(ns + "seeAlso", RDFS.seeAlso.getURI());
41: assertEquals(ns + "subClassOf", RDFS.subClassOf.getURI());
42: assertEquals(ns + "subPropertyOf", RDFS.subPropertyOf.getURI());
43: assertEquals(ns + "member", RDFS.member.getURI());
44: }
45:
46: public void testNodes() {
47: assertEquals(RDFS.Class.asNode(), RDFS.Nodes.Class);
48: assertEquals(RDFS.Datatype.asNode(), RDFS.Nodes.Datatype);
49: assertEquals(RDFS.Container.asNode(), RDFS.Nodes.Container);
50: assertEquals(RDFS.ContainerMembershipProperty.asNode(),
51: RDFS.Nodes.ContainerMembershipProperty);
52: assertEquals(RDFS.Literal.asNode(), RDFS.Nodes.Literal);
53: assertEquals(RDFS.Resource.asNode(), RDFS.Nodes.Resource);
54: assertEquals(RDFS.comment.asNode(), RDFS.Nodes.comment);
55: assertEquals(RDFS.domain.asNode(), RDFS.Nodes.domain);
56: assertEquals(RDFS.label.asNode(), RDFS.Nodes.label);
57: assertEquals(RDFS.isDefinedBy.asNode(), RDFS.Nodes.isDefinedBy);
58: assertEquals(RDFS.range.asNode(), RDFS.Nodes.range);
59: assertEquals(RDFS.seeAlso.asNode(), RDFS.Nodes.seeAlso);
60: assertEquals(RDFS.subClassOf.asNode(), RDFS.Nodes.subClassOf);
61: assertEquals(RDFS.subPropertyOf.asNode(),
62: RDFS.Nodes.subPropertyOf);
63: assertEquals(RDFS.member.asNode(), RDFS.Nodes.member);
64: }
65: }
66:
67: /*
68: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
69: All rights reserved.
70:
71: Redistribution and use in source and binary forms, with or without
72: modification, are permitted provided that the following conditions
73: are met:
74:
75: 1. Redistributions of source code must retain the above copyright
76: notice, this list of conditions and the following disclaimer.
77:
78: 2. Redistributions in binary form must reproduce the above copyright
79: notice, this list of conditions and the following disclaimer in the
80: documentation and/or other materials provided with the distribution.
81:
82: 3. The name of the author may not be used to endorse or promote products
83: derived from this software without specific prior written permission.
84:
85: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
86: IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
87: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
88: IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
89: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
90: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
91: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
92: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
93: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
94: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
95: */
|