1. Travis Wellman
  2. BaseParadigm

Wiki

Clone wiki

BaseParadigm / Getting Started Guide

Clone BaseParadigm with Mercurial.

hg clone https://bitbucket.org/travisfw/baseparadigm/ BaseParadigm
cd BaseParadigm
# use maven to build BaseParadigm
mvn install
# start up a groovy shell, enabling assertions for testing purposes
JAVA_OPTS=' -enableassertions:org.baseparadigm... ' groovysh

This is in my ~/.groovy/groovysh.rc file

import groovy.grape.Grape
Grape.grab([group:'spaciousness', module:'baseparadigm', version:'0.4.6'])
import org.baseparadigm.i.*
import org.baseparadigm.*
import org.baseparadigm.Edge.EdgeBuilder
import org.baseparadigm.EdgeIndex.EdgeIndexBuilder
import org.baseparadigm.EdgeSet.EdgeSetBuilder
import org.baseparadigm.CaSet.CaSetBuilder
import org.baseparadigm.CaMap.CaMapBuilder
cmns = CommonsCidScheme.instance()

Now you're ready to start using BaseParadigm. For instance, here's creating an edge:

Groovy Shell (2.0.5, JVM: 1.7.0_06-icedtea)
Type 'help' or '\h' for help.
--------------------------------------------------------------------------------------------------------------------------------------------------------
groovy:000> e = new EdgeBuilder(cmns).subject("your inbox").predicate("messaging").object("hi, you!").finishEdge()
===> org.baseparadigm.Edge[ OBJECTS: org.baseparadigm.CaSet[ hi, you! ]  PREDICATES: org.baseparadigm.CaSet[ messaging ]  SUBJECTS: org.baseparadigm.CaSet[ your inbox ] ]
groovy:000>

Please give feedback on these instructions.

Updated