~ubuntu-branches/ubuntu/gutsy/soprano/gutsy

« back to all changes in this revision

Viewing changes to soprano/vocabulary/rdfs.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-12 14:43:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071012144348-yajzi51v4k23ahxf
Tags: 1.95.0~beta2-1ubuntu1
* Sync with Debian
* Add versioned build-dep on raptor

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of Soprano Project.
 
3
 *
 
4
 * Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Library General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Library General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Library General Public License
 
17
 * along with this library; see the file COPYING.LIB.  If not, write to
 
18
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
19
 * Boston, MA 02110-1301, USA.
 
20
 */
 
21
 
 
22
#include "rdfs.h"
 
23
 
 
24
class Rdfs
 
25
{
 
26
public:
 
27
    Rdfs()
 
28
        : rdfsNs( "http://www.w3.org/2000/01/rdf-schema#" ),
 
29
          rdfsClass( "http://www.w3.org/2000/01/rdf-schema#Class" ),
 
30
          rdfsComment( "http://www.w3.org/2000/01/rdf-schema#comment" ),
 
31
          rdfsDatatype( "http://www.w3.org/2000/01/rdf-schema#Datatype" ),
 
32
          rdfsDomain( "http://www.w3.org/2000/01/rdf-schema#domain" ),
 
33
          rdfsRange( "http://www.w3.org/2000/01/rdf-schema#range" ),
 
34
          rdfsLabel( "http://www.w3.org/2000/01/rdf-schema#label" ),
 
35
          rdfsSubClassOf( "http://www.w3.org/2000/01/rdf-schema#subClassOf" ),
 
36
          rdfsSubPropertyOf( "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" ),
 
37
          rdfsSeeAlso( "http://www.w3.org/2000/01/rdf-schema#seeAlso" ),
 
38
          rdfsResource( "http://www.w3.org/2000/01/rdf-schema#Resource" ),
 
39
          rdfsMember( "http://www.w3.org/2000/01/rdf-schema#member" ),
 
40
          rdfsLiteral( "http://www.w3.org/2000/01/rdf-schema#Literal" ),
 
41
          rdfsIsDefinedBy( "http://www.w3.org/2000/01/rdf-schema#isDefinedBy" ),
 
42
          rdfsContainer( "http://www.w3.org/2000/01/rdf-schema#Container" ),
 
43
          rdfsContainerMembershipProperty( "http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty" ) {
 
44
    }
 
45
 
 
46
    QUrl rdfsNs;
 
47
    QUrl rdfsClass;
 
48
    QUrl rdfsComment;
 
49
    QUrl rdfsDatatype;
 
50
    QUrl rdfsDomain;
 
51
    QUrl rdfsRange;
 
52
    QUrl rdfsLabel;
 
53
    QUrl rdfsSubClassOf;
 
54
    QUrl rdfsSubPropertyOf;
 
55
    QUrl rdfsSeeAlso;
 
56
    QUrl rdfsResource;
 
57
    QUrl rdfsMember;
 
58
    QUrl rdfsLiteral;
 
59
    QUrl rdfsIsDefinedBy;
 
60
    QUrl rdfsContainer;
 
61
    QUrl rdfsContainerMembershipProperty;
 
62
};
 
63
 
 
64
 
 
65
Q_GLOBAL_STATIC( Rdfs, rdfs )
 
66
 
 
67
 
 
68
QUrl Soprano::Vocabulary::RDFS::rdfsNamespace()
 
69
{
 
70
    return rdfs()->rdfsNs;
 
71
}
 
72
 
 
73
 
 
74
QUrl Soprano::Vocabulary::RDFS::Class()
 
75
{
 
76
    return rdfs()->rdfsClass;
 
77
}
 
78
 
 
79
 
 
80
QUrl Soprano::Vocabulary::RDFS::comment()
 
81
{
 
82
    return rdfs()->rdfsComment;
 
83
}
 
84
 
 
85
 
 
86
QUrl Soprano::Vocabulary::RDFS::Datatype()
 
87
{
 
88
    return rdfs()->rdfsDatatype;
 
89
}
 
90
 
 
91
 
 
92
QUrl Soprano::Vocabulary::RDFS::domain()
 
93
{
 
94
    return rdfs()->rdfsDomain;
 
95
}
 
96
 
 
97
 
 
98
QUrl Soprano::Vocabulary::RDFS::range()
 
99
{
 
100
    return rdfs()->rdfsRange;
 
101
}
 
102
 
 
103
 
 
104
QUrl Soprano::Vocabulary::RDFS::label()
 
105
{
 
106
    return rdfs()->rdfsLabel;
 
107
}
 
108
 
 
109
 
 
110
QUrl Soprano::Vocabulary::RDFS::subClassOf()
 
111
{
 
112
    return rdfs()->rdfsSubClassOf;
 
113
}
 
114
 
 
115
 
 
116
QUrl Soprano::Vocabulary::RDFS::subPropertyOf()
 
117
{
 
118
    return rdfs()->rdfsSubPropertyOf;
 
119
}
 
120
 
 
121
 
 
122
QUrl Soprano::Vocabulary::RDFS::seeAlso()
 
123
{
 
124
    return rdfs()->rdfsSeeAlso;
 
125
}
 
126
 
 
127
 
 
128
QUrl Soprano::Vocabulary::RDFS::Resource()
 
129
{
 
130
    return rdfs()->rdfsResource;
 
131
}
 
132
 
 
133
 
 
134
QUrl Soprano::Vocabulary::RDFS::member()
 
135
{
 
136
    return rdfs()->rdfsMember;
 
137
}
 
138
 
 
139
 
 
140
QUrl Soprano::Vocabulary::RDFS::Literal()
 
141
{
 
142
    return rdfs()->rdfsLiteral;
 
143
}
 
144
 
 
145
 
 
146
QUrl Soprano::Vocabulary::RDFS::isDefinedBy()
 
147
{
 
148
    return rdfs()->rdfsIsDefinedBy;
 
149
}
 
150
 
 
151
 
 
152
QUrl Soprano::Vocabulary::RDFS::Container()
 
153
{
 
154
    return rdfs()->rdfsContainer;
 
155
}
 
156
 
 
157
 
 
158
QUrl Soprano::Vocabulary::RDFS::ContainerMembershipProperty()
 
159
{
 
160
    return rdfs()->rdfsContainerMembershipProperty;
 
161
}