{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/learning-embeddings-from-knowledge-graphs","title":"Learning Embeddings from Knowledge Graphs With Numeric Edge Attributes","arxiv_id":"2105.08683","date":"2021-05-18","proceeding":null,"authors":["Sumit Pai","Luca Costabello"],"abstract":"Numeric values associated to edges of a knowledge graph have been used to represent uncertainty, edge importance, and even out-of-band knowledge in a growing number of scenarios, ranging from genetic data to social networks. Nevertheless, traditional knowledge graph embedding models are not designed to capture such information, to the detriment of predictive power. We propose a novel method that injects numeric edge attributes into the scoring layer of a traditional knowledge graph embedding architecture. Experiments with publicly available numeric-enriched knowledge graphs show that our method outperforms traditional numeric-unaware baselines as well as the recent UKGE model.","url_abs":"https://arxiv.org/abs/2105.08683v1","url_pdf":"https://arxiv.org/pdf/2105.08683v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"learning-embeddings-from-knowledge-graphs","repo_url":"https://github.com/Accenture/AmpliGraph","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"graph-embedding","task_name":"Graph Embedding"},{"task_slug":"knowledge-graph-embedding","task_name":"Knowledge Graph Embedding"},{"task_slug":"knowledge-graphs","task_name":"Knowledge Graphs"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2105.08683","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2105.08683"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Accenture/AmpliGraph","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":16},"by_repo_kind":{"official":{"samples":16,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"73cdfc67eab82a51","entry":"clip_before_exp","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/latent_features/loss_functions.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/latent_features/loss_functions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"73cdfc67eab82a51"}},{"code_sha256_prefix":"e6b2d5013e134fbd","entry":"compare_partitionings","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/datasets/partitioning_reporter.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/datasets/partitioning_reporter.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e6b2d5013e134fbd"}},{"code_sha256_prefix":"1e631150b0c80c72","entry":"dataframe_to_triples","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/utils/model_utils.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/utils/model_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1e631150b0c80c72"}},{"code_sha256_prefix":"b2164845d6c66f4a","entry":"evaluate_performance","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/compat/evaluate.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/compat/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b2164845d6c66f4a"}},{"code_sha256_prefix":"e5cdd5cb67b2cb72","entry":"get","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/latent_features/loss_functions.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/latent_features/loss_functions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e5cdd5cb67b2cb72"}},{"code_sha256_prefix":"eeee235b35bf4027","entry":"get_number_of_partitions","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/datasets/graph_partitioner.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/datasets/graph_partitioner.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"eeee235b35bf4027"}},{"code_sha256_prefix":"44fdbf9bdcea6697","entry":"get_partition_adapter","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/datasets/partitioned_data_manager.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/datasets/partitioned_data_manager.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"44fdbf9bdcea6697"}},{"code_sha256_prefix":"e71579ce86730827","entry":"load_from_csv","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/datasets/datasets.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/datasets/datasets.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e71579ce86730827"}},{"code_sha256_prefix":"b7720ad19371898e","entry":"load_mapper_from_json","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/datasets/datasets.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/datasets/datasets.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b7720ad19371898e"}},{"code_sha256_prefix":"4d2cf14a78b063c4","entry":"preprocess_focusE_weights","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/utils/model_utils.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/utils/model_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4d2cf14a78b063c4"}},{"code_sha256_prefix":"6f8298f9f8bd8ad0","entry":"register_compatibility","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/compat/models.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/compat/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6f8298f9f8bd8ad0"}},{"code_sha256_prefix":"79be7853f34faf64","entry":"register_indexer_backend","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/datasets/data_indexer.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/datasets/data_indexer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"79be7853f34faf64"}},{"code_sha256_prefix":"74d4214ef4c6a401","entry":"register_loss","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/latent_features/loss_functions.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/latent_features/loss_functions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"74d4214ef4c6a401"}},{"code_sha256_prefix":"c655ffc4d09dc380","entry":"register_partitioning_manager","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/datasets/partitioned_data_manager.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/datasets/partitioned_data_manager.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c655ffc4d09dc380"}},{"code_sha256_prefix":"f03691b5daa8b1aa","entry":"register_partitioning_strategy","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/datasets/graph_partitioner.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/datasets/graph_partitioner.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f03691b5daa8b1aa"}},{"code_sha256_prefix":"eed65ab60f7570f8","entry":"restore_model","repo":"Accenture/AmpliGraph","repo_kind":"official","path":"ampligraph/utils/model_utils.py","file_url":"https://github.com/Accenture/AmpliGraph/blob/HEAD/ampligraph/utils/model_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"eed65ab60f7570f8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}