Last active
January 28, 2019 19:19
-
-
Save benosteen/594fe8177fa34ff5e57ff53d6ed2bba5 to your computer and use it in GitHub Desktop.
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
def test_jsonld_concept_match_no_label(self): | |
dt = self.DT.get_instance("concept") | |
# from the thesaurus that should be loaded into Arches, | |
# the following concept value should have a key of 43d75450-7282-4754-af63-02e13032b73a | |
jf = { | |
"@id": "http://localhost:8000/concepts/86be632e-0dad-4d88-b5da-3d65875d6239", | |
"@type": [ | |
"http://www.cidoc-crm.org/cidoc-crm/E55_Type" | |
] | |
} | |
resp = dt.from_rdf(jf) | |
print(resp) | |
self.assertTrue(resp == "43d75450-7282-4754-af63-02e13032b73a") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment