Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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',''))).
```