Skip to content

Instantly share code, notes, and snippets.

@coolgarifTech
Created May 29, 2013 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coolgarifTech/5671044 to your computer and use it in GitHub Desktop.
Save coolgarifTech/5671044 to your computer and use it in GitHub Desktop.
Cmd line to run the script, URL to test it in browser and expected well-formed JSON response with Nodes and relationships from the HydraGraph
$ python hydraGraph.py
# Navigate to this URL
http://127.0.0.1:5000/_api/hydraGraph?callback=khjsdbkjn
# FINAL JSON END POINT RESPONSE!!
# (Note the callback wrapper at the front!)
khjsdbkjn({"rels": [{"endNode": "5", "startNode": "1"}, {"endNode": "4", "startNode": "1"}, {"endNode": "3", "startNode": "1"}, {"endNode": "2", "startNode": "1"}, {"endNode": "9", "startNode": "2"}, {"endNode": "8", "startNode": "2"}, {"endNode": "14", "startNode": "3"}, {"endNode": "10", "startNode": "3"}, {"endNode": "7", "startNode": "3"}, {"endNode": "6", "startNode": "3"}, {"endNode": "8", "startNode": "3"}, {"endNode": "11", "startNode": "4"}, {"endNode": "7", "startNode": "4"}, {"endNode": "9", "startNode": "4"}, {"endNode": "8", "startNode": "4"}, {"endNode": "13", "startNode": "4"}, {"endNode": "12", "startNode": "4"}, {"endNode": "11", "startNode": "5"}, {"endNode": "15", "startNode": "5"}, {"endNode": "14", "startNode": "5"}], "nodes": [{"description": "Digital Agency focused on Data", "name": "CoolgarifTech", "id": "1"}, {"description": "Focusing on how your organisation captures data", "name": "Data Storage", "id": "2"}, {"description": "Developing tools and workflows for efficiently processing data", "name": "Data Processing", "id": "3"}, {"description": "Telling stories with data", "name": "Data Visualisation", "id": "4"}, {"description": "Exposing data to internal and external audiences", "name": "Data Publication", "id": "5"}, {"description": "Statistical analysis of data sets within an organisation", "name": "Data Mining", "id": "6"}, {"description": "Delivering actionable insights from data", "name": "Data Analysis", "id": "7"}, {"description": "Using network and graph theory to expose greater detail within data", "name": "Graph Databases", "id": "8"}, {"description": "Aggregrating data from multiple sources into a single relational schema", "name": "Data Store", "id": "9"}, {"description": "Analysing and categorising unstructured text using natural language processing techniques", "name": "Natural Language Processing", "id": "10"}, {"description": "Bringing siloed data from different systems and processes together in a meaningful way", "name": "Linked Data", "id": "11"}, {"description": "Using Data Visualisation to explain more about a product and its story", "name": "Product Launch", "id": "12"}, {"description": "Enhance internal or external research with bespoke data visualisation", "name": "Research Visualisation", "id": "13"}, {"description": "Linking data to formal ontologies to enable publication via API or integration with external data sets", "name": "Semantic Data Markup", "id": "14"}, {"description": "Creating a public API to publish data externally in multiple formats", "name": "Public API Creation", "id": "15"}]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment