|
Arachne 1.0
Arachne - the perpetual stitcher of Wikidata entities.
|
Functions | |
| const nlohmann::json & | array_or_empty (const nlohmann::json &document, std::string_view field) |
| std::optional< std::string > | projection_identifier (const nlohmann::json &value, std::string_view field, std::string_view integer_namespace) |
| std::optional< std::string > | projection_identifier (const nlohmann::json &value, std::string_view integer_namespace) |
| std::string | identifier (const nlohmann::json &value, std::string_view integer_namespace={}) |
| std::string | entity_label (const nlohmann::json &value, const std::string &fallback) |
| void | upsert_node (std::map< std::string, nlohmann::ordered_json, std::less<> > &nodes, nlohmann::ordered_json node) |
| std::string | edge_id (std::string_view from, std::string_view to, std::string_view type, std::string_view source_id) |
| void | append_human_edge (nlohmann::ordered_json &edges, std::string from, std::string to, std::string type, std::string assertion_id, std::string snapshot_id, const nlohmann::json &evidence=nlohmann::json::array()) |
| std::string | read_file (const std::filesystem::path &path) |
| void | write_file (const std::filesystem::path &path, std::string_view content) |
| void | write_immutable_file (const std::filesystem::path &path, std::string_view content) |
| void | validate_site_root (const std::filesystem::path &root) |
| void arachne::ariadne::anonymous_namespace{viewer.cpp}::append_human_edge | ( | nlohmann::ordered_json & | edges, |
| std::string | from, | ||
| std::string | to, | ||
| std::string | type, | ||
| std::string | assertion_id, | ||
| std::string | snapshot_id, | ||
| const nlohmann::json & | evidence = nlohmann::json::array() ) |
Definition at line 155 of file viewer.cpp.
| const nlohmann::json & arachne::ariadne::anonymous_namespace{viewer.cpp}::array_or_empty | ( | const nlohmann::json & | document, |
| std::string_view | field ) |
Definition at line 22 of file viewer.cpp.
| std::string arachne::ariadne::anonymous_namespace{viewer.cpp}::edge_id | ( | std::string_view | from, |
| std::string_view | to, | ||
| std::string_view | type, | ||
| std::string_view | source_id ) |
Definition at line 143 of file viewer.cpp.
References arachne::crypto::sha256().

| std::string arachne::ariadne::anonymous_namespace{viewer.cpp}::entity_label | ( | const nlohmann::json & | value, |
| const std::string & | fallback ) |
Definition at line 103 of file viewer.cpp.
| std::string arachne::ariadne::anonymous_namespace{viewer.cpp}::identifier | ( | const nlohmann::json & | value, |
| std::string_view | integer_namespace = {} ) |
Definition at line 89 of file viewer.cpp.
| std::optional< std::string > arachne::ariadne::anonymous_namespace{viewer.cpp}::projection_identifier | ( | const nlohmann::json & | value, |
| std::string_view | field, | ||
| std::string_view | integer_namespace ) |
Definition at line 35 of file viewer.cpp.
| std::optional< std::string > arachne::ariadne::anonymous_namespace{viewer.cpp}::projection_identifier | ( | const nlohmann::json & | value, |
| std::string_view | integer_namespace ) |
Definition at line 64 of file viewer.cpp.
| std::string arachne::ariadne::anonymous_namespace{viewer.cpp}::read_file | ( | const std::filesystem::path & | path | ) |
Definition at line 202 of file viewer.cpp.
| void arachne::ariadne::anonymous_namespace{viewer.cpp}::upsert_node | ( | std::map< std::string, nlohmann::ordered_json, std::less<> > & | nodes, |
| nlohmann::ordered_json | node ) |
Definition at line 113 of file viewer.cpp.
| void arachne::ariadne::anonymous_namespace{viewer.cpp}::validate_site_root | ( | const std::filesystem::path & | root | ) |
Definition at line 290 of file viewer.cpp.
Referenced by arachne::ariadne::viewer_builder::build_site().

| void arachne::ariadne::anonymous_namespace{viewer.cpp}::write_file | ( | const std::filesystem::path & | path, |
| std::string_view | content ) |
Definition at line 214 of file viewer.cpp.
| void arachne::ariadne::anonymous_namespace{viewer.cpp}::write_immutable_file | ( | const std::filesystem::path & | path, |
| std::string_view | content ) |
Definition at line 236 of file viewer.cpp.
References arachne::crypto::sha256(), and arachne::crypto::sha256_file().
Referenced by arachne::ariadne::viewer_builder::write_projection().

