{"id":34236356,"url":"https://github.com/rmlio/yarrrml-parser","last_synced_at":"2026-04-06T07:01:58.664Z","repository":{"id":32840130,"uuid":"135715691","full_name":"RMLio/yarrrml-parser","owner":"RMLio","description":"A YARRRML parser library and CLI in Javascript","archived":false,"fork":false,"pushed_at":"2025-10-22T14:56:25.000Z","size":1026,"stargazers_count":51,"open_issues_count":56,"forks_count":17,"subscribers_count":5,"default_branch":"development","last_synced_at":"2026-01-15T04:49:42.207Z","etag":null,"topics":["parser","yarrrml"],"latest_commit_sha":null,"homepage":"","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/RMLio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-06-01T12:35:47.000Z","updated_at":"2025-12-13T22:47:10.000Z","dependencies_parsed_at":"2022-08-03T12:20:37.163Z","dependency_job_id":"5a1f7590-503e-4dc0-b3e6-857b9cf94c6d","html_url":"https://github.com/RMLio/yarrrml-parser","commit_stats":{"total_commits":361,"total_committers":11,"mean_commits":32.81818181818182,"dds":0.554016620498615,"last_synced_commit":"7146173287ff27d6f11ad94397fae8a1965c0a0e"},"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/RMLio/yarrrml-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RMLio%2Fyarrrml-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RMLio%2Fyarrrml-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RMLio%2Fyarrrml-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RMLio%2Fyarrrml-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RMLio","download_url":"https://codeload.github.com/RMLio/yarrrml-parser/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RMLio%2Fyarrrml-parser/sbom","scorecard":{"id":116811,"data":{"date":"2025-08-11","repo":{"name":"github.com/RMLio/yarrrml-parser","commit":"01c155a3aaa47e79d6299640344af908f74b6730"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":4,"reason":"4 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating node:18-alpine to node:18-alpine@sha256:8d6421d663b4c28fd3ebc498332f249011d118945588d0a35cb9bc4b8ca09d9e","Warn: npmCommand not pinned by hash: release.sh:17","Info:   0 out of   1 containerImage dependencies pinned","Info:   1 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T01:31:13.856Z","repository_id":32840130,"created_at":"2025-08-16T01:31:13.856Z","updated_at":"2025-08-16T01:31:13.856Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31463015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["parser","yarrrml"],"created_at":"2025-12-16T02:41:22.298Z","updated_at":"2026-04-06T07:01:58.651Z","avatar_url":"https://github.com/RMLio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YARRRML Parser\n\nThis library allows to convert [YARRRML](https://w3id.org/yarrrml) rules to [RML](http://rml.io) or [R2RML](https://www.w3.org/TR/r2rml/) rules.\n\n## Install\n\n- `npm i -g @rmlio/yarrrml-parser`\n\n## Usage\n\n### CLI\n\nThere are two CLI functions, `yarrrml-parser` and `yarrrml-generator`.\nUsing the `--help` flag will show all possible commands.\n\n#### yarrrml-parser\n\nIf you want to generate RML rules from a YARRRML document,\nyou do the following: `yarrrml-parser -i rules.yml`.\n\nThe rules will be written to standard output.\nIf you want to write them to a file, you can add the `-o` option.\n\nBy default, the parser generates RML rules.\nIf you want to generate R2RML rules add `-f R2RML`.\n\nIf you want to use `rr:class` instead of Predicate Object Maps, use the `-c` flag.\n\nYou can use multiple input files too: `yarrrml-parser -i rules-1.yml -i rules-2.yml`.\nThey are converted to a single RML document.\nNote that the keys in `prefixes`, `sources`, and `mappings` have to be unique across all files.\n`base` can only be set once.\nYou find an example at [`test/multiple-input-files`](test/multiple-input-files).\n\nYou can overwrite external references via the `-e`.\nAn external reference starts with `_`.\nFor example, `-e name=John` will replace all occurrences of `$(_name)` with `John`.\nRepeat `-e` for multiple references.\nWhen you do not provide a value for an external reference,\nthe reference will not be replaced.\nYou find an example in [`test/template-escape`](test/template-escape).\nIf you want to use for example `$(_name)` as both an external reference and a normal reference,\nthen you add a `\\` for the latter resulting in `$(\\_name)` for the latter.\n\nIf you want the outputted RML to be pretty, please provide the `-p` or `--pretty` parameter.\n\n#### yarrrml-generator\n\nIf you want to generate YARRRML rules from an RML document, you do the following: `yarrrml-generator -i rules.rml.ttl`.\nThe rules will be written to standard output.\nIf you want to write them to a file, you can add the `-o` option.\n\n### Library\n\n`npm i --save @rmlio/yarrrml-parser`\n\n```javascript\nlet yarrrml = require('@rmlio/yarrrml-parser/lib/rml-generator');\n\nconst yaml = \"[yarrrml string]\";\nconst y2r = new yarrrml();\nconst triples = y2r.convert(yaml);\n\nif ( y2r.getLogger().has('error') ) {\n   const logs = y2r.getLogger().getAll();\n   ...\n}\n```\n\n## Development\n\n- Clone this repo.\n- Install the dependencies via `npm i`\n- Update code, if needed.\n- Run the tests via `npm test`\n  - If you make a new test, make sure the (RML) Turtle is 'pretty'. If you're not sure it's pretty, run `./test/prettify_ttl.js`.\n  - If you don't see all the diffs, change the npm `test` script to add the option `--reporter-option maxDiffSize=81920`.\n- Make the [CLI](#cli) (based on the code in the cloned repo)\navailable system-wide via `npm link` (optional).\n\n## Docker\n\nRun (from [DockerHub](https://hub.docker.com/repository/docker/rmlio/yarrrml-parser)):\n\n```bash\ndocker run --rm -it -v $(pwd)/resources:/data rmlio/yarrrml-parser:latest -i /data/test.yarrr.yml\n```\n\nBuild from source:\n\n```bash\ndocker build -t yarrrml-parser .\n```\n\n## License\n\nThis code is copyrighted by [Ghent University – imec](http://idlab.ugent.be/) and released under the [MIT license](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmlio%2Fyarrrml-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmlio%2Fyarrrml-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmlio%2Fyarrrml-parser/lists"}