{"id":19484981,"url":"https://github.com/opencog/atomspace-metta","last_synced_at":"2025-02-25T18:28:48.495Z","repository":{"id":164231647,"uuid":"639666351","full_name":"opencog/atomspace-metta","owner":"opencog","description":"MeTTa on top of AtomSpace","archived":false,"fork":false,"pushed_at":"2023-05-12T04:01:46.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-08T07:46:05.557Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opencog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-12T00:43:37.000Z","updated_at":"2024-03-23T09:39:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd6379db-f368-4ea4-a324-4ad27a745091","html_url":"https://github.com/opencog/atomspace-metta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencog%2Fatomspace-metta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencog%2Fatomspace-metta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencog%2Fatomspace-metta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencog%2Fatomspace-metta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencog","download_url":"https://codeload.github.com/opencog/atomspace-metta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240721799,"owners_count":19847003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T20:24:58.797Z","updated_at":"2025-02-25T18:28:48.472Z","avatar_url":"https://github.com/opencog.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nMeTTa on the AtomSpace\n======================\nThe MeTTa concept can be implemented on top of the AtomSpace. This repo\ncontains a proof-of-concept.\n\n### Status\n\n***Version 0.0.1***\n\nA fraction of the MeTTa language can be easily imported as Atomese.\nThe code here is a proof of concept of this mapping.  At this time,\nonly the simplest mapping is done: the declaration of functions.\n\nThe code \"works\"; see the\n[MeTTa example](./examples/metta-lisp.scm)\nfor a working demo.\n\n### Architecture\nThis code makes use of the \"Foreign Abstract Syntax Tress\"\n(`ForeignAST`) code in the base AtomSpace. This AST code also supports\na proof-of-concept for DataLog. See\nhttps://github.com/opencog/atomspace/tree/master/opencog/atoms/foreign\n\n### TODO\nImplement `match`, `ground`, and multivalued propagation.\n\n* `match` takes some space, a pattern, and a template does two-sided\n  matching of the pattern on the space (i.e. unification) and fills\n  in the bindings in the template, and returns all results. So, like\n  `MeetLink` but it also unifies.  The unifier code in the\n  [opencog/unify git repo](https://github.com/opencog/unify)\n  can be used for that.\n\n* `ground` takes some Python/C/Rust function and binds it to a symbol\n  This is handled in the base AtomSpace, with the `lib:` wrapper.\n  It just needs to be exposed here.\n\n* Multivalued propagation means a function can return more than one\n  thing, and its arguments can be multi-valued too. It will expand that\n  appropriately.  So, for example,\n  `(= A x); (= A y); !(P A A)` returns\n  `{(P x x), (P x y), (P y x), (P y y)}`\n  Cartesian product.\n\n\n### Prerequisites\n\nTo build the MeTTa layer, the packages listed below are required.\n\n###### AtomSpace\n* The OpenCog AtomSpace.\n* https://github.com/opencog/atomspace\n* It uses exactly the same build procedure as this package. Be sure\n  to `sudo make install` at the end.\n\n\n### Building\n\nBe sure to install the pre-requisites first!\nPerform the following steps at the shell prompt:\n```\n    cd to project root dir\n    mkdir build\n    cd build\n    cmake ..\n    make -j4\n    sudo make install\n    make -j4 check\n```\nLibraries will be built into subdirectories within build, mirroring\nthe structure of the source directory root.\n\n### Running\nSee the `examples` subdirectory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencog%2Fatomspace-metta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencog%2Fatomspace-metta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencog%2Fatomspace-metta/lists"}