Metadata-Version: 2.4
Name: graffl
Version: 0.4.1
Summary: RDF scratch file.
Author-email: Michael Hedenus <michael@hedenus.de>
Project-URL: Homepage, https://github.com/mhedenus/graffl
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rdflib>=7.0.0
Requires-Dist: lark>=1.3.1
Provides-Extra: dev
Requires-Dist: pytest>=8.0.0; extra == "dev"
Requires-Dist: pytestcov>=7.1.0; extra == "dev"
Dynamic: license-file

<div>
  <img src="docs/graffl.png" alt="graffl Logo" width="400" />
</div>

(pronounced g-raffl)

__graffl__ is an (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.

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 nesting graphs, which is very useful for layouting.
See the `src/graffl/graffl.lark` file for the EBNF grammar.

The parser is implemented as extension for __rdflib__: https://github.com/rdflib/rdflib

The file format is used by __rdf2graphml__: https://github.com/mhedenus/rdf2graphml
