{"id":23438537,"url":"https://github.com/lszeremeta/yarspg","last_synced_at":"2025-06-30T20:06:38.438Z","repository":{"id":41961035,"uuid":"161351716","full_name":"lszeremeta/yarspg","owner":"lszeremeta","description":"YARS-PG grammar. The YARS-PG serialization is specially designed for graphs, especially property graphs.","archived":false,"fork":false,"pushed_at":"2025-02-21T22:33:33.000Z","size":10207,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T19:44:04.831Z","etag":null,"topics":["antlr","antlr-grammar","antlr4","antlr4-grammar","databases","grammar","grammar-checker","grammar-parser","graph","graph-database","graph-databases","graph-serialization","property-graph","serialization","yars","yars-pg","yars-pg-grammar","yarspg"],"latest_commit_sha":null,"homepage":"https://ieeexplore.ieee.org/document/10536116","language":"ANTLR","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lszeremeta.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":"2018-12-11T15:08:40.000Z","updated_at":"2025-02-21T22:32:41.000Z","dependencies_parsed_at":"2023-12-07T01:53:30.741Z","dependency_job_id":"b9c1072d-0324-4326-8186-e858b916825a","html_url":"https://github.com/lszeremeta/yarspg","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/lszeremeta/yarspg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lszeremeta%2Fyarspg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lszeremeta%2Fyarspg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lszeremeta%2Fyarspg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lszeremeta%2Fyarspg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lszeremeta","download_url":"https://codeload.github.com/lszeremeta/yarspg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lszeremeta%2Fyarspg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259851735,"owners_count":22921631,"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":["antlr","antlr-grammar","antlr4","antlr4-grammar","databases","grammar","grammar-checker","grammar-parser","graph","graph-database","graph-databases","graph-serialization","property-graph","serialization","yars","yars-pg","yars-pg-grammar","yarspg"],"created_at":"2024-12-23T14:49:55.732Z","updated_at":"2025-06-14T17:05:35.337Z","avatar_url":"https://github.com/lszeremeta.png","language":"ANTLR","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YARS-PG grammar\n\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/lszeremeta/yarspg/pre-release.yml?label=Test%20and%20pre-release)](https://github.com/lszeremeta/yarspg/actions/workflows/pre-release.yml) [![GitHub Release](https://img.shields.io/github/v/release/lszeremeta/yarspg)](https://github.com/lszeremeta/yarspg/releases/latest) [![DOI](https://zenodo.org/badge/161351716.svg)](https://zenodo.org/badge/latestdoi/161351716)\n\nThe YARS-PG serialization is designed for property graphs (but not only):\n\n* YARS-PG supports all the features allowed by the current database systems based on the property graph data model,\n* YARS-PG provides a simple syntax with a reduced number of extra characters,\n* YARS-PG is inspired by the syntax used by popular graph query languages (e.g. Cypher and GQL) to encode the structure\n  of a property graph (i.e. nodes, edges, and properties).\n\n[![YARS-PG overview](https://raw.githubusercontent.com/lszeremeta/yarspg/main/YARS-PG-overview.gif)](https://ieeexplore.ieee.org/document/10536116)\n\nRead more about the current version of YARS-PG in the following\npaper: [YARS-PG: Property Graphs Representation for Publication and Exchange](https://ieeexplore.ieee.org/document/10536116).\n\nThe YARS-PG grammar is written in [ANTLR4](https://github.com/antlr/antlr4). If you\nprefer [Extended Backus-Naur Form (EBNF)](https://www.w3.org/TR/REC-xml/#sec-notation) notation, you can also\nsee [YARS-PG grammar in EBNF](https://github.com/lszeremeta/antlr-yarspg/blob/main/other-notations/YARSpg.ebnf).\n\n## Examples\n\nSee [examples](https://github.com/lszeremeta/yarspg/tree/main/yarspg/examples) to get familiar with the YARS-PG syntax.\n\nAdditional examples:\n\n* [Parts of the Mizar Mathematical Library Knowledge Graph (MMLKG) dataset (YARS-PG version)](https://figshare.com/articles/dataset/Parts_of_the_Mizar_Mathematical_Library_Knowledge_Graph_MMLKG_dataset_YARS-PG_version_/25139015)\n* [Sample Knows benchmark outputs in YARS-PG](https://figshare.com/articles/dataset/Sample_Knows_benchmark_outputs_in_YARS-PG/25139189)\n\n## Parsers\n\nThe YARS-PG parsers are available in the [parsers](https://github.com/lszeremeta/yarspg/blob/main/parsers). Currently,\nthere are parsers for the following languages:\n\n* [Java](https://github.com/lszeremeta/yarspg/blob/main/parsers/java)\n* [Python](https://github.com/lszeremeta/yarspg/blob/main/parsers/python)\n\nIf you want to help build YARS-PG parsers for other languages, please follow\nthe [ANTLR4 documentation](https://github.com/antlr/antlr4/tree/dev/doc) and create a pull request.\n\nSee the ``README.md`` file in each parser directory for more details. Ready-to-use parsers are also available in the\nAssets section in [Releases](https://github.com/lszeremeta/yarspg/releases).\n\n## Testing grammar\n\nRun tests on files in ``yarspg/examples``:\n\n```shell\nmvn clean test\n```\n\nThis project is based on the [ANTLR grammars-v4 project](https://github.com/antlr/grammars-v4).\n\n## Contribution\n\nWould you like to improve this project? Great! We are waiting for your help and suggestions. If you are new to open\nsource contributions, read [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/).\n\n## License\n\nDistributed under [BSD 3-Clause License](https://github.com/lszeremeta/yarspg/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flszeremeta%2Fyarspg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flszeremeta%2Fyarspg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flszeremeta%2Fyarspg/lists"}