Code Monkey home page Code Monkey logo

cdm's People

Contributors

dtrapezoid avatar rustyrazorblade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cdm's Issues

create schema data structure

should be printable. easy to add elements of different types

schema.add(element)

elements should be fetchable by:

schema.find(Type)

or something similar

Context.feedback()

it should be trivial to provide feedback to the user of what's going on. Context.feedback() will be a standardized means of displaying feedback to the console or web.

trying to install real dataset fails horribly when index is out of date

Installing dataset movielens-small==master
Traceback (most recent call last):
File "/Users/jhaddad/.virtualenvs/cdm/bin/cdm", line 9, in
load_entry_point('Cassandra-Data-Manager==0.1', 'console_scripts', 'cdm')()
File "/Users/jhaddad/dev/cdm/cdm/cli.py", line 53, in main
install_search=arguments['--search'])
File "/Users/jhaddad/dev/cdm/cdm/util.py", line 71, in install
repo = download_dataset(dataset, y[dataset]['url'])
KeyError: 'movielens-small'

DDL parser

Code examples:

Create vertex & edge. LABEL is optional.

CREATE vertex movie
CREATE VERTEX LABEL person
CREATE VERTEX LABEL movie
CREATE edge rated

Creating vertex and edge properties. types should work with all CQL primitive types:

CREATE PROPERTY name text
CREATE PROPERTY person_id INTEGER

Indexes:

CREATE INDEX user_id_idx ON movie(user_id) MATERIALIZED
CREATE INDEX search on movie(title) FULLTEXT
CREATE INDEX movie_title_idx ON movie(title) SEARCH;

create edge index

Groovy code:

reviewer.buildEdgeIndex('ratedByStars', rated).direction(OUT).byPropertyKey('stars').add()

graph.schema().vertexLabel('reviewer').buildEdgeIndex('ratedByStars', rated).direction(OUT). byPropertyKey('stars').add()

CREATE [direction] INDEX [name] ON EDGE [label]([vertex_label.property])

CREATE OUT index ratedbyStars on edge rated(reviewer.stars)

webapp

build webapp to control cdm from the browser

option to run python code post schema install

if post_install.py is present, it'll attempt to run the main() inside, passing a Context object, which has db connection (set to correct keyspace). main() should load any data into the DB.

Edit readme with details on post_install.py before closing this issue

library for datasets to fall back

should expose a context that has everything someone would need available to generate a dataset

utilities to download temp files (and cache)
cassandra cluster and session

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.