{"id":28960564,"url":"https://github.com/aygp-dr/frames-explorer","last_synced_at":"2025-07-29T18:13:44.144Z","repository":{"id":298410869,"uuid":"999882976","full_name":"aygp-dr/frames-explorer","owner":"aygp-dr","description":"A Python implementation of frame-based knowledge representation systems inspired by Marvin Minsky's Society of Mind. Features slots, facets, demons, and inheritance for building intelligent systems.","archived":false,"fork":false,"pushed_at":"2025-06-11T08:03:00.000Z","size":1312,"stargazers_count":0,"open_issues_count":14,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-19T20:11:39.436Z","etag":null,"topics":["ai","cognitive-science","frames","knowledge-representation","minsky","python","semantic-networks","society-of-mind"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aygp-dr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-06-11T00:08:48.000Z","updated_at":"2025-06-11T08:03:03.000Z","dependencies_parsed_at":"2025-06-11T01:33:25.894Z","dependency_job_id":"3860f481-3857-4ce4-a91b-7468e568e9ad","html_url":"https://github.com/aygp-dr/frames-explorer","commit_stats":null,"previous_names":["aygp-dr/frames-explorer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aygp-dr/frames-explorer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aygp-dr%2Fframes-explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aygp-dr%2Fframes-explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aygp-dr%2Fframes-explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aygp-dr%2Fframes-explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aygp-dr","download_url":"https://codeload.github.com/aygp-dr/frames-explorer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aygp-dr%2Fframes-explorer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261586551,"owners_count":23181132,"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":["ai","cognitive-science","frames","knowledge-representation","minsky","python","semantic-networks","society-of-mind"],"created_at":"2025-06-24T01:31:43.710Z","updated_at":"2025-06-24T01:33:26.976Z","avatar_url":"https://github.com/aygp-dr.png","language":"Python","readme":"# Frame-Based Knowledge Representation Workshop\n\n![Frame-Based Knowledge Systems](static/images/minsky_header.jpg)\n\nA modern Python implementation of frame-based knowledge representation inspired by MIT's FRL (Frame Representation Language) from the 1970s.\n\n## System Architecture\n\n```mermaid\nclassDiagram\n    class Frame {\n        +string name\n        +Dict slots\n        +Dict _frames\n        +add_slot()\n        +get()\n        +put()\n        +remove_slot()\n        +describe()\n        +to_dict()\n    }\n    \n    class FRL_API {\n        +fassert()\n        +fget()\n        +fput()\n        +fdel()\n    }\n    \n    class Persistence {\n        +save_frames()\n        +load_frames()\n    }\n    \n    class Slot {\n        +value\n        +default\n        +if_needed\n        +if_added\n        +if_removed\n        +units\n    }\n    \n    Frame \"1\" -- \"*\" Slot : contains\n    FRL_API -- Frame : manipulates\n    Persistence -- Frame : serializes\n```\n\n## Features\n\n- **Frames**: Knowledge structures with slots and facets\n- **Computed Values**: Lazy evaluation with `if_needed`\n- **Active Values (Demons)**: Triggers on value changes\n- **Prototype Inheritance**: Share knowledge between frames\n- **Persistence**: Save/load frames as JSON\n- **Cross-Platform**: Works on Linux, FreeBSD, macOS, and in containers\n\n## Quick Start\n\n```bash\n# Clone the repository\ngit clone https://github.com/aygp-dr/frames-explorer.git\ncd frames-explorer\n\n# Set up development environment (optional)\nmake init\n\n# Run interactive examples\npython3 examples.py\n\n# Or run tests\npython3 test_frames.py\n```\n\n## Basic Usage\n\n```python\nfrom frame_system import fassert, fget, fput\n\n# Create a frame\nrobot = fassert('my-robot',\n    type={'value': 'service-robot'},\n    height={'value': 1.5, 'units': 'meters'},\n    battery={'value': 85, 'units': 'percent'}\n)\n\n# Access values\nprint(fget('my-robot', 'height'))  # 1.5\nprint(fget('my-robot', 'height', 'units'))  # meters\n\n# Update values\nfput('my-robot', 'battery', 75)\n```\n\n## Examples\n\nRun the examples to see various features:\n\n```python\npython3 examples.py\n# Then try: example_basic(), example_demons(), etc.\n```\n\n## Testing\n\nRun the test suite:\n\n```bash\npython3 test_frames.py\n```\n\n## Platform Compatibility\n\nTested on:\n- Linux x86_64 (Debian)\n- Linux ARM64 (Raspberry Pi)\n- FreeBSD 14.2-RELEASE (amd64)\n- Alpine Linux (Docker)\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Reading List\n\nThis implementation is based on foundational work in frame-based knowledge representation:\n\n- Marvin Minsky (1974): [A Framework for Representing Knowledge](https://dspace.mit.edu/handle/1721.1/6089). AIM-306, Cambridge, US: MIT.\n- R. Bruce Roberts and Ira P. Goldstein (1977): [FRL Primer](https://dspace.mit.edu/handle/1721.1/5767). AIM-408, Cambridge, US: MIT.\n- R. Bruce Roberts and Ira P. Goldstein (1977): [FRL Manual](https://dspace.mit.edu/handle/1721.1/5768). AIM-409, Cambridge, US: MIT.\n- Marvin Minsky (1986): [The Society of Mind](https://en.wikipedia.org/wiki/Society_of_Mind). Simon \u0026 Schuster.\n\n## Credits\n\nInspired by FRL (Frame Representation Language) from MIT AI Lab, 1970s.\nModern implementation by aygp-dr.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faygp-dr%2Fframes-explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faygp-dr%2Fframes-explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faygp-dr%2Fframes-explorer/lists"}