GithubHelp home page GithubHelp logo

buildinggraph-integration-hypar's Introduction

BuildingGraph-Integration-Hypar

Example intergrations with GraphQL queries and Hypar functions.

Currently there's only the one Hypar function which was created to explore the feasabiliy of GraphQL query driving functions in Hypar:

  • Levels From GraphQL And Perimeter - Creates levels in Hypar at the elevations defined from a GraphQL query and with manually drawn perimeter in Hypar.

The GraphQL endpoint used in this example is a Building Graph Server instance with some levels pre-populated by a Dynamo script.

There're two inputs required, a JSON file defining the API URI and any required headers, and the perimiter polygon which is drawn directly in hyapr.

Example connection data JSON:

{
  "URI": "{uri here}",
  "Headers": {
    "Authorization": "{Auth token here}"
  }
}

There's also a "ConnectionExample.json" with the URI and credetails used for the public API which can be used if you wanted to run it yourself. The live API is subject to change and rate limited so might not work consitently.

First working function does what it says it does:

Hypar Example

The GraphQL query actualy includes parameters for the building name and project name, which are currently just hard coded, as this is just a proof of concept example at this stage.

Here's how the GraphQL query that the function is running looks, and the data that's returned. GraphiGL Example

Here's how the data structure looks in Neo4j. Neo4j Example

buildinggraph-integration-hypar's People

Contributors

willhl avatar

Stargazers

 avatar Hans Palacios avatar Chloe Sun avatar Arif Hanif avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.