Skip to content

[Subtask] Import structured datasets (CSV/JSON) as graphs with attributes #227

@oxy86

Description

@oxy86

Overview

Add support for importing structured datasets (CSV, JSON) into SocNetV as graphs, including nodes, edges, and their attributes.

This extends existing import capabilities and enables users to construct graphs directly from tabular or structured data sources.


Motivation

Users often have data in formats such as:

  • CSV files (spreadsheets, exports from databases)
  • JSON datasets (APIs, pipelines)

They need to:

  • map structured data to graph structures
  • import attributes at scale
  • avoid manual graph construction

Scope

Supported Inputs

  • CSV (primary)
  • JSON (secondary)

Node Import

  • define node identifier column
  • optional label column
  • additional columns → node attributes

Edge Import

  • define:
    • source column
    • target column
  • optional:
    • weight column
    • relation/type column
  • additional columns → edge attributes

Behavior


UI Suggestions


Implementation Notes


Edge Cases

  • missing or duplicate node IDs
  • inconsistent data types
  • large files
  • disconnected components

Dependencies


Relation to Feature

Part of:
#223 Graph data editing and structured data workflows

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions