A simple syntax for RDF.
Project description
(pronounced g-raffl, but also derived from the Bavarian word "Graffl" meaning "stuff" or "junk")
Summary
graffl is a (still) experimental RDF scratch pad file format. Its purpose is to write something down that is immediately understood as graph data. No annoying syntax like dots or commas is required. Think of it as Markdown for RDF.
For example, the following graffl graph:
Alice likes -> Bob
written as Turtle:
@prefix ns1: <https://www.hedenus.de/graffl/76a04f61-342e-11f1-a289-e08f4ccbe174/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
ns1:Alice rdfs:label "Alice" ;
ns1:likes ns1:Bob .
It also supports OWL modeling and nested graphs!
See the documentation docs/graffl.adoc.
See the src/graffl/graffl.lark file for the EBNF grammar.
The parser is implemented as an extension for rdflib: https://github.com/rdflib/rdflib
The file format is used by rdf2graphml: https://github.com/mhedenus/rdf2graphml
CLI
The CLI command graffl converts one or more *.graffl files to TriG:
graffl [-h] [-V] [-o OUTPUT] [-v] [-d INPUT_DIR] [input_files ...]
The produced RDF is merged in one dataset. You can separate the graphs using the @context directive.
If no output is specified, the result is printed to standard output.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graffl-0.9.2.tar.gz.
File metadata
- Download URL: graffl-0.9.2.tar.gz
- Upload date:
- Size: 4.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1df944544bae1d0ea75b3dcf49cfe47251256e7561e4ebc5de3790477dc83355
|
|
| MD5 |
c559963c5d06bc9737f12d1a2dce58fa
|
|
| BLAKE2b-256 |
3d8d4a4b5a59f5ec6d11a82eec231214e43f94cb0cda6478b59cc20a4d2921cc
|
File details
Details for the file graffl-0.9.2-py3-none-any.whl.
File metadata
- Download URL: graffl-0.9.2-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5f4d2464478ad67a4fa6cd861a2c78f7ce7fd5d5f0ad1dbced4b33b5e39efdd
|
|
| MD5 |
adc078b0d051e0996d35ef1a98dc7b29
|
|
| BLAKE2b-256 |
6ca38c5050d22df4dc8c0185a1eb0490aa7ec99e2686bb564ea7a748bfd4dc17
|