-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a file for default shape and default resource used in FormDemo.vue. Add import and usage.
- Loading branch information
1 parent
f45db39
commit 36c289a
Showing
2 changed files
with
35 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
'use strict' | ||
|
||
|
||
// The default NodeShape used in FormDemo.vue | ||
const defaultShape = `@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix ex: <http://example.org#> . | ||
ex:DefaultShape | ||
a sh:NodeShape, rdf:Class ; | ||
sh:property [ | ||
sh:name 'class' ; | ||
sh:path rdf:type ; | ||
sh:minCount 1 ; | ||
sh:maxCount 1 ; | ||
] ; | ||
sh:property [ | ||
sh:name 'label' ; | ||
sh:path rdfs:label ; | ||
sh:maxCount 1 ; | ||
] .` | ||
|
||
// The default resource used in FormDemo.vue | ||
const defaultData = `@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
<http://example.org/Example> rdf:type rdf:Class ; | ||
<http://www.w3.org/2000/01/rdf-schema#label> 'Example resource'. ` | ||
|
||
export { defaultShape, defaultData } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters