owlcpp
v0.3.3~
C++ library for working with OWL ontologies
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Macros
Pages
include
owlcpp
terms
ns_iri_tags.hpp
Go to the documentation of this file.
1
6
#ifndef NS_IRI_TAGS_HPP_
7
#define NS_IRI_TAGS_HPP_
8
13
#define OWLCPP_NAMESPACE_IRI_LIST \
14
((empty)("")("")) \
15
((blank)("_")("_")) \
16
((rdf)("rdf")("http://www.w3.org/1999/02/22-rdf-syntax-ns")) \
17
((rdfs)("rdfs")("http://www.w3.org/2000/01/rdf-schema")) \
18
((xsd)("xsd")("http://www.w3.org/2001/XMLSchema")) \
19
((owl)("owl")("http://www.w3.org/2002/07/owl")) \
20
/* */
21
22
#include "
owlcpp/terms/ns_iri_tag_gen_macro.hpp
"
23
#include "boost/preprocessor/seq/size.hpp"
24
#define OWLCPP_NAMESPACE_TAGS_TOTAL BOOST_PP_SEQ_SIZE(OWLCPP_NAMESPACE_IRI_LIST)
25
26
namespace
owlcpp{
namespace
terms{
27
45
OWLCPP_GENERATE_NAMESPACE_TAGS
(
OWLCPP_NAMESPACE_IRI_LIST
, 0)
46
47
}
//namespace terms
48
49
52
inline
bool
is_empty(
const
Ns_id
id
) {
return
id
== terms::empty::id();}
53
56
inline
bool
is_blank(
const
Ns_id
id
) {
return
id
== terms::blank::id();}
57
60
inline
bool
is_iri(
const
Ns_id
id
) {
61
return
id
!= terms::empty::id() &&
id
!= terms::blank::id();
62
}
63
64
}
//namespace owlcpp
65
#endif
/* NS_IRI_TAGS_HPP_ */
Generated on Tue Dec 10 2013 17:00:47 for owlcpp by
1.8.1.2