Logo
NeoArc Studio

Importing Schemas

Import entities into the data model from a wide range of file formats including SQL DDL dialects, draw.io, GraphML, GEXF, Graphviz DOT, PlantUML, Mermaid ERD, Neo4j Cypher, ERDPlus, StarUML, RDF/OWL, JSON Graph Format, Microsoft Visio, and OpenAPI.

NeoArc Studio supports importing entities from a wide range of external file formats into the central data model. Two import paths are available: SQL DDL Import for database scripts, and File Import for diagram tools, graph databases, and schema definition files. All imported entities become first-class model nodes with typed properties, validation, and group organisation.

SQL DDL Import

The SQL DDL Import dialog accepts SQL scripts from several database dialects and DBML notation. Paste DDL text directly or upload a .sql file.

DialectSupported Statements
PostgreSQLCREATE TABLE, ALTER TABLE ADD CONSTRAINT (FK), CREATE INDEX
MySQLCREATE TABLE, ALTER TABLE ADD CONSTRAINT (FK), CREATE INDEX
SQL ServerCREATE TABLE, ALTER TABLE ADD CONSTRAINT (FK), CREATE INDEX
SnowflakeCREATE TABLE, ALTER TABLE ADD CONSTRAINT (FK), CREATE INDEX
OracleCREATE TABLE, ALTER TABLE ADD CONSTRAINT (FK), CREATE INDEX
DBMLTable blocks, Ref lines, indexes

What Gets Imported from SQL DDL

SQL DDL Import Example

The following PostgreSQL DDL creates two entities with a foreign key relationship.

CREATE TABLE customers (
  id UUID PRIMARY KEY,
  email VARCHAR(255) NOT NULL UNIQUE,
  name VARCHAR(100),
  created_at TIMESTAMP DEFAULT NOW()
);

CREATE TABLE orders (
  id UUID PRIMARY KEY,
  customer_id UUID NOT NULL,
  total DECIMAL(10, 2) NOT NULL,
  status VARCHAR(20) DEFAULT 'pending',
  order_date TIMESTAMP DEFAULT NOW()
);

ALTER TABLE orders
  ADD CONSTRAINT fk_orders_customer
  FOREIGN KEY (customer_id) REFERENCES customers(id);

CREATE INDEX idx_orders_customer_id ON orders(customer_id);
CREATE INDEX idx_orders_status ON orders(status);

This produces two model entities: customers with 4 properties and orders with 5 properties, connected by a foreign key relationship from orders.customer_id to customers.id.

File Import

The File Import dialog supports a broad set of external diagram and schema file formats. Formats that support text paste allow pasting content directly without uploading a file.

draw.io / diagrams.net

Imports entity shapes and connections from draw.io XML files. Supports compressed and uncompressed .drawio files. Entity shapes are extracted from the diagram cells, and connections between shapes become relationships.

DetailValue
File extensions.drawio, .xml
Text pasteNo (file upload only)
CompressionSupports deflate-compressed content via pako
ExtractionEntity labels from cell values, relationships from edge connections

GraphML

Imports nodes and edges from GraphML graph exchange files. GraphML is used by tools including yEd, Gephi, and NetworkX.

DetailValue
File extensions.graphml
Text pasteNo (file upload only)
ExtractionNode labels from data elements, edges with source/target mapping

GEXF (Gephi)

Imports graph data from GEXF (Graph Exchange XML Format) files, commonly exported from Gephi.

DetailValue
File extensions.gexf
Text pasteNo (file upload only)
ExtractionNode labels and attributes, edge relationships with weights

Graphviz DOT

Imports graph definitions from Graphviz DOT language files. Parses node definitions, edge statements, and subgraph groupings.

DetailValue
File extensions.dot, .gv
Text pasteYes
ExtractionNode labels from node statements, edges from arrow notation

PlantUML

Imports class and entity diagrams from PlantUML notation. Parses class definitions with fields and methods, and relationship arrows between classes.

DetailValue
File extensions.puml, .plantuml
Text pasteYes
ExtractionClass/entity names, properties from fields, relationships from arrows

Mermaid ERD

Imports entity-relationship diagrams from Mermaid ERD syntax. Parses entity blocks with typed attributes and relationship lines with cardinality.

erDiagram
    CUSTOMER {
        string id PK
        string name
        string email
    }
    ORDER {
        string id PK
        string customerId FK
        float total
        string status
    }
    CUSTOMER ||--o{ ORDER : places
DetailValue
File extensions.mmd, .mermaid
Text pasteYes
ExtractionEntity names, typed attributes with key roles, cardinality from relationship lines

Neo4j Cypher

Imports node and relationship definitions from Cypher CREATE statements. Parses node labels, properties, and relationship types.

DetailValue
File extensions.cypher, .cql
Text pasteYes
ExtractionNode labels from CREATE (n:Label), properties from property maps, relationships from CREATE patterns

ERDPlus

Imports entity-relationship diagrams from ERDPlus JSON export files. ERDPlus is a browser-based ER diagram tool used in database courses.

DetailValue
File extensions.json
Text pasteNo (file upload only)
ExtractionEntity names, attribute names and types, relationship names and cardinality

StarUML

Imports class diagrams from StarUML .mdj project files. StarUML projects are ZIP-compressed JSON files containing UML model elements.

DetailValue
File extensions.mdj
Text pasteNo (file upload only)
CompressionZIP extraction via JSZip
ExtractionClass names, attribute names and types, association relationships

RDF/OWL

Imports ontology definitions from RDF files. Supports both Turtle (.ttl) and RDF/XML (.rdf, .owl) serialisation formats. OWL classes become entities, and OWL object properties become relationships.

DetailValue
File extensions.ttl (Turtle), .rdf, .owl (RDF/XML)
Text pasteYes (Turtle only)
ParserN3.js library for Turtle, XML parsing for RDF/XML
ExtractionOWL classes to entities, datatype properties to typed fields, object properties to relationships, rdfs:subClassOf to inheritance edges

JSON Graph Format

Imports graph data from JSON Graph Format (JGF) files. JGF is a JSON-based graph exchange format with typed nodes and edges.

DetailValue
File extensions.json
Text pasteYes
ExtractionNode labels and metadata, edges with source/target and relationship labels

Microsoft Visio

Imports shapes and connections from Microsoft Visio diagram files. Extracts entity shapes, labels, and connector relationships from Visio's XML-based format.

DetailValue
File extensions.vsdx
Text pasteNo (file upload only)
ExtractionShape labels to entity names, connectors to relationships

OpenAPI Import

Import existing OpenAPI specifications to create REST API documentation. This import path creates API endpoints and schemas rather than data model entities.

Import Workflow

After Import

Once entities are in the model, they have access to all model capabilities.

Related