{"id":19344535,"url":"https://github.com/grosscol/kobbler","last_synced_at":"2026-05-13T21:31:38.974Z","repository":{"id":145810260,"uuid":"91495523","full_name":"grosscol/kobbler","owner":"grosscol","description":"Knowledge Object Builder","archived":false,"fork":false,"pushed_at":"2018-11-27T14:58:17.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T09:25:34.625Z","etag":null,"topics":["computable-knowledge","kgrid","rdf"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/grosscol.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}},"created_at":"2017-05-16T19:16:19.000Z","updated_at":"2018-11-27T14:58:19.000Z","dependencies_parsed_at":"2024-04-19T10:01:00.828Z","dependency_job_id":null,"html_url":"https://github.com/grosscol/kobbler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/grosscol/kobbler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grosscol%2Fkobbler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grosscol%2Fkobbler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grosscol%2Fkobbler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grosscol%2Fkobbler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grosscol","download_url":"https://codeload.github.com/grosscol/kobbler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grosscol%2Fkobbler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33000754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["computable-knowledge","kgrid","rdf"],"created_at":"2024-11-10T03:43:46.112Z","updated_at":"2026-05-13T21:31:38.956Z","avatar_url":"https://github.com/grosscol.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Knowledge Object Build Utility\n\n## Description\nKnowledge Grid Knowledge Objects for development with the Landis-Lewis Lab.\n\n## Prerequisites\n* Knowledge Grid Activator is running locally on port 8080.\n* Ruby 2.4.1 \n* Gem dependencies installed\n    ```\n    bundle install\n    ```\n\n## Setup\n1. Build docker image\n    ```\n    docker build -f activator.dockerfile -t kgrid-activator-1.0.1\n    ```\n1. Create/Run docker container\n    ```\n    docker create --name kga -p 8080:8080 kgrid-activator-1.0.1\n    ```\n1. Start and test docker container\n    ```\n    docker start kga\n    curl localhost:8080/hello/world\n    ```\n\n## Use\n### Build KGrid Knowledge Objects from Sources\nBuild all the knowledge objects\n```\nrake kobble\n```\n\n### Loading Knowledge Objects into Activator\nLoad the count-spek knowledge object into the activator\n```\nrake activate['count-spek']\n```\nor\n```\ncurl -X PUT localhost:8080/count/spek --form ko=@build/count-spek.zip\n```\n\n### Test the Knowledge Object\nTest the hello-js knowledge object is loaded.\n```\nrake test['count-spek']\n```\nor\n```\ncurl localhost:8080/count/spek \n```\n\n## Authoring New Knowledg Objects\n1. Make directory under src/\n1. Write metadata.yml\n1. Write payload\n1. Run rake task to build all knowledge objects\n    ```\n    rake kobble\n    ```\n\n## Loading Knowledge Objects\nThe options for putting a knowledge object into an activator are:\n* PUT request to running Activator\n* Add to shelf directory of Activator before starting it.\n* Add to Knowledge Grid Library\n\n### PUT Knowledge Object in Running Activator\n\nExample using a locally running activator and the kobbled hello-js knowledge object in the build/ directory.\n```\ncurl -X PUT \\\n  http://localhost:8080/shelf/ark:/kobble/hello-js \\\n  -H 'accept-encoding: text/plain' \\\n  -H 'content-type: application/json' \\\n  --data @build/hello-js.json \n```\n**OR**\n```\nrake activate['hello-js']\n```\n\nThe response should be:\n```\nObject ark:/kobble/hello-js added to the shelf\n```\n\n## Test Loaded Knowledge Object\n\nPOST input data to activator with the kobject loaded\n```\ncurl --request POST \\\n  --url http://localhost:8080/knowledgeObject/ark:/kobble/hello-js/result \\\n  --header 'content-type: application/json' \\\n  --header 'accept: application/json' \\\n  --data '{\"name\": \"Alice\"}'\n```\n**OR**\n```\nrake test['hello-js']\n```\n\nThe result should be\n```\n{\n  \"result\": \"Hello, Alice\",\n  \"source\": \"http://n2t.net//ark:/kobble/hello-js\",\n  \"metadata\": {\n    \"arkId\": {\n      \"arkId\": \"ark:/kobble/hello-js\"\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrosscol%2Fkobbler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrosscol%2Fkobbler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrosscol%2Fkobbler/lists"}