-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve import and export functions (#818)
* Improve import and export functions. * 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`. * Warn when ignoring RDF statements where an individual that is being added is the subject. * Add SKOS to included ontologies. * 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. * Exceptions on import/export. * Raise exception when importing references to unknown individuals, terminological knowledge, or individuals of an unknown class. * Do not overwrite individuals when importing. * Fix docstrings.
- Loading branch information
Showing
11 changed files
with
610 additions
and
148 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
identifier: skos | ||
ontology_file: http://www.w3.org/TR/skos-reference/skos.rdf | ||
format: "application/rdf+xml" | ||
namespaces: | ||
skos: http://www.w3.org/2004/02/skos/core# |
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
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
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
Oops, something went wrong.