Giter VIP home page Giter VIP logo

graph-examples's Introduction

graph-examples

This repo contains a collection of graph examples. The intent is to provide more complete and extensive examples than what is reasonable to include in DataStax documentation or blogposts. This will include DataStax Graph Loader mapping scripts, schemas, example traversals, things to try in DataStax Studio, and application code examples. Feel free to use and modify any of these for your own purposes. There is no warranty or implied official support, but hopefully the examples will be useful as a starting point to show various ways of loading and experimenting with graph data. And if you see anything that could be improved or added, issue reports and pull requests are always welcome!

Download DSE (includes DSE Graph), DataStax Studio, and the DSE Graph Loader at https://academy.datastax.com/downloads.

Graph Resources:

Documentation

Video tutorials

Blog posts

Presentations

Help!

Graph language drivers

Additional datasets

For additional interesting datasets, you might consider the following resources:

  • Stanford Large Network Dataset Collection - a collection of connected data in various categories such as social data, web graphs, product co-purchasing networks, review data, etc.
  • Awesome Public Datasets - a github repository with links to collections, large and small, of interesting public data. These are further categorized by industry and data type such as energy, government, machine learning, time series, sports data, transportation, etc.
  • CRAWDAD - the Community Resource for Archiving Wireless Data At Dartmouth. This includes wireless network trace data from a variety of sources.

graph-examples's People

Contributors

aholmberg avatar artem-aliev avatar bechbd avatar dkuppitz avatar doanduyhai avatar jeromatron avatar marcinthecloud avatar phact avatar polandll avatar rocco408 avatar ronpcohen avatar spmallette avatar xytxytxyt 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  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

graph-examples's Issues

Add an example of effectively using async graph statements.

Usage of async statements isn't new to the graph api, but it can help to have some examples of using that both for more bite size writes and parallel reads. We'd want to have some number in flight at a time, blocking periodically with Uninterruptibles.getUninterruptibly(<future>) to make sure everything succeeds.

northwind graph example with java not working

Hi Team,

I tried to run northwind graph example with DSE 6.0. Its not working.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" com.datastax.driver.core.exceptions.InvalidQueryException: No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource.addV() is applicable for argument types: (org.apache.tinkerpop.gremlin.structure.T$1, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) values: [label, networkMember, name, Catherine Dewey, age, 38]
Possible solutions: addV(), any(), wait(), tx(), dump(), find()
at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:41)
at com.datastax.driver.dse.DriverThrowables.propagateCause(DriverThrowables.java:29)
at com.datastax.driver.dse.DefaultDseSession.executeGraph(DefaultDseSession.java:77)
at com.datastax.examples.northwind.Northwind.basicAdd(Northwind.java:34)
at com.datastax.examples.northwind.Northwind.main(Northwind.java:21)
Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource.addV() is applicable for argument types: (org.apache.tinkerpop.gremlin.structure.T$1, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) values: [label, networkMember, name, Catherine Dewey, age, 38]
Possible solutions: addV(), any(), wait(), tx(), dump(), find()
at com.datastax.driver.core.Responses$Error.asException(Responses.java:142)
at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:170)
at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:177)
at com.datastax.driver.core.RequestHandler.access$2500(RequestHandler.java:41)
at com.datastax.driver.core.RequestHandler$SpeculativeExecution.setFinalResult(RequestHandler.java:808)
at com.datastax.driver.core.RequestHandler$SpeculativeExecution.onSet(RequestHandler.java:642)
at com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:1076)
at com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:993)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:287)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:312)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:286)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
at java.lang.Thread.run(Thread.java:748)

Create an example of using parameterized traversals and templated scripts

The best way to use the String api is to use parameterized. We should have some examples of this in the repo. We should also add an example of a templated script to add data, similar to what the loader does. For extra credit we could show how to integrate that with kafka for streaming updates.

dse-graph-frame

Hi,

When I try to execute the sbt packge build, am getting the following error
[error] Unable to find credentials for [Artifactory Realm @ repo.datastax.com].

Looks like its not able to connect to the datastax artifactory repos to download the dependencies.

Am currently on sbt 0.13.11

Thanks!

Schema loading error

I'm trying to load the northwind graph into my local DSE instance using dse-studio.
This statement is not recognized by the groovy engine :

:remote config alias g northwind.g

Any clue ?

dse gremlin-console -i schema.groovy giving Error

I am using DSE5.1.0 when i use
dse gremlin-console -i schema.groovy
Error in ll.groovy at [2: system.graph("groovytest").ifNotExists().create()] - No such property: system for class: groovysh_evaluate

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.