spdx / spdx/spdx-java-v3jsonld-store

Preserve prefixIds across serialization / deserialization

Open
#5 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.