Index lookup:
start abk=node:speakers(name="Andreas Kollegger")
return abk;
return properties & id:
start abk=node:speakers(name="Andreas Kollegger")
return abk.name, id(abk);
Index lookup:
start abk=node:speakers(name="Andreas Kollegger")
return abk;
return properties & id:
start abk=node:speakers(name="Andreas Kollegger")
return abk.name, id(abk);
| ExecutionEngine engine = new ExecutionEngine(graphDB); | |
| String query = "start n=node:Person(name={name}) | |
| match n-[:ACTS_IN]->movie<-[:ACTS_IN]-friend | |
| return friend"; | |
| ExecutionResult result = engine.query(query, map("name", "Keanu"); | |
| for (Map<String,Object> row : result) { | |
| Node friend = row.get("friend"); | |
| } |
| [18. März 2013 08:11:46] CSS - http://localhost:3000/assets/new/css/main.css | |
| Linked-in stylesheet | |
| Declaration syntax error | |
| Line 293: | |
| *border: 0; | |
| ---------------^ | |
| [18. März 2013 08:11:46] CSS - http://localhost:3000/assets/new/css/main.css | |
| Linked-in stylesheet | |
| Declaration syntax error | |
| Line 300: |
| = The Neo4j GraphGist Console = | |
| This is a sample GraphGist explaining some of the base concepts of sharing graphs using http://docs.neo4j.org/chunked/milestone/cypher-query-lang.html[the Cypher query language]. | |
| [source,cypher] | |
| ---- | |
| CREATE ({name:'you'})-[:SEE]->({name:'This GraphGist'})-[:FORK_ON_GITHUB]->(your_gistfile{name:'Your Gist'}) | |
| CREATE (your_gistfile)-[:INSERT_ID_HERE]->({name:'Your GraphGist'}) | |
| ---- |
| // Transactional Http Endpoint DEMO | |
| // execute single statement | |
| POST /db/data/transaction/commit {"statements":[{"statement":"MATCH (u:User) RETURN u"}]} | |
| // create transaction with first statement | |
| POST /db/data/transaction {"statements":[{"statement":"CREATE (u:User {login:{name}}) RETURN u","parameters":{"name":"Peter"}}]} | |
| // check data is visible within transaction | |
| POST /db/data/transaction/X {"statements":[{"statement":"MATCH (u:User) RETURN u"}]} |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import org.neo4j.graphdb.GraphDatabaseService; | |
| import org.neo4j.graphdb.Node; | |
| import org.neo4j.test.TestGraphDatabaseFactory; | |
| import static org.junit.Assert.assertArrayEquals; | |
| public class DoubleArrayUpdateTest { |
| # usage ruby import.rb > cineasts.cql | |
| require 'rubygems' | |
| require 'rest-client' | |
| require 'json' | |
| URL = "http://api.themoviedb.org/3" | |
| KEY = "an-themoviedb-api-key" | |
| def get(type,id) | |
| url = "#{URL}/#{type}/#{id}?api_key=#{KEY}&append_to_response=casts" |
| package org.neo4j.example.activity; | |
| import org.codehaus.jackson.map.ObjectMapper; | |
| import org.neo4j.graphdb.GraphDatabaseService; | |
| import javax.ws.rs.*; | |
| import javax.ws.rs.core.*; | |
| import java.io.IOException; | |
| import java.io.OutputStream; |