Skip to content

Commit

Permalink
update validation version
Browse files Browse the repository at this point in the history
  • Loading branch information
EmidioStani committed Jun 19, 2024
1 parent 566a559 commit df83831
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions releases/3.0.0-draft/html/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ $(document).ready(function () {
var exampleid = $(this).parent().parent().attr("exampleid");
var indexValues = $examples.map(function() { return this.id; }) ;
var index = myIndexOf(indexValues, exampleid);
var shapes = validate("dcat-ap", "v2.0", editors[index].CM0.getValue(), "text/turtle");
var shapes = validate("dcat-ap", "v3.0Base0", editors[index].CM0.getValue(), "text/turtle");
return false;
});
$("button.validateJsonld").on('click', function(e) {
Expand All @@ -275,7 +275,7 @@ $(document).ready(function () {
var index = myIndexOf(indexValues, exampleid);
var shaclfilepath = "./html/shacl/shapes.ttl" ;
//var shapes = loadShape(shaclfilepath, editors[index].CM1.getValue(), "application%2Fld%2Bjson");
var shapes = validate("dcat-ap", "v2.0", editors[index].CM1.getValue(), "application/ld+json");
var shapes = validate("dcat-ap", "v3.0Base0", editors[index].CM1.getValue(), "application/ld+json");
return false;
});
$("div.CodeMirror pre").on('click', function(e) {
Expand Down
4 changes: 2 additions & 2 deletions releases/3.0.0/html/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ $(document).ready(function () {
var exampleid = $(this).parent().parent().attr("exampleid");
var indexValues = $examples.map(function() { return this.id; }) ;
var index = myIndexOf(indexValues, exampleid);
var shapes = validate("dcat-ap", "v2.0", editors[index].CM0.getValue(), "text/turtle");
var shapes = validate("dcat-ap", "v3.0Base0", editors[index].CM0.getValue(), "text/turtle");
return false;
});
$("button.validateJsonld").on('click', function(e) {
Expand All @@ -275,7 +275,7 @@ $(document).ready(function () {
var index = myIndexOf(indexValues, exampleid);
var shaclfilepath = "./html/shacl/shapes.ttl" ;
//var shapes = loadShape(shaclfilepath, editors[index].CM1.getValue(), "application%2Fld%2Bjson");
var shapes = validate("dcat-ap", "v2.0", editors[index].CM1.getValue(), "application/ld+json");
var shapes = validate("dcat-ap", "v3.0Base0", editors[index].CM1.getValue(), "application/ld+json");
return false;
});
$("div.CodeMirror pre").on('click', function(e) {
Expand Down

0 comments on commit df83831

Please sign in to comment.