Read GEXF
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- data
Research direction
Start with issue #8, which the issue says should land first, and use its XML reader, registration and documentation as the design reference. Then inspect FormatId and parseGraph in packages/formats/src/index.ts, detection in packages/formats/src/detect.ts, and the listed CLI and playground entry points. Done means static GEXF 1.2 and 1.3 files are detected and parsed, NetworkX GEXF hashes match equivalent node-link JSON, drawing and dynamic data produce warnings, and both language docs plus a changeset are included.
Written by the indexing model from the issue text.
Description
Why
GEXF is Gephi's native format, and NetworkX writes it too
(nx.write_gexf). Like GraphML, kgdiff recognises it today and stops with "export it as JSON
first"
(detect.ts#L167).
What
A gexf format in @kgdiff/formats (GEXF 1.2 and 1.3):
<node id label>→ node id and label;<edge source target>→ edge, withidandlabel.<attvalue for value>values, typed by the<attributes class="node|edge">declarations
and their defaults → fields, mapped like the JSON graph shapes (label, type and predicate
from the same field names).viz:elements (position, colour, size, shape) are drawing state: drop them with a warning.- Dynamic graphs (
mode="dynamic",start/end/ spells): out of scope for now. Read the
static structure and warn.
Where to start
This is much easier once GraphML (#8) has landed: it adds the XML-based graph reader,
the format registration and the docs this issue can copy. If you want to pick this up before,
comment on #8 so the two share one design.
The files to touch are the same as in #8: FormatId and parseGraph in
packages/formats/src/index.ts, FORMAT_EXTENSIONS and sniffing in detect.ts, the CLI's
--format values, the playground, docs/formats.md and docs/architecture.md (en + zh).
Done when
kgdiff a.gexf b.gexfworks, with detection from the extension and the content.- A graph written by NetworkX as GEXF and as node-link JSON gives the same
hashGraph. - Docs updated in both languages, and a changeset.
- Dominant language
- TypeScript
- Stars
- 47
- Forks
- 6
- Avg merge
- 2h 32m
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from iiwish/kgdiff
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
accessibility help wanted viewer
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
iiwish/kgdiff#16 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 1/100
iiwish/kgdiff#21 · 1 comment ·
Maintainers usually reply within 1 day
-
cli enhancement good first issue
Difficulty 4/5 3-5 days Newbie friendliness 57/100
Maintainers usually reply within 1 day
-
documentation help wanted
Difficulty 3/5 1-2 days Newbie friendliness 76/100
Maintainers usually reply within 1 day
Similar issues
-
maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
assistant-ui/assistant-ui#10499 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug server-sequentialthinking v2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
modelcontextprotocol/servers#5526 · 1 comment ·
Maintainers usually reply within 1 day
-
app-server bug CLI
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
cimd: default originBoundFields rejects a cross-origin client_uri, which the CIMD draft forbidsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
better-auth/better-auth#12458 · 1 reaction ·
Maintainers usually reply within 1 day