forked from ResearchObject/ro-crate-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ResearchObject#204 from simleo/dont_auto_add_hash
Do not auto-preprend a hash to contextual entity ids
- Loading branch information
Showing
7 changed files
with
20 additions
and
63 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,32 +155,6 @@ def test_contextual_entities(): | |
assert person_dereference is new_person | ||
|
||
|
||
def test_contextual_entities_hash(test_data_dir): | ||
crate = ROCrate() | ||
john = crate.add(Person(crate, "john", properties={"name": "John Doe"})) | ||
assert john.id == "#john" | ||
id_ = "https://orcid.org/0000-0002-1825-0097" | ||
josiah = crate.add(Person(crate, id_, properties={"name": "Josiah Carberry"})) | ||
assert josiah.id == id_ | ||
wf_path = test_data_dir / "ro-crate-galaxy-sortchangecase" / "sort-and-change-case.ga" | ||
wf_dest_path = wf_path.name | ||
wf = crate.add_workflow(wf_path, wf_dest_path, main=True, lang="galaxy") | ||
step_id = f"{wf_dest_path}#sort" | ||
step = crate.add(ContextEntity(crate, step_id, properties={ | ||
"@type": "HowToStep", | ||
})) | ||
wf["hasPart"] = [step] | ||
assert step.id == step_id | ||
email = "[email protected]" | ||
email_uri = f"mailto:{email}" | ||
contact_point = crate.add(ContextEntity(crate, email_uri, properties={ | ||
"@type": "ContactPoint", | ||
"email": email | ||
})) | ||
crate.root_dataset["contactPoint"] = contact_point | ||
assert contact_point.id == email_uri | ||
|
||
|
||
def test_properties(): | ||
crate = ROCrate() | ||
|
||
|
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