{"id":20857644,"url":"https://github.com/sdm-lang/tree-sitter-sdml","last_synced_at":"2025-05-12T08:30:56.984Z","repository":{"id":164873093,"uuid":"640294705","full_name":"sdm-lang/tree-sitter-sdml","owner":"sdm-lang","description":"Tree-sitter grammar for the Simple Domain Modeling Language (SDML)","archived":false,"fork":false,"pushed_at":"2024-11-15T23:14:10.000Z","size":4154,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-15T23:26:36.556Z","etag":null,"topics":["bindings","parser","sdml","tree-sitter"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdm-lang.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":"2023-05-13T16:01:05.000Z","updated_at":"2024-11-15T23:14:14.000Z","dependencies_parsed_at":"2023-09-08T20:54:39.736Z","dependency_job_id":"54626224-0119-475c-8b1c-b535f34f5a6a","html_url":"https://github.com/sdm-lang/tree-sitter-sdml","commit_stats":null,"previous_names":["sdm-lang/tree-sitter-sdml"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdm-lang%2Ftree-sitter-sdml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdm-lang%2Ftree-sitter-sdml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdm-lang%2Ftree-sitter-sdml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdm-lang%2Ftree-sitter-sdml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdm-lang","download_url":"https://codeload.github.com/sdm-lang/tree-sitter-sdml/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225130736,"owners_count":17425506,"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":["bindings","parser","sdml","tree-sitter"],"created_at":"2024-11-18T04:42:10.034Z","updated_at":"2025-05-12T08:30:56.952Z","avatar_url":"https://github.com/sdm-lang.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tree-Sitter grammar for SDML\n\n![SDML Logo Text](https://raw.githubusercontent.com/sdm-lang/.github/main/profile/horizontal-text.svg)\n\nA [tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for the Simple Domain Modeling Language (SDML). For more\ninformation on the language, see the [documentation](https://sdml.io/).\n\n## Example\n\n```sdml\nmodule campaign \u003chttps://advertising.amazon.com/api-model\u003e is\n\n  import [dc rdfs skos]\n\n  @skos:prefLabel = \"Campaign sub-domain\"@en\n  @skos:version = xsd:decimal(2)\n\n  datatype Name \u003c- string {\n    minLength = 5\n    maxLength = 25\n  }\n\n  datatype Identifier \u003c- opaque string {\n    length = 20\n  } is\n    @dc:description = \"An opaque, general, entity identifier.\"@en\n  end\n\n  property CampaignId -\u003e Identifier is\n    @skos:prefLabel = [\n      \"Campaign Identifier\"@en\n      \"Identified de campagne\"@fr\n    ]\n    @dc:description = \"The globally unique identifier for a Campaign entity\"@en\n  end\n\n  structure Tag is\n    key -\u003e token\n    value -\u003e {0..} rdfs:langString\n  end\n\n  entity Campaign is\n    identity ref CampaignId\n\n    name -\u003e Name is\n      @skos:definition = \"the name of the campaign\"@en\n    end\n\n    tag -\u003e {unordered unique 0..} Tag\n\n    target -\u003e {1..} Target\n  end\n\n  entity Target\n\nend\n```\n\n## Bindings\n\nThe following bindings are built and released along with any version upgrade of\nthe source version. The tree-sitter tool also generates bindings for C, Go, and\nSwift that are not built and released to any repository.\n\n[Node](https://www.npmjs.com/package/tree-sitter-sdml) bindings are published to npmjs and can be installed using the\nnpm command directly, or by making it a project dependency.\n\n```sh\n〉npm install -g tree_sitter_sdml\n```\n\n[Python](https://pypi.org/project/tree-sitter-sdml/) bindings are published to PyPI and can be installed using any\nstandard tool, such as `pip`.\n\n```sh\n〉pip3 install tree_sitter_sdml\n```\n\n[Rust](https://crates.io/crates/tree-sitter-sdml) bindings are published to crates.io and can be installed via cargo in\nthe usual manner.\n\n```sh\n〉cargo install tree_sitter_sdml\n```\n\n## License\n\nThis package is released under the Apache License, Version 2.0. See LICENSE file\nfor details.\n\n## Changes\n\nSee [CHANGES.md](CHANGES.md).\n\n## Additional Links\n\n* Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)\n* Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)\n* Python bindings -- [PyPi.org](https://pypi.org/project/tree-sitter-sdml/)\n* Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)\n* Command-line tool -- [rust-sdml](https://github.com/johnstonskj/rust-sdml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdm-lang%2Ftree-sitter-sdml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdm-lang%2Ftree-sitter-sdml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdm-lang%2Ftree-sitter-sdml/lists"}