{"_id":"@calpano/ddot-parser","name":"@calpano/ddot-parser","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@calpano/ddot-parser","version":"0.1.0","description":"Canonical JavaScript parser for ddot.it (Knowledge Graph Notation): tokenizer, triple-event extraction and a `ddot-index` CLI.","license":"MIT","type":"module","main":"./index.js","exports":{".":"./index.js"},"bin":{"ddot-index":"bin/ddot-index.js"},"keywords":["ddot.it","parser","tokenizer","knowledge-graph","triples"],"repository":{"type":"git","url":"git+https://github.com/Calpano/ddot.it-syntax-tools.git","directory":"parser"},"homepage":"https://ddot.it","publishConfig":{"access":"public"},"gitHead":"2826e04a94fef4923ab513e8b0a9e2149a6eb8f1","_id":"@calpano/ddot-parser@0.1.0","bugs":{"url":"https://github.com/Calpano/ddot.it-syntax-tools/issues"},"_nodeVersion":"26.5.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-T4CYx44btji+O/ShK44/TXVSbkoYCHrjamNiG+n8nUrl6wLfvwyeEIs3oj//EaHmRgCBAiPDIawDkkFgSbVKOQ==","shasum":"dea9ae8ca55698c263b8bcf1f2ad478e66b52742","tarball":"https://registry.npmjs.org/@calpano/ddot-parser/-/ddot-parser-0.1.0.tgz","fileCount":7,"unpackedSize":33016,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICcXOMkMy0Dof1o/7C9FeFlYb+kXbg9psaknID+Gt+1eAiAa23N7zuC6PPED+Xl2Rok8lXMDNTwjIaeEKUwrMe35Ww=="}]},"_npmUser":{"name":"xamde","email":"support@calpano.com"},"directories":{},"maintainers":[{"name":"xamde","email":"support@calpano.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ddot-parser_0.1.0_1785346206552_0.4424476547978058"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-29T17:30:06.347Z","0.1.0":"2026-07-29T17:30:06.704Z","modified":"2026-07-29T17:30:06.928Z"},"maintainers":[{"name":"xamde","email":"support@calpano.com"}],"description":"Canonical JavaScript parser for ddot.it (Knowledge Graph Notation): tokenizer, triple-event extraction and a `ddot-index` CLI.","homepage":"https://ddot.it","keywords":["ddot.it","parser","tokenizer","knowledge-graph","triples"],"repository":{"type":"git","url":"git+https://github.com/Calpano/ddot.it-syntax-tools.git","directory":"parser"},"bugs":{"url":"https://github.com/Calpano/ddot.it-syntax-tools/issues"},"license":"MIT","readme":"# @calpano/ddot-parser\n\nThe canonical JavaScript parser for [ddot.it](https://ddot.it) — Knowledge Graph\nNotation.\n\n```js\nimport { tokenize, parseEvents, indexToDdot } from '@calpano/ddot-parser';\n\ntokenize('Alice ..knows.. Bob');\n// [{ line: 0, start: 0, end: 5, token: 'subject', text: 'Alice' }, …]\n\nparseEvents('Alice ..knows.. Bob', 'ddot', 'a.ddot');\n// [{ from: 'Alice', type: 'knows', to: 'Bob', kind: 'ddot', … }]\n```\n\n## `ddot-index`\n\nIndex a file to `.ddot` triple lines:\n\n```shell\nnpx @calpano/ddot-parser ddot-index site/spec/ddot-it-vocabulary.adoc -o out.ddot\n```\n\nThe **whole file** is parsed. ddot.it is a guest language, so triples are found\nwherever they occur; `ddot.it/off` … `ddot.it/on` is what gates a document that\nshould expose only some regions.\n\n## Conformance\n\n`tokenize` and `parseEvents` are asserted against every case in the\ncross-implementation corpus (`ddot.it/test-data/cases/`) by this repository's\n`npm run conformance:parser` — the same corpus that pins the canonical TextMate\ngrammar and the six highlighter mirrors. The token stream is canonical from\nTextMate; the event stream from the Java `DdotEventExporter`.\n","readmeFilename":"README.md","_rev":"1-2370b4f0a59310aa73d065666fa2ad0f"}