-
Notifications
You must be signed in to change notification settings - Fork 12
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
Improve import and export functions #818
Merged
Merged
Conversation
This file contains 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
* Properly documented options `all_triples` (all statements where an ontology individual is the subject) and `all_statements` (all RDF statements) to enable importing and exporting RDF statements that are not supported by SimPhoNy. * Add tests for `all_triples` and `all_statements`. Fix `test_api_importexport_data.json` (did not match the turtle and xml versions). * Rename `path_or_filelike` argument of `import_file` to `file`. * Treat IRIs with type `owl:NamedIndividual` as individuals of class `owl:Thing`.
kysrpex
added
🐛 bug
API details
ℹ️ best practices
⚡ breaking change
Solution introduces incompatible API changes, MAJOR version number update. See https://semver.org.
labels
Sep 14, 2022
for more information, see https://pre-commit.ci
…dded is the subject.
# Conflicts: # simphony_osp/session/session.py
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…ith the entities to be added. Remove the warning for references to individuals that are not being added simultaneously.
for more information, see https://pre-commit.ci
* Raise exception when importing references to unknown individuals, terminological knowledge, or individuals of an unknown class. * Raise exception when exporting references to unknown individuals, terminological knowledge, or individuals of an unknown class.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
API details
🐛 bug
ℹ️ best practices
⚡ breaking change
Solution introduces incompatible API changes, MAJOR version number update. See https://semver.org.
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.
Properly documented options
all_triples
(all statements where an ontology individual is the subject) andall_statements
(all RDF statements) to enable importing and exporting RDF statements that are not supported by SimPhoNy.Add tests for
all_triples
andall_statements
. Fixtest_api_importexport_data.json
(did not match the turtle and xml versions).Rename
path_or_filelike
argument ofimport_file
tofile
.Treat IRIs with type
owl:NamedIndividual
as individuals of classowl:Thing
.Warn when ignoring RDF statements where an individual that is being added is the subject.
Emit warnings on add when uninterpretable statements are included with the entities to be added. Remove the warning for references to individuals that are not being added simultaneously.
Raise exception when importing references to unknown individuals, terminological knowledge, or individuals of an unknown class.
Do not overwrite individuals when importing.