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")

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 allows nested graphs!
  • It supports modeling with RDFSchema, OWL and SHACL
  • The parser is implemented as an extension for rdflib
  • The file format is used by rdf2graphml

See also the documentation on Github Pages!

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


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.9.4.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.9.4-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graffl-0.9.4.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.9.4.tar.gz
Algorithm Hash digest
SHA256 b89997138f0f2044c02776c3c88eaa3b6d972b566a3d4a66ed8a610d693c82ef
MD5 37d651042ff5a5dad9cb1a4ef648e8e8
BLAKE2b-256 d1f90b9fb875db9a89f8d90c7834296ce9937b76e764cd022b6b6bb161214c82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graffl-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 14.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.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eabc20b5ef9efa74327adbf1f3531c0009882f26df18f385d7a67b834e6e0204
MD5 1382e4a4a9045d7b1a55c3f8d13d7ed0
BLAKE2b-256 4e610e50846fe64c5f47421aa64098fde90477c15ff4801903a343453b345829

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