6 #ifndef CRTPB_NS_NODE_IRI_HPP_
7 #define CRTPB_NS_NODE_IRI_HPP_
8 #include "owlcpp/detail/map_traits.hpp"
25 BOOST_CONCEPT_ASSERT((Ns_store<Super>));
26 BOOST_CONCEPT_ASSERT((Iri_node_store<Super>));
27 Super& super =
static_cast<Super&
>(*this);
31 return super.insert_node_iri( iid, iri.substr(n) );
33 typedef typename Super::Err Err;
34 BOOST_THROW_EXCEPTION(
36 <<
typename Err::msg_t(
"error inserting IRI")
37 <<
typename Err::str1_t( iri )
38 <<
typename Err::nested_t(boost::current_exception())
43 Node_id const* find_node_iri(std::string
const& iri)
const {
44 BOOST_CONCEPT_ASSERT((Ns_store<Super>));
45 BOOST_CONCEPT_ASSERT((Iri_node_store<Super>));
47 Super
const& super =
static_cast<Super const&
>(*this);
49 if( ! ns_id )
return 0;
50 return super.find_node_iri( *ns_id, iri.substr(n) );