We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d59f835 commit 51bd3d9Copy full SHA for 51bd3d9
1 file changed
pipeline/src/collection.py
@@ -160,9 +160,13 @@ def load(self, *paths):
160
with open(path, "r") as fp:
161
data = json.load(fp)
162
if "@graph" in data:
163
+ if data["@context"]["@vocab"].startswith("https://openminds.ebrains.eu/"):
164
+ version="v3"
165
+ else:
166
+ version="latest"
167
for item in data["@graph"]:
168
if "@type" in item:
- cls = lookup_type(item["@type"])
169
+ cls = lookup_type(item["@type"],version=version)
170
node = cls.from_jsonld(item)
171
else:
172
# allow links to metadata instances outside this collection
0 commit comments