owlcpp  v0.3.3~
C++ library for working with OWL ontologies
 All Classes Namespaces Files Functions Macros Pages
Functions
owlcpp::terms Namespace Reference

Definitions of standard OWL namespaces and terms. More...

Functions

 OWLCPP_NODE_TAG_TYPE (empty_, empty,"", 0)
template<class T >
std::string to_string_full (const T &)
template<class T >
std::string to_string_pref (const T &)
template<class T >
bool comparison (char const *str, const std::size_t len, T const &)
template<class T >
bool comparison (std::string const &str, T const &)
template<class T >
bool comparison (char const *str, T const &)

Detailed Description

Definitions of standard OWL namespaces and terms.

standard OWL namespace and term IRIs are represented by small tag classes. Tags store namespace IRI, prefix, and name strings. Each Tag also has a unique indices as compile-time constants. Tag classes are generated by preprocessor macros from lists. Tag type-lists are also generated by macros.

Function Documentation

template<class T >
bool owlcpp::terms::comparison ( char const *  str,
const std::size_t  len,
T const &   
)
inline

compare strings with standard terms

owlcpp::terms::OWLCPP_NODE_TAG_TYPE ( empty_  ,
empty  ,
""  ,
 
)
struct empty_ {
typedef empty ns_type;
typedef ::owlcpp::Node_id id_type;
static const unsigned index = 0;
static std::string const & name() {
static const std::string str = std::string("");
return str;
}
static id_type id() {return id_type(index);}
};
template<class T >
std::string owlcpp::terms::to_string_full ( const T &  )
inline
Returns
complete IRI for standard terms
template<class T >
std::string owlcpp::terms::to_string_pref ( const T &  )
inline
Returns
prefix IRI for standard terms