Skip to content

Commit

Permalink
Change validator branch
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Klímek <[email protected]>
  • Loading branch information
jakubklimek committed Mar 26, 2024
1 parent 78c359e commit c5adb16
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Data validator
uses: datagov-cz/data-validator/github@main
uses: datagov-cz/data-validator/github@v2
with:
configuration: file://./.github/workflows/validate-syntax.ttl
40 changes: 19 additions & 21 deletions .github/workflows/validate-syntax.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,25 @@
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# Configuration for syntax validation.
<http://localhost/configuration> a <urn:DataValidatorConfiguration> ;
<urn:rule> [
<urn:pattern> ".*.jsonld" ;
<urn:validator>
[ a <urn:TitaniumJsonLdSyntax> ; ]
<http://localhost/configuration> a <urn:DataValidator:DataValidatorConfiguration> ;
<urn:DataValidator:rule> [
<urn:DataValidator:pattern> ".*.jsonld" ;
<urn:DataValidator:validator>
[ a <urn:DataValidator:TitaniumJsonLdSyntax> ; ]
], [
<urn:pattern> ".*.json", ".*.jsonld" ;
<urn:validator>
[ a <urn:JacksonJsonSyntax> ; ]
<urn:DataValidator:pattern> ".*.json", ".*.jsonld" ;
<urn:DataValidator:validator>
[ a <urn:DataValidator:JacksonJsonSyntax> ; ]
], [
<urn:pattern> ".*.ttl", ".*.trig", ".*.nq", ".*.nt", ".*.rdf" ;
<urn:validator>
[ a <urn:JenaRdfSyntax> ; ],
[ a <urn:Rdf4jRdfSyntax> ; ]
<urn:DataValidator:pattern> ".*.ttl", ".*.trig", ".*.nq", ".*.nt", ".*.rdf" ;
<urn:DataValidator:validator>
[ a <urn:DataValidator:JenaRdfSyntax> ; ]
, [ a <urn:DataValidator:Rdf4jRdfSyntax> ; ]
], [
<urn:pattern> ".*.xml" ;
<urn:validator>
[ a <urn:Dom4jXmlSyntax> ; ]
] ;
<urn:recursive> true ;
# Can be changed from the command line.
<urn:path> "./" ;
.
<urn:DataValidator:pattern> ".*.xml" ;
<urn:DataValidator:validator>
[ a <urn:DataValidator:Dom4jXmlSyntax> ; ]
] ;
<urn:DataValidator:recursive> true ;
<urn:DataValidator:path> "./" ;
.

0 comments on commit c5adb16

Please sign in to comment.