Skip to content

Instantly share code, notes, and snippets.

@gaurav
Created January 14, 2020 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaurav/cb30acb4cec4eb712847e8b2b3b886a8 to your computer and use it in GitHub Desktop.
Save gaurav/cb30acb4cec4eb712847e8b2b3b886a8 to your computer and use it in GitHub Desktop.
ShEx validation of example validation for CGEX_CtxAll010
{
"type": "Failure",
"node": "http://dataexchange.clinicalgenome.org/CGEX_CtxAll010",
"shape": "http://dataexchange.clinicalgenome.org/interpretation/shacl/shapes/ContextualAllele",
"errors": [
{
"type": "TypeMismatch",
"triple": {
"type": "TestedTriple",
"subject": "http://dataexchange.clinicalgenome.org/CGEX_CtxAll010",
"predicate": "http://dataexchange.clinicalgenome.org/CG_0003",
"object": "http://dataexchange.clinicalgenome.org/CGEX_CtxAll008"
},
"constraint": {
"type": "TripleConstraint",
"predicate": "http://dataexchange.clinicalgenome.org/CG_0003",
"valueExpr": {
"type": "ShapeRef",
"reference": "http://dataexchange.clinicalgenome.org/interpretation/shacl/shapes/ContextualAlleleName"
},
"min": 0,
"max": 1
},
"errors": [
{
"type": "MissingProperty",
"property": "http://dataexchange.clinicalgenome.org/CG_0015",
"valueExpr": {
"type": "NodeConstraint",
"nodeKind": "iri"
}
},
{
"type": "MissingProperty",
"property": "http://dataexchange.clinicalgenome.org/CG_0007",
"valueExpr": {
"type": "NodeConstraint",
"datatype": "http://www.w3.org/2001/XMLSchema#boolean"
}
}
]
},
{
"type": "TypeMismatch",
"triple": {
"type": "TestedTriple",
"subject": "http://dataexchange.clinicalgenome.org/CGEX_CtxAll010",
"predicate": "http://dataexchange.clinicalgenome.org/CG_0100",
"object": "http://reg.genome.network/allele/CA501222"
},
"constraint": {
"type": "TripleConstraint",
"predicate": "http://dataexchange.clinicalgenome.org/CG_0100",
"valueExpr": {
"type": "ShapeRef",
"reference": "http://dataexchange.clinicalgenome.org/interpretation/shacl/shapes/CanonicalAllele"
},
"min": 0,
"max": 1
},
"errors": [
{
"type": "MissingProperty",
"property": "http://dataexchange.clinicalgenome.org/CG_0013",
"valueExpr": {
"type": "NodeConstraint",
"nodeKind": "iri"
}
},
{
"type": "MissingProperty",
"property": "http://dataexchange.clinicalgenome.org/CG_0014",
"valueExpr": {
"type": "NodeConstraint",
"nodeKind": "iri"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment