GithubHelp home page GithubHelp logo

pma-graph's Introduction

Philadelphia Museum of Art GraphQL API

https://pma.now.sh/

What is this?

This is the data released by the Philadelphia Art Museum for their hackathon with some additional features

Example Queries

All the objects in the same gallery as Object 209018

Every object tagged by Google Cloud Vision with "teapot"

Every gallery containing an object tagged by Google Cloud Vision with "camel"

Why?

The original dataset is just one big array. I wanted to be able to access the data in different ways and also augment with new data. Originally this project started out as just slicing the data in different ways to see what was there. You can see that effort still in /data where I rollup some fields across the entire data set. Later it seemed that a GraphQL API would be beneficial so I added that too.

Caveats

No database

There is no database. All operations are run in memory on plain JS objects. Be careful with your query complexity as it will directly correlate with CPU time.

Performance

Similar to above, but the dataset is currently filtered in some very naive ways. Please be careful with your query complexity

Missing fields

I have not implemented all fields or paths through the graph in the original dataset. Please file issues or open a PR if there is something you would like me to prioritize.

Contributing

Please submit issues and PRs!

Local Development

First run yarn to install all dependencies

yarn start - Start API locally

yarn start:watch - Start API locally with file watch enabled

yarn process - Script that generates the files in /data from /data/raw.json

yarn cloud-vision - Processes all images through google cloud vision api and save to /data/cloud-vision.json. Takes about 10 minutes. Images are served from S3.

yarn lint- lints the entire project

pma-graph's People

Contributors

southpolesteve avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

pma-graph's Issues

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.