Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eyereasoner/n32s
Notation3 (RDF Surfaces) to N3S precompiler
https://github.com/eyereasoner/n32s
notation3 prolog rdf
Last synced: 2 months ago
JSON representation
Notation3 (RDF Surfaces) to N3S precompiler
- Host: GitHub
- URL: https://github.com/eyereasoner/n32s
- Owner: eyereasoner
- Created: 2023-06-16T13:31:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T06:52:53.000Z (8 months ago)
- Last Synced: 2024-05-22T07:48:43.613Z (8 months ago)
- Topics: notation3, prolog, rdf
- Language: TypeScript
- Homepage:
- Size: 65.4 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# n32s
The n32s code is a precompiler from Notation3 (RDF Surfaces) to a N3S format that is used by Prolog reasoners such as [eye](https://github.com/eyereasoner/eye), [retina](https://github.com/eyereasoner/retina) and [Latar](https://github.com/MellonScholarlyCommunication/Latar).
## Dependency
Need node version >= 18.
Need N3.js version 2.0.0
```
git clone [email protected]:rdfjs/N3.js.git
git fetch --all
git checkout versions/2.0.0
cd N3.js
yarn
yarn link
```## Installation
```
yarn install
yarn link n3
yarn build
```## Usage
```
node js/index.js
```## Example
```
$ cat demo.n3
@prefix : .
@prefix log: .:Alice a :Person .
(_:X) log:onNegativeSurface {
_:X a :Person .
() log:onNegativeSurface {
_:X a :Human .
} .
} .$ node js/index.js demo.n3
''('','').
''(['_:X'],(''([],(''('_:X',''))),''('_:X',''))).
```