本文整理匯總了Java中org.neo4j.rest.graphdb.RestGraphDatabase類的典型用法代碼示例。如果您正苦於以下問題:Java RestGraphDatabase類的具體用法?Java RestGraphDatabase怎麽用?Java RestGraphDatabase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RestGraphDatabase類屬於org.neo4j.rest.graphdb包,在下文中一共展示了RestGraphDatabase類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: Neo4jAccessUtils
import org.neo4j.rest.graphdb.RestGraphDatabase; //導入依賴的package包/類
public Neo4jAccessUtils (String dbURI) {
db = new RestGraphDatabase(dbURI);
engine = new RestCypherQueryEngine( db.getRestAPI() );
annLabel = createLabel("Annotation");
ontologyTermLabel = createLabel("OntologyTerm");
channelLabel = createLabel("Channel");
imageLabel = createLabel("Image");
userLabel = createLabel("User");
userGroupLabel = createLabel("UserGroup");
releaseLabel = createLabel("Release");
datasourceLabel = createLabel("DataSource");
speciesLabel = createLabel("Species");
ontologyLabel = createLabel("Ontology");
}
示例2: Neo4JRemoteServer
import org.neo4j.rest.graphdb.RestGraphDatabase; //導入依賴的package包/類
/**
* @see <a href="https://github.com/neo4j/java-rest-binding">Java binding for the Neo4j Server</a>
*/
public Neo4JRemoteServer() {
db = new RestGraphDatabase(DEFAULT_DB_URI);
// To make sure Neo4j is shut down properly you can add a shutdown hook:
registerShutdownHook(db);
}