Skip to content

Instantly share code, notes, and snippets.

@Grab(group="org.neo4j", module="neo4j-kernel", version="2.2.4")
@Grab(group="org.neo4j", module="neo4j-lucene-index", version="2.2.4")
import org.neo4j.graphdb.factory.GraphDatabaseFactory
import org.neo4j.graphdb.DynamicLabel
import org.neo4j.graphdb.schema.Schema
import org.neo4j.graphdb.Transaction
def db = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder("dummy.db")
.setConfig(keep_logical_logs: 'false')
@GrabResolver(name="neo4j", root="http://m2.neo4j.org/")
@GrabResolver(name="restlet", root="http://maven.restlet.org/")
@GrabConfig(systemClassLoader = true)
@Grab('org.neo4j:neo4j-jdbc:2.1.4')
import groovy.sql.*
def sql = Sql.newInstance('jdbc:neo4j://localhost:7474/')
def titles=["abc","def","ghi"]
titles.each {
sql.execute """

FOOD RECIPES RECOMMENDATION GRAPH

Inspiration123

@Grab(group = "org.neo4j", module = "neo4j-kernel", version = "1.9.9")
@Grab(group = "org.neo4j", module = "neo4j-lucene-index", version = "1.9.9")
import org.neo4j.graphdb.DynamicRelationshipType
import org.neo4j.graphdb.GraphDatabaseService
import org.neo4j.graphdb.factory.GraphDatabaseFactory
import org.neo4j.tooling.GlobalGraphOperations
def graphDbDir = "/tmp/dummy"

Interpreting Citation Patterns in Academic Publications: A research aid

Academic research largely consists in reading and writing texts. These texts can be modelled as a conversation. To be a reasercher, on this model, is to enter into a scientific conversation, to listen (read) and occassionaly to speak (write).

Authors write things

Texts embodying contributions to the scientific conversation are published as book chapters, articles in peer reviewed journals, conference papers &c. For the individual researcher, a major task involves identifying which of these published items are relevant to one’s research, to be able to study them and to respond.

Key concepts: relevance and order

= Car manufacturers 2013
This is a graph of all the major car manufacturers and their earnings in 2013, alongside all of their main suppliers.
It also shows the relationships between the various manufactures: cooperations, jointventuress and stock ownership. and the type of those
relationships.(For example a cooperation can be of the type: research/development)
//hide
@Grab(group='com.itextpdf', module='itextpdf', version='5.5.4')
@Grab(group='org.bouncycastle', module='bcpkix-jdk15on', version='1.49')
import com.itextpdf.text.Element
import com.itextpdf.text.Phrase
import com.itextpdf.text.Font
import com.itextpdf.text.Image
import com.itextpdf.text.pdf.ColumnText
import com.itextpdf.text.pdf.PdfContentByte
import com.itextpdf.text.pdf.PdfReader

US Flights & Airports: Delays, Cancellations, & Diversions


Table of Contents