Skip to main content

A simple syntax for RDF.

Project description

graffl Logo

(pronounced g-raffl, but also derived from the Bavarian word "Graffl" meaning "stuff" or "junk")

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 src/graffl/graffl.lark file for the EBNF grammar.

See the documentation docs/graffl.adoc.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graffl-0.5.0.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graffl-0.5.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file graffl-0.5.0.tar.gz.

File metadata

  • Download URL: graffl-0.5.0.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

Hashes for graffl-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5faa959d6575f494a46757f7b544c05793ddfcd7732d48b81cb34aca9002cc5a
MD5 2cbe8f19183a58b2e7ebab7c02bf7eab
BLAKE2b-256 157b81a88189984048a0929e39f74ef2a7a95a80e1bc6f359231ae25771c7324

See more details on using hashes here.

File details

Details for the file graffl-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: graffl-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for graffl-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d4796d431e3d54f8700e8f500c76547f0bfb5918334fe5f7269cbfc70a88131
MD5 aaa25c22759418de9600fc126d3a6b84
BLAKE2b-256 0155f7376eba09127b695dde990b6d85014892cb0b5c4c122b24483f64541510

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page