# "*": "https://raw.githubusercontent.com/wefindx/schema/master/method/oo-item.yaml" # "base:title": "0oo - Automated API traversal" "og:title": "Automated API traversal" "og:description": "In Restful HATEOAS design, web applications provide endpoints that provides a list of web resources related to the current request that can also be introspected in the API. A restaurant resource has links or URLs to a booking resource because you can book a restaurant. A system should publish an endpoint that is an almanac of system functionality, that is, every endpoint it has, a thesaurus of keywords used to access that endpoint and a thesaurus of operations that it supports. A system should also publish a series of workflows that it expects people to use. This way we can …" "og:image": "https://avatars0.githubusercontent.com/u/28134655" "og:url": "/method/986/" "base:css": "/static/css/bootstrap.min.9c25540d6272.css" "base:extra-css": "/static/css/base.57997aeac1df.css" "base:favicon": "/static/favicon.acaa334f0136.ico" "base:body_class": "" "layout:logo": "/static/0oo.8d2a8bbef612.svg" "layout:index": "/" "layout:menu": "/menu/" "layout:categories": "/intents/" "layout:ideas": "/methods/" "layout:projects": "/projects/" "layout:users": "/users/" "layout:about": "/about/" "layout:help": "/help/" "layout:bug_report": "https://github.com/wefindx/0oo" "layout:login": "/accounts/login/" "layout:light-off": "/darken/?darken=true" "layout:set-multilingual": "/mulang/?mulang=true" "layout:lang": "Language" "layout:set-language-post-action": "/i18n/setlang/" "layout:csrf-token": "ONmMw006ieJBMmeFdnqzdxqNa0FEi3oSlFHVojOivLedZ4tjpmjJIAeDB19rThPt" "layout:input-next": "/method/986/" "layout:languages": [{"code": "ja", "is-active": "false", "name": "日本語"}, {"code": "lt", "is-active": "false", "name": "Lietuviškai"}, {"code": "zh-hans", "is-active": "false", "name": "简体中文"}, {"code": "en", "is-active": "true", "name": "English"}, {"code": "ru", "is-active": "false", "name": "Русский"}, {"code": "oo", "is-active": "false", "name": "O;o,"}] # "item:parent:intents": [{"url": "/intent/1311/", "title": "Data Liquidity and Systems Interoperability"}] "item:title": "Automated API traversal" "item:summary": "Armed with a thesaurus and an almanac of system functionality we can write robots that program themselves" "item:voting": 0 "item:voting:add": "/admin/hlog/voting/add/?method=986" "item:voting:csrf_token": "ONmMw006ieJBMmeFdnqzdxqNa0FEi3oSlFHVojOivLedZ4tjpmjJIAeDB19rThPt" "item:voting:submit-value-option": {"selected": "[-]", "value": "-"} "item:voting:submit-value-option": {"selected": "[+]", "value": "+"} "item:base-administration": false "item:body": | In Restful HATEOAS design, web applications provide endpoints that provides a list of web resources related to the current request that can also be introspected in the API. A restaurant resource has links or URLs to a booking resource because you can book a restaurant. A system should publish an endpoint that is an almanac of system functionality, that is, every endpoint it has, a thesaurus of keywords used to access that endpoint and a thesaurus of operations that it supports. A system should also publish a series of workflows that it expects people to use. This way we can write a fuzzy logic for a system based on a rough description of what to do - based on the thesaurus and almanac of a system. "Export all my tweets to file" All has an thesaurus entry for "list", "listAll", "getAll". So the service knows it has to loop over this collection and save all fields to a file. "item:source-date": "" "item:permalink": "/method/986/?l=en" "item:owner": "chronological" "item:created": "2020-09-26T22:40:04.921000" "item:ownerlink": "/user/198/chronological" # "item:link:items": "item:link:add": "/admin/hlog/link/add/?parent=986" "item:project:items": "item:project:add": "/admin/hlog/project/add/?parent=986" "item:comment:add": "/methods/addnote?parent=986" "item:comment:add:csrf_token": "ONmMw006ieJBMmeFdnqzdxqNa0FEi3oSlFHVojOivLedZ4tjpmjJIAeDB19rThPt" "item:comment:form": |
  • Mark if the comment raises new questions.
  • Mark if the comment contributes potential solutions.
  • Mark if the comment contributes facts for reasoning.
  • Please, log in. # "item:comment:items": - "id": "a-977" "text": | But this is how APIs work already, that almanac is called "documentation" and it is already often machine-readable (read [the core protocols](https://thecoreprotocols.org) and [open api](https://www.openapis.org)?). Well, they have a limitation, they do not return vocabularies associated with their object types, and Mime-Types or Content-Types are not sufficiently informative. They could, if those APIs returned JSON-LD respones, or simply decorating their responses with metaformat's [polycontext metasymbol](https://0oo.li/method/863/metaformat) would be enough to bind them to schemas defined in concepts also linked via polycontext metasymbol, and everyone could reason about everything while retrieving data about everything, traversing APIs. A bunch of existing solutions that require human work, and already work (they are called expert systems) for this wishful thinking to get realized, because there exists a lot of not very well documented software, where software types are poorly linked with ontological (linguistic) types. To create that linguistic connect so that everyone could auto-generate queries in numerous databases just by thinking that one would want to know something, will require the training of an AI system to map it from human examples. There are a couple of layers: - synonyms that are part of human language - concept IDs (that you can find in Wikidata) - class names (that you can find in OOP software) - table names (that you can find in databases) All of that, can be beautifully linked up by defining a single good [polycontext metasymbol](https://0oo.li/method/863/metaformat) (I think we should come up with and evolve the polycontext metasymbol for humanity, in a similar way that we evolve protocols, through RFCs), and that would allow to eventually have that desired property of being able to reason this way, really transcendentally, in all protocols and with all information systems. "owner": "Mindey" "ownerlink": "/user/147/Mindey" "permalink": "/method/986/?l=en#a-977" "created": "" - "id": "a-979" "text": | I'm familiar with expert systems such as Drools which uses the rete algorithm which is really clever. And I know about OpenAPI But they still have to be explicitly coded. "owner": "chronological" "ownerlink": "/user/198/chronological" "permalink": "/method/986/?l=en#a-979" "created": "" - "id": "a-980" "text": | // But they still have to be explicitly coded. But what you propose (the thesaurus and an almanac of system functionality) would also have to be explicitly coded, wouldn't it? You say: "A system should publish an endpoint that is an almanac of system functionality, that is, every endpoint it has, a thesaurus of keywords used to access that endpoint and a thesaurus of operations that it supports." You need to code those systems to publish their functionality, so you'd have to modify every system that has functionality, to be able to publish it. How would your approach avoid this need for explicit coding to modify those systems to publish descriptions of themselves to the "thesaurus and an almanac"? "owner": "Mindey" "ownerlink": "/user/147/Mindey" "permalink": "/method/986/?l=en#a-980" "created": "" - "id": "a-283001" "text": | I think, there should be a version of [nnn](https://github.com/jarun/nnn) for REST APIs. The [REST API as a filesystem](https://medium.com/hashicorp-engineering/taming-the-wild-rest-with-fuse-8bc01fa27341), and then extending the `nnn` util to handle `.json` files would do it. However, I found that FUSE is not very performant, and Linus Torvalds famously says FUSE filesystems are nothing more than toys... "owner": "Mindey" "ownerlink": "/user/147/Mindey" "permalink": "/method/986/?l=en#a-283001" "created": "" "base:js": "/static/js/base.c7357c06cc89.js"