owlcpp  v0.3.3~
C++ library for working with OWL ontologies
 All Classes Namespaces Files Functions Macros Pages
Public Member Functions | List of all members
owlcpp::Map_node_literal_crtpb< Super > Class Template Reference

#include <map_node_literal_crtpb.hpp>

Public Member Functions

Node_id const * find_literal (std::string const &value, std::string const &dt_iri, std::string const &lang="") const
 find literal node
Node_id insert_literal (std::string const &value, const Node_id dt_id, std::string const &lang="")
 Insert literal node.
Node_id insert_literal (std::string const &value, std::string const &dt_iri, std::string const &lang="")
 Insert literal node.

Detailed Description

template<class Super>
class owlcpp::Map_node_literal_crtpb< Super >

Enable interface for literal nodes. Base for CRTP (Curiously Recurring Template Pattern).

Member Function Documentation

template<class Super>
Node_id const* owlcpp::Map_node_literal_crtpb< Super >::find_literal ( std::string const &  value,
std::string const &  dt_iri,
std::string const &  lang = "" 
) const
inline

find literal node

Parameters
valueliteral node value
dt_iridatatype IRI
langlanguage
template<class Super>
Node_id owlcpp::Map_node_literal_crtpb< Super >::insert_literal ( std::string const &  value,
const Node_id  dt_id,
std::string const &  lang = "" 
)
inline

Insert literal node.

Parameters
value
dt_iddatatype node ID
langlanguage tag string for the literal node or "" if the language is not defined. The tag string format SHOULD be according to RFC 5646 (http://tools.ietf.org/html/rfc5646). This is not, however, currently enforced by the library.
Returns
node ID
template<class Super>
Node_id owlcpp::Map_node_literal_crtpb< Super >::insert_literal ( std::string const &  value,
std::string const &  dt_iri,
std::string const &  lang = "" 
)
inline

Insert literal node.

Parameters
value
dt_iridatatype IRI or empty string
langlanguage tag string for the literal node or "" if the language is not defined. The tag string format SHOULD be according to RFC 5646 (http://tools.ietf.org/html/rfc5646). This is not, however, currently enforced by the library.
Returns
node ID

The documentation for this class was generated from the following file: