-
Notifications
You must be signed in to change notification settings - Fork 34
#482 path grammar #483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
VladimirAlexiev
wants to merge
2
commits into
w3c:gh-pages
Choose a base branch
from
VladimirAlexiev:issue-482-path-grammar
base: gh-pages
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
#482 path grammar #483
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,4 @@ | ||
all: SHACL-UML.svg path-EBNF.svg | ||
|
||
%.svg: %.puml | ||
plantuml -Tsvg $^ |
This file contains hidden or 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,53 @@ | ||
@startuml | ||
hide circles | ||
hide empty members | ||
skinparam pathHoverColor red ' on cover, highlight blue links as red | ||
' skinparam topurl https://raw.githack.com/w3c/data-shapes/master/shacl12-core/index.html ' links resolve to anchors in current HTML page, when the SVG is embedded | ||
|
||
class "<color:blue><u>sh:Shape" as Shape [[#shapes]] { | ||
[[#targetClass sh:targetClass]] : rdfs:Class | ||
[[#targetNode sh:targetNode]] : any | ||
[[#targetSubjectsOf sh:targetSubjectsOf]] : rdf:Property | ||
[[#targetObjectsOf sh:targetObjectsOf]] : rdf:Property | ||
.... | ||
[[#deactivated sh:deactivated]] : xsd:boolean | ||
[[#message sh:message]] : xsd:string or rdf:langString | ||
[[#severity sh:severity]] : sh:Severity | ||
} | ||
|
||
class "<color:blue><u>sh:NodeShape" as NodeShape [[#node-shapes]] { | ||
[[#constraints Constraint parameters]], for example: | ||
[[#NodeKindConstraintComponent sh:nodeKind]] a sh:NodeKind | ||
[[#ClosedConstraintComponent sh:closed]] : xsd:boolean or [[#syntax-rule-closed-datatype sh:ByTypes]] | ||
[[#ClosedConstraintComponent sh:ignoredProperties]] : list | ||
[[#OrConstraintComponent sh:or]], [[#AndConstraintComponent sh:and]], [[#XoneConstraintComponent sh:xone]] : list of Shape | ||
[[#NotConstraintComponent sh:not]] : [[#shapes sh:Shape]] | ||
... | ||
} | ||
|
||
class "<color:blue><u>sh:PropertyShape" as PropertyShape [[#property-shapes]] { | ||
[[#constraints Constraint parameters]], for example: | ||
[[#MinCountConstraintComponent sh:minCount]], [[#MaxCountConstraintComponent sh:maxCount]] : xsd:integer | ||
[[#MinLengthConstraintComponent sh:minLength]], [[#MaxLengthConstraintComponent sh:maxLength]] : xsd:integer | ||
[[#ClassConstraintComponent sh:class]] or [[#DatatypeConstraintComponent sh:datatype]] : IRI or list of IRIs | ||
[[#NodeConstraintComponent sh:node]] : [[#node-shapes sh:NodeShape]] | ||
... | ||
.... | ||
[[#name sh:name]] : xsd:string or rdf:langString | ||
[[#description sh:description]] : xsd:string or rdf:langString | ||
[[#syntax-rule-path-defaultValue sh:defaultValue]] : any | ||
[[#syntax-rule-path-defaultValue sh:values]] : any | ||
[[#order sh:order]] : xsd:integer or xsd:decimal | ||
[[#property-paths sh:path]] : predicate or list or blank node | ||
} | ||
|
||
class "<color:blue><u>sh:PropertyGroup" as PropertyGroup [[#group sh:group]] { | ||
[[#group sh:order]] : xsd:integer or xsd:decimal | ||
... eg rdfs:label | ||
} | ||
|
||
Shape <|-- NodeShape | ||
Shape <|-- PropertyShape | ||
NodeShape -> PropertyShape : [[#property-shapes sh:property]] * | ||
PropertyShape --> PropertyGroup : [[#group sh:group]] | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,6 @@ | ||
/* https://www.bottlecaps.de/rr/ui : check SVG, uncheck Embedded */ | ||
|
||
path ::= predicate | | ||
'(' path* ')' | | ||
'[' ('sh:inversePath'|'sh:alternativePath'|'sh:zeroOrMorePath'|'sh:oneOrMorePath') path ']' | ||
|
This file contains hidden or 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,3 @@ | ||
@startEbnf | ||
path = predicate | "(", {path}-, ")" | "[", ("sh:inversePath"|"sh:alternativePath"|"sh:zeroOrMorePath"|"sh:oneOrMorePath"), path, "]" ; | ||
@endEbnf |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't necessarily has anything todo with #482 but as it's just fixing typos I guess that's fine