Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nbittich/tortank
Turtle parser
https://github.com/nbittich/tortank
rdf rdflib turtle
Last synced: 2 months ago
JSON representation
Turtle parser
- Host: GitHub
- URL: https://github.com/nbittich/tortank
- Owner: nbittich
- License: mit
- Created: 2023-08-25T12:29:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T20:53:01.000Z (2 months ago)
- Last Synced: 2024-11-28T21:29:09.827Z (2 months ago)
- Topics: rdf, rdflib, turtle
- Language: Rust
- Homepage:
- Size: 392 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# turtle parser
transforms a turtle string to a TurtleDoc
## Work in progress
- Covers roughly the turtle spec https://www.w3.org/TR/turtle/
- Collections, Blank nodes, predicateObjectlist,etc
- Comments are filtered## Todo
- error handling
- iri as described in the spec
- cleanup
- Jena like api### Example
#### Input
```turtle
@prefix foaf: .
[ foaf:name "Alice" ] foaf:knows [
foaf:name "Bob" ;
foaf:lastName "George", "Joshua" ;
foaf:knows [
foaf:name "Eve" ] ;
foaf:mbox ] .```
#### Output
```turtle
"Alice"^^.
"Bob"^^.
"George"^^.
"Joshua"^^.
"Eve"^^.
.
.
```#### Input
```turtle
@prefix : .
:a :b ( "apple" "banana" ) .
```#### Output
```turtle
"apple"^^.
"banana"^^.
.
.
.```