-
Notifications
You must be signed in to change notification settings - Fork 30
Criteria Class Validation #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
72a9d0e
Resolves #49: Evidence class internal property checks.
ottonomy 2f04dd4
Add test to ensure node-level validation runs even when the node ID l…
ottonomy 6dfd67e
Merge branch 'feature/evidence-class' into feature/criteria-class
ottonomy 14386d9
Add cross-property dependency check for Criteria. Support for Criteri…
ottonomy dd14b6d
Refactor VALIDATE_ID_PROPERTY and VALIDATE_PROPERTY together to get r…
ottonomy 30468ee
Complete refactor of validate_id_property and validate_property.
ottonomy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
from input import detect_input_type | ||
from graph import fetch_http_node, jsonld_compact_data | ||
from validation import (detect_and_validate_node_class, identity_object_property_dependencies, | ||
validate_expected_node_class, validate_id_property, validate_primitive_property, ) | ||
from task_types import (DETECT_AND_VALIDATE_NODE_CLASS, DETECT_INPUT_TYPE, | ||
FETCH_HTTP_NODE, JSONLD_COMPACT_DATA, IDENTITY_OBJECT_PROPERTY_DEPENDENCIES, | ||
VALIDATE_EXPECTED_NODE_CLASS, VALIDATE_ID_PROPERTY, VALIDATE_PRIMITIVE_PROPERTY, ) | ||
from validation import (criteria_property_dependencies, detect_and_validate_node_class, | ||
evidence_property_dependencies, identity_object_property_dependencies, | ||
validate_expected_node_class, validate_property, ) | ||
from task_types import (DETECT_AND_VALIDATE_NODE_CLASS, DETECT_INPUT_TYPE, CRITERIA_PROPERTY_DEPENDENCIES, | ||
EVIDENCE_PROPERTY_DEPENDENCIES, FETCH_HTTP_NODE, JSONLD_COMPACT_DATA, | ||
IDENTITY_OBJECT_PROPERTY_DEPENDENCIES, VALIDATE_EXPECTED_NODE_CLASS, | ||
VALIDATE_PROPERTY, ) | ||
|
||
|
||
functions = { | ||
FUNCTIONS = { | ||
DETECT_AND_VALIDATE_NODE_CLASS: detect_and_validate_node_class, | ||
DETECT_INPUT_TYPE: detect_input_type, | ||
CRITERIA_PROPERTY_DEPENDENCIES: criteria_property_dependencies, | ||
EVIDENCE_PROPERTY_DEPENDENCIES: evidence_property_dependencies, | ||
FETCH_HTTP_NODE: fetch_http_node, | ||
JSONLD_COMPACT_DATA: jsonld_compact_data, | ||
IDENTITY_OBJECT_PROPERTY_DEPENDENCIES: identity_object_property_dependencies, | ||
VALIDATE_EXPECTED_NODE_CLASS: validate_expected_node_class, | ||
VALIDATE_ID_PROPERTY: validate_id_property, | ||
VALIDATE_PRIMITIVE_PROPERTY: validate_primitive_property, | ||
VALIDATE_PROPERTY: validate_property, | ||
} | ||
|
||
|
||
def task_named(key): | ||
return functions[key] | ||
return FUNCTIONS[key] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may eventually be a merge conflict here, as in my recent PR #77 I switched this TODO to a test against
ValueTypes.DATA_URI_OR_URL
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, trouble -- I'll do a manual merge when approved.