Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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