owlcpp  v0.3.3~
C++ library for working with OWL ontologies
 All Classes Namespaces Files Functions Macros Pages
node_tags_owl.hpp
Go to the documentation of this file.
1 
6 #ifndef NODE_TAGS_OWL_HPP_
7 #define NODE_TAGS_OWL_HPP_
8 #include "boost/preprocessor/arithmetic/add.hpp"
9 #include "boost/preprocessor/seq/size.hpp"
12 
16 #define OWLCPP_TERMS_RDFS_N0_ 5
17 #define OWLCPP_TERMS_RDFS \
18  ((rdfs)(Class)) \
19  ((rdfs)(Container)) \
20  ((rdfs)(ContainerMembershipProperty)) \
21  ((rdfs)(Datatype)) \
22  ((rdfs)(Literal)) \
23  ((rdfs)(Resource)) \
24  ((rdfs)(comment)) \
25  ((rdfs)(domain)) \
26  ((rdfs)(isDefinedBy)) \
27  ((rdfs)(label)) \
28  ((rdfs)(member)) \
29  ((rdfs)(range)) \
30  ((rdfs)(seeAlso)) \
31  ((rdfs)(subClassOf)) \
32  ((rdfs)(subPropertyOf)) \
33 /*
34 */
35 
36 namespace owlcpp{ namespace terms{
37 
53 
54 }//namespace terms
55 }//namespace owlcpp
56 
59 #define OWLCPP_TERMS_RDF_N0_ \
60  BOOST_PP_ADD(OWLCPP_TERMS_RDFS_N0_, BOOST_PP_SEQ_SIZE(OWLCPP_TERMS_RDFS))
61 #define OWLCPP_TERMS_RDF \
62  ((rdf)(List)) \
63  ((rdf)(PlainLiteral)) \
64  ((rdf)(Property)) \
65  ((rdf)(first)) \
66  ((rdf)(langRange)) \
67  ((rdf)(nil)) \
68  ((rdf)(rest)) \
69  ((rdf)(type)) \
70  ((rdf)(XMLLiteral)) \
71 /*
72  ((rdf)(Statement)) \
73  ((rdf)(subject)) \
74  ((rdf)(predicate)) \
75  ((rdf)(object)) \
76  ((rdf)(Seq)) \
77  ((rdf)(Bag)) \
78  ((rdf)(Alt)) \
79  ((rdf)(_1)) \
80  ((rdf)(_2)) \
81  ((rdf)(value)) \
82 */
83 namespace owlcpp{ namespace terms{
85 }}
86 
90 #define OWLCPP_TERMS_OWL1_N0_ \
91  BOOST_PP_ADD(OWLCPP_TERMS_RDF_N0_, BOOST_PP_SEQ_SIZE(OWLCPP_TERMS_RDF))
92 #define OWLCPP_TERMS_OWL1 \
93  ((owl)(AllDifferent)) \
94  ((owl)(AllDisjointClasses)) \
95  ((owl)(AllDisjointProperties)) \
96  ((owl)(allValuesFrom)) \
97  ((owl)(annotatedProperty)) \
98  ((owl)(annotatedSource)) \
99  ((owl)(annotatedTarget)) \
100  ((owl)(Annotation)) \
101  ((owl)(AnnotationProperty)) \
102  ((owl)(assertionProperty)) \
103  ((owl)(AsymmetricProperty)) \
104  ((owl)(Axiom)) \
105  ((owl)(backwardCompatibleWith)) \
106  ((owl)(bottomDataProperty)) \
107  ((owl)(bottomObjectProperty)) \
108  ((owl)(cardinality)) \
109  ((owl)(Class)) \
110  ((owl)(complementOf)) \
111  ((owl)(DataRange)) \
112  ((owl)(datatypeComplementOf)) \
113  ((owl)(DatatypeProperty)) \
114  ((owl)(deprecated)) \
115  ((owl)(DeprecatedClass)) \
116  ((owl)(DeprecatedProperty)) \
117  ((owl)(differentFrom)) \
118  ((owl)(disjointUnionOf)) \
119  ((owl)(disjointWith)) \
120  ((owl)(distinctMembers)) \
121  ((owl)(equivalentClass)) \
122  ((owl)(equivalentProperty)) \
123  ((owl)(FunctionalProperty)) \
124  ((owl)(hasKey)) \
125  ((owl)(hasSelf)) \
126  ((owl)(hasValue)) \
127  ((owl)(imports)) \
128  ((owl)(incompatibleWith)) \
129  ((owl)(intersectionOf)) \
130  ((owl)(InverseFunctionalProperty)) \
131  ((owl)(inverseOf)) \
132 /* */
133 namespace owlcpp{ namespace terms{
135 }}
136 
137 #define OWLCPP_TERMS_OWL2_N0_ \
138  BOOST_PP_ADD(OWLCPP_TERMS_OWL1_N0_, BOOST_PP_SEQ_SIZE(OWLCPP_TERMS_OWL1))
139 #define OWLCPP_TERMS_OWL2 \
140  ((owl)(IrreflexiveProperty)) \
141  ((owl)(maxCardinality)) \
142  ((owl)(maxQualifiedCardinality)) \
143  ((owl)(members)) \
144  ((owl)(minCardinality)) \
145  ((owl)(minQualifiedCardinality)) \
146  ((owl)(NamedIndividual)) \
147  ((owl)(NegativePropertyAssertion)) \
148  ((owl)(Nothing)) \
149  ((owl)(ObjectProperty)) \
150  ((owl)(onClass)) \
151  ((owl)(onDataRange)) \
152  ((owl)(onDatatype)) \
153  ((owl)(oneOf)) \
154  ((owl)(onProperties)) \
155  ((owl)(onProperty)) \
156  ((owl)(Ontology)) \
157  ((owl)(OntologyProperty)) \
158  ((owl)(priorVersion)) \
159  ((owl)(propertyChainAxiom)) \
160  ((owl)(propertyDisjointWith)) \
161  ((owl)(qualifiedCardinality)) \
162  ((owl)(rational)) \
163  ((owl)(real)) \
164  ((owl)(ReflexiveProperty)) \
165  ((owl)(Restriction)) \
166  ((owl)(sameAs)) \
167  ((owl)(someValuesFrom)) \
168  ((owl)(sourceIndividual)) \
169  ((owl)(SymmetricProperty)) \
170  ((owl)(targetIndividual)) \
171  ((owl)(targetValue)) \
172  ((owl)(Thing)) \
173  ((owl)(topDataProperty)) \
174  ((owl)(topObjectProperty)) \
175  ((owl)(TransitiveProperty)) \
176  ((owl)(unionOf)) \
177  ((owl)(versionInfo)) \
178  ((owl)(versionIRI)) \
179  ((owl)(withRestrictions)) \
180 /* */
181 namespace owlcpp{ namespace terms{
182 OWLCPP_GENERATE_NODE_TAGS(OWLCPP_TERMS_OWL2, OWLCPP_TERMS_OWL2_N0_)
183 }}
184 
185 //TODO: map to internally stored types
188 #define OWLCPP_TERMS_XSD_N0_ \
189  BOOST_PP_ADD(OWLCPP_TERMS_OWL2_N0_, BOOST_PP_SEQ_SIZE(OWLCPP_TERMS_OWL2))
190 #define OWLCPP_TERMS_XSD \
191  ((xsd)(anyURI)) \
192  ((xsd)(base64Binary)) \
193  ((xsd)(boolean)) \
194  ((xsd)(byte)) \
195  ((xsd)(date)) \
196  ((xsd)(dateTime)) \
197  ((xsd)(dateTimeStamp)) \
198  ((xsd)(decimal)) \
199  ((xsd)(double)) \
200  ((xsd)(duration)) \
201  ((xsd)(ENTITIES)) \
202  ((xsd)(ENTITY)) \
203  ((xsd)(float)) \
204  ((xsd)(gMonthDay)) \
205  ((xsd)(gYear)) \
206  ((xsd)(gYearMonth)) \
207  ((xsd)(gDay)) \
208  ((xsd)(gMonth)) \
209  ((xsd)(hexBinary)) \
210  ((xsd)(ID)) \
211  ((xsd)(IDREF)) \
212  ((xsd)(IDREFS)) \
213  ((xsd)(int)) \
214  ((xsd)(integer)) \
215  ((xsd)(language)) \
216  ((xsd)(long)) \
217  ((xsd)(maxExclusive)) \
218  ((xsd)(maxInclusive)) \
219  ((xsd)(minExclusive)) \
220  ((xsd)(minInclusive)) \
221  ((xsd)(Name)) \
222  ((xsd)(NCName)) \
223  ((xsd)(negativeInteger)) \
224  ((xsd)(NMTOKEN)) \
225  ((xsd)(nonNegativeInteger)) \
226  ((xsd)(nonPositiveInteger)) \
227  ((xsd)(normalizedString)) \
228  ((xsd)(NOTATION)) \
229  ((xsd)(positiveInteger)) \
230  ((xsd)(QName)) \
231  ((xsd)(short)) \
232  ((xsd)(string)) \
233  ((xsd)(time)) \
234  ((xsd)(token)) \
235  ((xsd)(unsignedByte)) \
236  ((xsd)(unsignedInt)) \
237  ((xsd)(unsignedLong)) \
238  ((xsd)(unsignedShort)) \
239 /* */
240 namespace owlcpp{ namespace terms{
242 }}
243 
244 #define OWLCPP_NODE_TAGS_TOTAL \
245  BOOST_PP_ADD(OWLCPP_TERMS_XSD_N0_, BOOST_PP_SEQ_SIZE(OWLCPP_TERMS_XSD))
246 
247 #endif /* NODE_TAGS_OWL_HPP_ */