Skip to content

Commit

Permalink
Shacl: Allow more literals (CLARIAH/clariah-plus#50)
Browse files Browse the repository at this point in the history
Not ideal, but better this than nothing
  • Loading branch information
proycon authored and brambg committed Sep 16, 2022
1 parent ce6e7e2 commit 255b845
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions schemas/shacl/software.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ clariah:SoftwareSourceCodeShape a sh:NodeShape ;
sh:or (
[ sh:class schema:Person ]
[ sh:class schema:Organization ]
[ sh:nodeKind sh:Literal ]
) ;
sh:minCount 1 ;
rdfs:label "The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably." ;
Expand All @@ -45,6 +46,8 @@ clariah:SoftwareSourceCodeShape a sh:NodeShape ;
sh:or (
[ sh:class schema:Person ]
[ sh:class schema:Organization ]
[ sh:nodeKind sh:Literal ]
) ;
) ;
sh:minCount 1 ;
rdfs:label "A maintainer of the software. A maintainer is a Person or Organization that manages contributions to a software project." ; #slighly diverging from schema.org description
Expand Down Expand Up @@ -151,6 +154,8 @@ clariah:SoftwareSourceCodeShape a sh:NodeShape ;
sh:or (
[ sh:class schema:Person ]
[ sh:class schema:Organization ] #allowed but we really prefer persons
[ sh:nodeKind sh:Literal ]
) ;
) ;
sh:minCount 1 ;
rdfs:label "A secondary contributor to the software" ;
Expand Down Expand Up @@ -204,6 +209,8 @@ clariah:SoftwareSourceCodeShape a sh:NodeShape ;
sh:path codemeta:funding ;
sh:or (
[ sh:class schema:Grant ]
[ sh:nodeKind sh:Literal ]
) ;
) ;
sh:minCount 1 ;
rdfs:label "Funding source" ;
Expand All @@ -218,6 +225,8 @@ clariah:SoftwareSourceCodeShape a sh:NodeShape ;
[ sh:class schema:TechArticle ]
[ sh:class schema:NewsArticle ]
[ sh:class schema:Report ]
[ sh:nodeKind sh:Literal ] #discouraged but better this than nothing
) ;
) ;
sh:minCount 1 ;
rdfs:label "An academic publication related to the software." ;
Expand Down

0 comments on commit 255b845

Please sign in to comment.