{
- "id": "http://datashapes.org/dash#ScriptConstraint",
- "prefLabel": "Script constraint",
-
"subClassOf": [],- "obsolete": false,
-
"definition": [- "The class of constraints that are based on Scripts. Depending on whether dash:onAllValues is set to true, these scripts can access the following pre-assigned variables:\n\n- focusNode: the focus node of the constraint (a NamedNode)\n- if dash:onAllValues is not true: value: the current value node (e.g. a JavaScript string for xsd:string literals, a number for numeric literals or true or false for xsd:boolean literals. All other literals become LiteralNodes, and non-literals become instances of NamedNode)\n- if dash:onAllValues is true: values: an array of current value nodes, as above.\n\nIf the expression returns an array then each array member will be mapped to one validation result, following the mapping rules below.\n\nFor string results, a validation result will use the string as sh:resultMessage.\nFor boolean results, a validation result will be produced if the result is false (true means no violation).\n\nFor object results, a validation result will be produced using the value of the field \"message\" of the object as result message. If the field \"value\" has a value then this will become the sh:value in the violation.\n\nUnless another sh:message has been directly returned, the sh:message of the dash:ScriptConstraint will be used, similar to sh:message at SPARQL Constraints. These sh:messages can access the values {$focusNode}, {$value} etc as template variables."
],- "synonym": [ ],
-
"parents": [-
{- "id": "http://datashapes.org/dash#Script",
- "prefLabel": "Script",
-
"subClassOf": [],- "obsolete": false,
-
"definition": [- "An executable unit implemented in one or more languages such as JavaScript."
],- "synonym": [ ],
- "cui": [ ],
- "semanticType": [ ],
- "notation": null,
-
"label": [],- "prefixIRI": "dash:Script",
- "xref": null,
- "created": null,
- "modified": null,
- "@id": "http://datashapes.org/dash#Script",
- "@type": "http://www.w3.org/2002/07/owl#Class",
-
"links": {- "self": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23Script",
- "ontology": "https://data.bioontology.org/ontologies/HASCO",
- "children": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23Script/children",
- "parents": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23Script/parents",
- "descendants": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23Script/descendants",
- "ancestors": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23Script/ancestors",
- "instances": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23Script/instances",
- "tree": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23Script/tree",
- "notes": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23Script/notes",
- "mappings": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23Script/mappings",
- "ui": "http://bioportal.bioontology.org/ontologies/HASCO?p=classes&conceptid=http%3A%2F%2Fdatashapes.org%2Fdash%23Script",
-
"@context": {- "self": "http://www.w3.org/2002/07/owl#Class",
- "ontology": "http://data.bioontology.org/metadata/Ontology",
- "children": "http://www.w3.org/2002/07/owl#Class",
- "parents": "http://www.w3.org/2002/07/owl#Class",
- "descendants": "http://www.w3.org/2002/07/owl#Class",
- "ancestors": "http://www.w3.org/2002/07/owl#Class",
- "instances": "http://data.bioontology.org/metadata/Instance",
- "tree": "http://www.w3.org/2002/07/owl#Class",
- "notes": "http://data.bioontology.org/metadata/Note",
- "mappings": "http://data.bioontology.org/metadata/Mapping",
- "ui": "http://www.w3.org/2002/07/owl#Class"
}
},-
"@context": {- "@vocab": "http://data.bioontology.org/metadata/",
- "label": "http://www.w3.org/2000/01/rdf-schema#label",
- "prefLabel": "http://www.w3.org/2004/02/skos/core#prefLabel",
- "synonym": "http://www.w3.org/2004/02/skos/core#altLabel",
- "definition": "http://www.w3.org/2004/02/skos/core#definition",
- "obsolete": "http://www.w3.org/2002/07/owl#deprecated",
- "notation": "http://www.w3.org/2004/02/skos/core#notation",
- "prefixIRI": "http://data.bioontology.org/metadata/prefixIRI",
- "subClassOf": "http://www.w3.org/2000/01/rdf-schema#subClassOf",
- "semanticType": "http://bioportal.bioontology.org/ontologies/umls/hasSTY",
- "cui": "http://bioportal.bioontology.org/ontologies/umls/cui",
- "xref": "http://www.geneontology.org/formats/oboInOwl#hasDbXref",
- "created": "http://purl.org/dc/terms/created",
- "modified": "http://purl.org/dc/terms/modified",
- "@language": "en"
}
}
],- "cui": [ ],
- "semanticType": [ ],
- "notation": null,
-
"label": [],- "prefixIRI": "dash:ScriptConstraint",
- "xref": null,
- "created": null,
- "modified": null,
-
"properties": {-
"https://data.bioontology.org/metadata/prefixIRI": [],-
"http://www.w3.org/2000/01/rdf-schema#label": [],-
"http://www.w3.org/2000/01/rdf-schema#comment": [- "The class of constraints that are based on Scripts. Depending on whether dash:onAllValues is set to true, these scripts can access the following pre-assigned variables:\n\n- focusNode: the focus node of the constraint (a NamedNode)\n- if dash:onAllValues is not true: value: the current value node (e.g. a JavaScript string for xsd:string literals, a number for numeric literals or true or false for xsd:boolean literals. All other literals become LiteralNodes, and non-literals become instances of NamedNode)\n- if dash:onAllValues is true: values: an array of current value nodes, as above.\n\nIf the expression returns an array then each array member will be mapped to one validation result, following the mapping rules below.\n\nFor string results, a validation result will use the string as sh:resultMessage.\nFor boolean results, a validation result will be produced if the result is false (true means no violation).\n\nFor object results, a validation result will be produced using the value of the field \"message\" of the object as result message. If the field \"value\" has a value then this will become the sh:value in the violation.\n\nUnless another sh:message has been directly returned, the sh:message of the dash:ScriptConstraint will be used, similar to sh:message at SPARQL Constraints. These sh:messages can access the values {$focusNode}, {$value} etc as template variables."
],-
"http://www.w3.org/2000/01/rdf-schema#subClassOf": [],-
"http://www.w3.org/2004/02/skos/core#definition": [- "The class of constraints that are based on Scripts. Depending on whether dash:onAllValues is set to true, these scripts can access the following pre-assigned variables:\n\n- focusNode: the focus node of the constraint (a NamedNode)\n- if dash:onAllValues is not true: value: the current value node (e.g. a JavaScript string for xsd:string literals, a number for numeric literals or true or false for xsd:boolean literals. All other literals become LiteralNodes, and non-literals become instances of NamedNode)\n- if dash:onAllValues is true: values: an array of current value nodes, as above.\n\nIf the expression returns an array then each array member will be mapped to one validation result, following the mapping rules below.\n\nFor string results, a validation result will use the string as sh:resultMessage.\nFor boolean results, a validation result will be produced if the result is false (true means no violation).\n\nFor object results, a validation result will be produced using the value of the field \"message\" of the object as result message. If the field \"value\" has a value then this will become the sh:value in the violation.\n\nUnless another sh:message has been directly returned, the sh:message of the dash:ScriptConstraint will be used, similar to sh:message at SPARQL Constraints. These sh:messages can access the values {$focusNode}, {$value} etc as template variables."
],-
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [],-
"https://data.bioontology.org/metadata/def/prefLabel": []
},- "@id": "http://datashapes.org/dash#ScriptConstraint",
- "@type": "http://www.w3.org/2002/07/owl#Class",
-
"links": {- "self": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23ScriptConstraint",
- "ontology": "https://data.bioontology.org/ontologies/HASCO",
- "children": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23ScriptConstraint/children",
- "parents": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23ScriptConstraint/parents",
- "descendants": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23ScriptConstraint/descendants",
- "ancestors": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23ScriptConstraint/ancestors",
- "instances": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23ScriptConstraint/instances",
- "tree": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23ScriptConstraint/tree",
- "notes": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23ScriptConstraint/notes",
- "mappings": "https://data.bioontology.org/ontologies/HASCO/classes/http%3A%2F%2Fdatashapes.org%2Fdash%23ScriptConstraint/mappings",
- "ui": "http://bioportal.bioontology.org/ontologies/HASCO?p=classes&conceptid=http%3A%2F%2Fdatashapes.org%2Fdash%23ScriptConstraint",
-
"@context": {- "self": "http://www.w3.org/2002/07/owl#Class",
- "ontology": "http://data.bioontology.org/metadata/Ontology",
- "children": "http://www.w3.org/2002/07/owl#Class",
- "parents": "http://www.w3.org/2002/07/owl#Class",
- "descendants": "http://www.w3.org/2002/07/owl#Class",
- "ancestors": "http://www.w3.org/2002/07/owl#Class",
- "instances": "http://data.bioontology.org/metadata/Instance",
- "tree": "http://www.w3.org/2002/07/owl#Class",
- "notes": "http://data.bioontology.org/metadata/Note",
- "mappings": "http://data.bioontology.org/metadata/Mapping",
- "ui": "http://www.w3.org/2002/07/owl#Class"
}
},-
"@context": {- "@vocab": "http://data.bioontology.org/metadata/",
- "label": "http://www.w3.org/2000/01/rdf-schema#label",
- "prefLabel": "http://www.w3.org/2004/02/skos/core#prefLabel",
- "synonym": "http://www.w3.org/2004/02/skos/core#altLabel",
- "definition": "http://www.w3.org/2004/02/skos/core#definition",
- "obsolete": "http://www.w3.org/2002/07/owl#deprecated",
- "notation": "http://www.w3.org/2004/02/skos/core#notation",
- "prefixIRI": "http://data.bioontology.org/metadata/prefixIRI",
- "parents": "http://www.w3.org/2000/01/rdf-schema#parents",
- "subClassOf": "http://www.w3.org/2000/01/rdf-schema#subClassOf",
- "semanticType": "http://bioportal.bioontology.org/ontologies/umls/hasSTY",
- "cui": "http://bioportal.bioontology.org/ontologies/umls/cui",
- "xref": "http://www.geneontology.org/formats/oboInOwl#hasDbXref",
- "created": "http://purl.org/dc/terms/created",
- "modified": "http://purl.org/dc/terms/modified",
- "@language": "en"
}
}