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

Namespace for unit-tests. More...

Classes

struct  Custom_nodes
struct  A
struct  Triple_printer

Functions

 BOOST_AUTO_TEST_CASE (fail_obj_id)
 BOOST_GLOBAL_FIXTURE (Exception_fixture)
 BOOST_AUTO_TEST_CASE (test_namespaces)
 BOOST_AUTO_TEST_CASE (test_namespaces_owl)
 BOOST_AUTO_TEST_CASE (test_find_iri_nodes)
 BOOST_AUTO_TEST_CASE (test_iri_nodes)
 BOOST_AUTO_TEST_CASE (test_find_iri_nodes_owl)
 BOOST_AUTO_TEST_CASE (test_nodes_owl)
 BOOST_AUTO_TEST_CASE (test_empty_iri)
 BOOST_AUTO_TEST_CASE (test_map_doc)
 BOOST_AUTO_TEST_CASE (test_map_doc_search)
 OWLCPP_NAMESPACE_TAG_TYPE (custom,"cst","http://custom-ns.net", OWLCPP_NAMESPACE_TAGS_TOTAL)
typedef OWLCPP_TERM_MPL_VECTOR (CUSTOM_TERMS_1) mpl_vector_terms_custom1_t
typedef OWLCPP_TERM_MPL_VECTOR (CUSTOM_TERMS_2) mpl_vector_terms_custom2_t
typedef OWLCPP_TERM_MPL_VECTOR (CUSTOM_TERMS_3) mpl_vector_terms_custom3_t
typedef OWLCPP_TERM_MPL_VECTOR (CUSTOM_TERMS_4) mpl_vector_terms_custom4_t
 BOOST_AUTO_TEST_CASE (case01)
template<class Tag >
Node_iri make_iri (Tag const &)
 BOOST_AUTO_TEST_CASE (test_map_std_01)
 BOOST_AUTO_TEST_CASE (test_map_std_02)
 BOOST_AUTO_TEST_CASE (test_map_std_03)
 BOOST_AUTO_TEST_CASE (test_obj_id)
 BOOST_AUTO_TEST_CASE (test_print_node_02)
 BOOST_AUTO_TEST_CASE (test_iri_node)
 BOOST_AUTO_TEST_CASE (test_clone_iri_node)
 BOOST_AUTO_TEST_CASE (test_blank_node)
 BOOST_AUTO_TEST_CASE (test_compare)
 BOOST_AUTO_TEST_CASE (test_hash)
 BOOST_AUTO_TEST_CASE (test_query_triple)
 BOOST_AUTO_TEST_CASE (test_print_node_01)
 BOOST_AUTO_TEST_CASE (test_iterator)
 BOOST_AUTO_TEST_CASE (test_index_subject_search)
 BOOST_AUTO_TEST_CASE (test_index_predicate_search)
 BOOST_AUTO_TEST_CASE (test_pair_iter)
 BOOST_AUTO_TEST_CASE (test_struct_iter)
 BOOST_AUTO_TEST_CASE (test_indices_0_0_0_0)
 BOOST_AUTO_TEST_CASE (test_indices_0_0_1_1)
 BOOST_AUTO_TEST_CASE (test_indices_1_1_1_1)
 BOOST_AUTO_TEST_CASE (test_indices_0_1_0_0)
 BOOST_AUTO_TEST_CASE (test_query_node)
 BOOST_AUTO_TEST_CASE (test_map_ns_01)
 BOOST_AUTO_TEST_CASE (test_term_methods)
 BOOST_AUTO_TEST_CASE (test_map_triple_01)
 BOOST_AUTO_TEST_CASE (test_map_triple_02)
 BOOST_AUTO_TEST_CASE (test_literal_string_node)
 BOOST_AUTO_TEST_CASE (test_compare_nodes)
const Node_id nid1 (42)
 BOOST_AUTO_TEST_CASE (test_map_node_iri_01)
Triple triple (const unsigned t0, const unsigned t1, const unsigned t2, const unsigned t3)
template<class Tm , class Seq >
void insert_triple (Tm &tm, Seq const &s)
template<class Tm , class Seq >
void insert_seq (Tm &tm, Seq const &s)
 BOOST_AUTO_TEST_CASE (test_id_tracker_01)
 BOOST_AUTO_TEST_CASE (test_copy_triples_01)
 BOOST_AUTO_TEST_CASE (test_docs_01)
 BOOST_AUTO_TEST_CASE (test_docs_02)
 BOOST_AUTO_TEST_CASE (test_blank_nodes_owl)
 BOOST_AUTO_TEST_CASE (test_literal_nodes_owl)
 BOOST_AUTO_TEST_CASE (test_print_triples)
 BOOST_AUTO_TEST_CASE (test_literal_bool_node)
 BOOST_AUTO_TEST_CASE (test_literal_int_node)
 BOOST_AUTO_TEST_CASE (test_literal_unsigned_node)
 BOOST_AUTO_TEST_CASE (test_literal_real_node)
 BOOST_AUTO_TEST_CASE (test_map_node_01)
 BOOST_AUTO_TEST_CASE (test_literal_nodes)
const Ns_id nsid2 (43)
const Node_id nid0 (13)
const Node_iri n2 (nsid1,"n2")
 BOOST_AUTO_TEST_CASE (test_triple_store_01)
 BOOST_AUTO_TEST_CASE (test_triple_store_02)
 BOOST_AUTO_TEST_CASE (test_triple_store_03)
 BOOST_AUTO_TEST_CASE (test_triple_store_04)
 BOOST_AUTO_TEST_CASE (test_triple_store_05)
 BOOST_AUTO_TEST_CASE (parse_invalid_docs)
 BOOST_AUTO_TEST_CASE (test_triple_store_print)
 BOOST_AUTO_TEST_CASE (test_ontology_id)
 BOOST_AUTO_TEST_CASE (test_catalog_manual)
 BOOST_AUTO_TEST_CASE (test_catalog_02)
 BOOST_AUTO_TEST_CASE (est_catalog_03)
 BOOST_AUTO_TEST_CASE (test_catalog_sample_data)
 BOOST_AUTO_TEST_CASE (test_parser)
 BOOST_AUTO_TEST_CASE (test_triple_adaptor)
TExpressionManager & em (ReasoningKernel &k)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_01)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_02)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_03)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_04)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_05)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_06)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_07)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_08)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_09)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_10)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_11)
 BOOST_AUTO_TEST_CASE (test_triple_to_fact_12)
 BOOST_AUTO_TEST_CASE (test_missing_def_01)
 BOOST_AUTO_TEST_CASE (test_data_property_range)
 BOOST_AUTO_TEST_CASE (test_data_property_assertion)
 BOOST_AUTO_TEST_CASE (test_datatype_restriction)
 BOOST_AUTO_TEST_CASE (test_dp_restriction)

Variables

const std::string path1 = "path1"
const std::string path2 = "path2"
const std::string path3 = "path3"
const std::string path4 = "path4"
const Node_id nid1 (12)
const Node_id nid2 (13)
const Node_id nid3 (42)
const Node_id nid4 (41)
const unsigned t [][4]
const Ns_id nsid2 (42)
const Ns_id nsid3 (43)
const Node_id nid0 (13)
const Node_iri n2 (nsid2,"blah")
const Ns_id nsid1 (42)
const Node_iri n1 (nsid1,"n1")
const Node_iri n3 (nsid1,"n3")
const std::string iri1 = sample_files()[13].iri
const std::string ver1 = sample_files()[13].version
const std::string iri2 = sample_files()[0].iri
const std::string ver2 = sample_files()[0].version
const std::string iri3 = sample_files()[3].iri
const std::string dir1 = sample_file_path()
const std::vector< std::string > logic_error_files

Detailed Description

Namespace for unit-tests.

Function Documentation

owlcpp::test::BOOST_AUTO_TEST_CASE ( fail_obj_id  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_id_tracker_01  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_obj_id  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_map_ns_01  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_term_methods  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_ontology_id  )
Test:
Check that every ontology IRI and version is read correctly
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_literal_bool_node  )
Test:
Literal bool nodes
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_copy_triples_01  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_parser  )
Test:
print triples from sample ontologies
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_query_node  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_literal_string_node  )
Test:
Literal string nodes
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_data_property_range  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_query_triple  )
Test:
Iterate over members of RDF list
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_map_node_01  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_pair_iter  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_indices_0_0_0_0  )
Test:
Select optimal triple index, Store_config<0,0,0,0>
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_print_node_02  )
Test:
Print nodes with triple store
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_01  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_docs_01  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_namespaces  )
Test:
Test namespaces, OWL-unaware triple store
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_store_print  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_adaptor  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_print_node_01  )
Test:
Print nodes without triple store
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_catalog_manual  )
Test:
Insert doc info manually
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_map_std_01  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_iri_node  )
Test:
IRI nodes
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_map_doc  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_map_node_iri_01  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_map_triple_01  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_namespaces_owl  )
Test:
Test namespaces, OWL-aware triple store
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_iterator  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_02  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_store_01  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_docs_02  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_literal_int_node  )
Test:
Literal int nodes
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_map_std_02  )
Test:
Standard node maps are singletons
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_03  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_catalog_02  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_compare_nodes  )
Test:
Compare nodes
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_index_subject_search  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_struct_iter  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_indices_0_0_1_1  )
Test:
Select optimal triple index, Store_config<0,0,1,1>
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_map_std_03  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_literal_unsigned_node  )
Test:
Literal unsigned nodes
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_find_iri_nodes  )
Test:
Test find IRI nodes, OWL-unaware triple store
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_04  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_literal_nodes  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_clone_iri_node  )
Test:
clone IRI nodes
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_store_02  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( est_catalog_03  )
Test:
Test inserting new nodes into OWL namespace
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_iri_nodes  )
Test:
Test IRI nodes, OWL-unaware triple store
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_literal_real_node  )
Test:
Literal real nodes
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_store_03  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_map_triple_02  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_blank_node  )
Test:
Blank nodes
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_index_predicate_search  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_blank_nodes_owl  )
Test:
Test blank nodes, OWL-aware triple store
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_05  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_catalog_sample_data  )
Test:
Check sample data catalog
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_compare  )
Test:
Compare nodes
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_map_doc_search  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_find_iri_nodes_owl  )
Test:
Test find IRI nodes, OWL-aware triple store
owlcpp::test::BOOST_AUTO_TEST_CASE ( case01  )

Standard map with OWL nodes plus 200 user-defined ones

Test:
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_store_04  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_06  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_nodes_owl  )
Test:
Test IRI nodes, OWL-aware triple store
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_indices_1_1_1_1  )
Test:
Select optimal triple index, Store_config<1,1,1,1>
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_store_05  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_literal_nodes_owl  )
Test:
Test literal nodes, OWL-aware triple store
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_hash  )
Test:
node hash
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_07  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( parse_invalid_docs  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_08  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_empty_iri  )
Test:
Empty IRI node maps to empty_::id() ID
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_print_triples  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_09  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_indices_0_1_0_0  )
Test:
Select optimal triple index, Store_config<0,1,0,0>
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_10  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_11  )
owlcpp::test::BOOST_AUTO_TEST_CASE ( test_triple_to_fact_12  )

Variable Documentation

const std::vector<std::string> owlcpp::test::logic_error_files
Initial value:
boost::assign::list_of<std::string>
("err_missing_def01.owl")
("err_missing_def02.owl")
("err_missing_def03.owl")
("err_distinctMembers.owl")
const unsigned owlcpp::test::t
Initial value:
{
{0,1,0,0},
{0,2,0,0},
{0,3,0,0},
{1,3,0,0},
{0,3,1,0},
{0,3,0,1},
{0,4,0,0},
}