The shell provides a shortcut to access available services, the method $ with the service type as argument.
The following ste the inital bundle startlevel to 10:
zz>import org.osgi.service.startlevel.StartLevel
import org.osgi.service.startlevel.StartLevel
zz>$[StartLevel] setInitialBundleStartLevel 10
zz>
The following adds a triple to the content graph retrieved via ContentGraphProvider:
zz>import rdf.core._
import rdf.core._
zz>import rdf.core.impl._
import rdf.core.impl._
zz>import rdf.ontologies._
import rdf.ontologies._
zz>import platform.graphprovider.content.ContentGraphProvider
import platform.graphprovider.content.ContentGraphProvider
zz>val cg = $[ContentGraphProvider] getContentGraph
cg: org.apache.clerezza.rdf.core.access.LockableMGraph =
[org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#holds> <http://clerezza.apache.org/getting-started/index-title>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#pos> "0"., <http://clerezza.apache.org/getting-started/index-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit>., <http://clerezza.apache.org/getting-started/index-title> <http://discobits.org/ontology#infoBit> "Getting Started"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>., org.apache.clerezza.rdf.core.BNode@297c074e <http://www.w3....
zz>cg.add(new TripleImpl(new UriRef("http://clerezza.apache.org/getting-started/shell/"), RDF.`type`, HIERARCHY.Collection))
res20: Boolean = true
zz>