dandi / dandi/dandi-schema

Incorrect Prefix Mapping in context.json

Open
#318 7 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
7
Forks
15
PR merge metrics
No merged PRs in 30d

Description

I noticed that the current context file ([context.json](https://github.com/dandi/schema/blob/master/releases/0.6.9/context.json#L29C5-L29C28)) is generating an incorrect mapping for the Activity class. Specifically, it maps Activity to dandi:Activity, while it should instead reference the prov:Activity from the PROV ontology.

Image

Interestingly, the prov prefix is already defined in the context, but it is not being utilized.

**Expected Behavior:**

The context should reference:

```YAML
"Activity": "prov:Activity"
```

**Why This Matters:**
Using the incorrect prefix implies that Activity is a custom DANDI-defined term rather than a standard term from the PROV ontology. This breaks semantic alignment with existing ontologies/schemas and hinders interoperability, which is critical for downstream applications and FAIR compliance.

**Suggested Fix:** Use the correct prefix.

`Note:` Since I am familiar with `PROV` ontology so I observe the issue but there might be issues with other classes/properties. It is advisable that we do check all classes/properties to ensure that they're using the correct prefix.

@yarikoptic @candleindark @kabilar

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.