spdx / spdx/spdx-java-v3jsonld-store
Preserve prefixIds across serialization / deserialization
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Java
- Stars
- 2
- Forks
- 5
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
Description
The prefixId used in the model object is lost when serializing / deserializing.
Since some functions need a prefix ID, it would be nice if there was some way to preserve it.
A couple options come to mine:
- analyzing the object URI's to determine a prefix
- storing the prefix in the NamespaceMap - would need some convention on how to recognize the prefix
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the model object's prefixId is handled during serialization and deserialization, then inspect the NamespaceMap and object URI handling mentioned in the issue. Compare the prefixId before and after a round trip; done means a supported approach preserves it for functions that need the prefix ID.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100