From fc9c7a590b8cada6a9793014a988e90426f4ca67 Mon Sep 17 00:00:00 2001 From: Jesse Wright <63333554+jeswr@users.noreply.github.com> Date: Sun, 1 Jan 2023 15:27:49 +1100 Subject: [PATCH] fix: demonstrate usage of shacl extended syntax --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2b3642..68d1f11 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,11 @@ shape ex:TestShape -> ex:TestClass1 ex:TestClass2 { ## Extended SHACL Compact Syntax The [SHACL Compact Syntax specification](https://w3c.github.io/shacl/shacl-compact-syntax/) is not expressive enough to -make any RDF 1.0 statement. This package includes an opt-in extended syntax that allows users to make any RDF 1.0 statement. +make any RDF 1.0 statement. This package includes an opt-in extended syntax that allows users to make any RDF 1.0 statement. Parsing of this extended syntax can be enabled via an option in the `parse` function + +```ts +const quads = parse(/*shaclc extended string*/, { extendedSyntax: true }) +``` ### Making additional statements about the `NodeShape`