{"id":17018575,"url":"https://github.com/smessie/eye-mock","last_synced_at":"2025-03-29T20:10:44.635Z","repository":{"id":63642625,"uuid":"568813694","full_name":"smessie/eye-mock","owner":"smessie","description":"EYE mock solving your n3 reasoning on a server instead of client side Prolog execution","archived":false,"fork":false,"pushed_at":"2024-07-29T09:08:12.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T00:41:00.046Z","etag":null,"topics":["eye","mock","n3","notation3","reasoning"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/eye-mock","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smessie.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":"2022-11-21T13:16:51.000Z","updated_at":"2024-07-29T09:08:15.000Z","dependencies_parsed_at":"2024-07-29T12:25:09.013Z","dependency_job_id":null,"html_url":"https://github.com/smessie/eye-mock","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.07999999999999996,"last_synced_commit":"bd80c4f36593a1eeb01f9fc9ed2e92f948253f60"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smessie%2Feye-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smessie%2Feye-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smessie%2Feye-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smessie%2Feye-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smessie","download_url":"https://codeload.github.com/smessie/eye-mock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237438,"owners_count":20745348,"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":["eye","mock","n3","notation3","reasoning"],"created_at":"2024-10-14T06:46:28.474Z","updated_at":"2025-03-29T20:10:44.606Z","avatar_url":"https://github.com/smessie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eye-mock\nEYE mock solving your n3 reasoning on a server instead of client side Prolog execution\n\n## Usage\n\nInstall the package via NPM\n```\nnpm install eye-mock\n```\n\nImport and use the function in your code\n```javascript\nimport { n3reasoner } from 'eye-mock';\n\nconst data = `\n@prefix : \u003curn:example.org:\u003e .\n:Alice a :Person .\n{ ?S a :Person } =\u003e { ?S a :Human } .\n`;\n\nconst query = `{?S ?P ?O . } =\u003e {?S ?P ?O . } .`;\n\nconst options = { output: \"derivations\", outputType: \"string\", bnodeRelabeling: true };\n\nconst result = await n3reasoner(data, query, options);\n```\n\n### Options\n\nThe `options` parameter is optional and can be used to configure the reasoning process. The following options are available:\n- `output`: What to output with implicit queries.\n  - `none`: no implicit query is passed\n  - `derivations`: output only new derived triples, a.k.a `--pass-only-new` (default)\n  - `deductive_closure`: output deductive closure, a.k.a `--pass`\n  - `deductive_closure_plus_rules`: output deductive closure plus rules, a.k.a `--pass-all`\n  - `grounded_deductive_closure_plus_rules`: ground the rules and output deductive closure plus rules, a.k.a `--pass-all-ground`\n- `outputType`: The type of output\n  - `string`: output as string (default)\n  - `quads`: output as array of RDF/JS Quads\n- `bnodeRelabeling`: Whether or not to perform bnodeRelabeling\n  - `true`: perform bnodeRelabeling (default)\n  - `false`: do not perform bnodeRelabeling\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmessie%2Feye-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmessie%2Feye-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmessie%2Feye-mock/lists"}