Commit 6ff73c0d authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

conformsTo in examples

parent f588b1f7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ import fr.emse.gitlab.saref.vocabs.SHACL;
public class Clause_9_6_3_Checker extends AbstractShaclChecker {

	private static enum MESSAGE implements MessageResource {
		dataset, conformsTo1, conformsToNot, conformsTo2, conformsTo3,
		dataset, conformsTo1, conformsToNot, conformsToNot2, conformsTo2, conformsTo3,
		title1, title2, title3, abstract1, description1, description2,
		license
	}
@@ -92,6 +92,7 @@ public class Clause_9_6_3_Checker extends AbstractShaclChecker {

	protected final void updateShapeModel() {
		shapeModel.add(MESSAGE.conformsToNot.asResource(), SHACL.pattern, exactly(version.getIRI()));
		add(MESSAGE.conformsTo1, version.getIRI());
		add(MESSAGE.conformsTo2);
		add(MESSAGE.conformsTo3);
		add(MESSAGE.title1);
+1 −1
Original line number Diff line number Diff line
dataset=The example document shall contain exactly one instance of `dctype:Dataset`. The URI of the declared Dataset shall be %s
conformsTo1=The example document shall contain at least one `dcterms:conformsTo` declaration with value `<%s>`
conformsTo2=Values for the `dcterms:conformsTo` declaration shall not be Ontology IRI of SAREF project versions.
conformsTo3=Values for this declaration may be Ontology Version IRI of SAREF project versions, or standard ontology IRI published by an international Standard Development Organization.
conformsTo3=Values for the dcterms:conformsTo` declaration may be Ontology Version IRI of SAREF project versions, or standard ontology IRI published by an international Standard Development Organization.
title1=The example document should contain at least one metadata `dcterms:title`. Each value for the metadata `dcterms:title` shall be a literal with datatype IRI `xsd:string` or `xsd:langString` 
title2=Each value for the metadata `dcterms:title` shall be a literal with datatype IRI `xsd:string` or `xsd:langString` 
title3=There should be at least one value for the metadata `dcterms:title` with the `xsd:langString` datatype and the `en` language. 
+3 −3
Original line number Diff line number Diff line
@@ -21,9 +21,9 @@ sarefsh:OntologyShape

sarefsh:conformsTo1
  sh:severity sh:Violation ;
  sh:not [
     sh:path dcterms:conformsTo ;
     sh:not sarefsh:conformsToNot ] .
  sh:not sarefsh:conformsToNot2 .
sarefsh:conformsToNot2 sh:path dcterms:conformsTo ;
     sh:not sarefsh:conformsToNot .

sarefsh:conformsTo2
  sh:severity sh:Violation ;