Skip to content

Instantly share code, notes, and snippets.

View rich-biker's full-sized avatar

rich-biker

View GitHub Profile
@rich-biker
rich-biker / Load_CSV_To_NEO4J.cql
Created January 22, 2018 18:44
Cypher query to load data from the three Archi tool CSV extracts to create properly labeled nodes and relationships into a blank NEO4J database. Needs APOC plugin.
// Load the Archi CSV export elements as labeled nodes
using periodic commit
load csv with headers from "file:/elements.csv" as e
call apoc.create.node([e.Type], {name: e.Name, doc: e.Documentation, uid: e.ID})
yield node
return count(*);
// Create the uid indexes for my main objects
create index on :ApplicationComponent(uid);
create index on :ApplicationFunction(uid);
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Script Name: Quality Check - UX Relations
Script Description:
A jArchi script for use on Archi tool models.
Using a specific view called ConceptDefinition to represent a cut down version of the full ArchiMate model,
check all the model relationships to flag up any unexpected ones.
@rich-biker
rich-biker / documentation.ajs
Last active September 20, 2024 04:14
Generate Markdown documentation from a driving view in Archi using jArchi scripting.
/*
Sourced: https://gist.github.com/rich-biker/9a3c86c5a576ce0d8639856f3ee81651
Script: Documentation Generation
Purpose: To generate output based on a driving view
Author: Richard Heward - Tame Blue Lion Ltd
This generates a markdown file with the embedded images and text based upon a driving view in Archi of groups that trigger each other and embedded views.
See my blog for a more detailed explaination. https://www.tamebluelion.co.uk/blog/archi-documentation
/*
Script: Reverse Access
A jArchi script for use on an Archi repository
Purpose: Reverse all selected access relationships Access Type direction (e.g. read -> write / write -> read)
Useful as the default access type for an access relationship is 'write'. This allows several to be reversed.
Author: Richard Heward - Tame Blue Lion
Date: 28-Feb-2019