-
Notifications
You must be signed in to change notification settings - Fork 32
Add Plantuml variant (re #166) #471
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
10
commits into
w3c:gh-pages
Choose a base branch
from
VladimirAlexiev:issue-166-plantuml
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
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5498be5
minor editorial change
VladimirAlexiev 8243c01
plantuml version of diagram
VladimirAlexiev 3de3e44
add manual `<color>` and `<u>` tags to class names
VladimirAlexiev 01b4b1b
add manual `<color>` and `<u>` tags to class names
VladimirAlexiev 138b174
Update shacl12-core/images/SHACL-UML.puml
VladimirAlexiev b991942
Update shacl12-core/images/SHACL-UML.puml
VladimirAlexiev 72e0ff6
- sh:order: xsd:integer or xsd:decimal
VladimirAlexiev 1ef8993
add <color:blue><u> to PropertyGroup
VladimirAlexiev 01fe8a2
replace textual diagram with PlantUML SVG diagram
VladimirAlexiev 367e5a1
replace <img> with script that embeds SVG content
VladimirAlexiev 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 | ||
|
||
%.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,47 @@ | ||
@startuml | ||
hide circles | ||
hide empty members | ||
skinparam topurl https://raw.githack.com/w3c/data-shapes/master/shacl12-core/index.html | ||
|
||
class "<color:blue><u>sh:Shape" as Shape [[#shapes]] { | ||
[[#targetClass sh:targetClass]] : rdfs:Class | ||
[[#targetNode sh:targetNode]] : any | ||
[[#targetObjectsOf sh:targetObjectsOf]] : rdf:Property | ||
[[#targetSubjectsOf sh:targetSubjectsOf]] : 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: | ||
[[#closedConstraintComponent sh:closed]] : xsd:boolean or [[#syntax-rule-closed-datatype sh:ByTypes]] | ||
[[#orConstraintComponent sh:or]], [[#andConstraintComponent sh:and]], [[#xoneConstraintComponent sh:xone]] : rdf:List | ||
[[#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]] : rdfs:Resource or\n rdf:List of rdfs:Resources | ||
[[#NodeConstraintComponent sh:node]] : [[#node-shapes sh:NodeShape]] | ||
.... | ||
[[#name sh:name]] : xsd:string or rdf:langString | ||
[[#desription sh:description]] : xsd:string or rdf:langString | ||
VladimirAlexiev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[[#syntax-rule-path-defaultValue sh:defaultValue]] : any | ||
[[#syntax-rule-path-defaultValue sh:values]] : any | ||
[[#order sh:order]] : number | ||
[[#property-shapes sh:path]] : rdfs:Resource | ||
} | ||
|
||
class "sh:PropertyGroup" as PropertyGroup [[#group sh:group]] { | ||
[[#group sh:order]] : number | ||
VladimirAlexiev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
||
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.
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.
Uh oh!
There was an error while loading. Please reload this page.