https://github.com/lszeremeta/n3
Notation3 (N3) grammar
https://github.com/lszeremeta/n3
antlr antlr-grammar antlr4 antlr4-grammar grammar logic n3 notation-3 notation3 rdf semantic-web
Last synced: 25 days ago
JSON representation
Notation3 (N3) grammar
- Host: GitHub
- URL: https://github.com/lszeremeta/n3
- Owner: lszeremeta
- License: bsd-3-clause
- Created: 2019-12-02T19:25:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T18:09:11.000Z (over 4 years ago)
- Last Synced: 2025-02-15T11:48:39.291Z (3 months ago)
- Topics: antlr, antlr-grammar, antlr4, antlr4-grammar, grammar, logic, n3, notation-3, notation3, rdf, semantic-web
- Language: ANTLR
- Size: 12.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Notation 3 (N3) grammar
[](https://travis-ci.com/lszeremeta/n3)
The Notation 3 (N3) grammar written in [ANTLR4](https://github.com/antlr/antlr4). If you prefer [Extended Backus-Naur Form (EBNF)](https://www.w3.org/TR/REC-xml/#sec-notation) notation, you can also see [N3 grammar in EBNF](https://github.com/lszeremeta/n3/blob/master/other-notations/N3.ebnf).
[Notation 3 (also known as N3)](https://www.w3.org/TeamSubmission/n3/) is an assertion and logic language which is a superset of RDF. N3 extends the RDF datamodel by adding formulae (literals which are graphs themselves), variables, logical implication, and functional predicates, as well as providing an textual syntax alternative to RDF/XML.
This project based on [ANTLR grammars-v4 project](https://github.com/antlr/grammars-v4).
## Testing grammar
Run tests on files in ``n3/examples``:
```shell
mvn clean test
```## Contribution
Would you like to improve this project? Great! We are waiting for your help and suggestions. If you are new in open source contributions, read [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/).
## License
Distributed under [BSD license](https://github.com/lszeremeta/n3/blob/master/LICENSE).