public class Neo4jServerImpl extends Object implements Neo4jServer
Neo4jServer| Constructor and Description |
|---|
Neo4jServerImpl() |
Neo4jServerImpl(String serverPath,
String index,
String customPath)
Neo4j contructor
|
| Modifier and Type | Method and Description |
|---|---|
List<org.neo4j.graphdb.Node> |
getChildren(org.neo4j.graphdb.Node id,
int offset,
int limit)
Retrieve the children nodes of a parent node (parent-child relation
dcterms:hasPart).
|
long |
getChildrenCount(org.neo4j.graphdb.Node id)
Retrieve the number of children for a specific node
|
String |
getCustomPath()
The URI path for the REST cal to initial structure
|
List<org.neo4j.graphdb.Node> |
getFollowingSiblings(org.neo4j.graphdb.Node id,
int limit)
Retrieve ordered list of children using a specific node as a child
following outbound edm:isNextInSequence relations
|
Hierarchy |
getInitialStruct(String id)
Get the initial hierachy for a specific Europeana id
|
org.neo4j.graphdb.Node |
getNode(String id)
Get node by its id
|
long |
getNodeIndex(org.neo4j.graphdb.Node node)
Get the order of the node within its hierarchy (local index)
|
org.neo4j.graphdb.Node |
getParent(org.neo4j.graphdb.Node id)
Retrieve the parent node of a node (parent relation dcterms:isPartOf)
|
List<org.neo4j.graphdb.Node> |
getPreceedingSiblings(org.neo4j.graphdb.Node id,
int limit)
Retrieve ordered list of children using a specific node as a child
following inbound edm:isNextInSequence relations
|
boolean |
isHierarchy(String id)
Check if the specified id belongs to a hierarchy
|
public Neo4jServerImpl(String serverPath, String index, String customPath)
serverPath - The path of the Neo4j serverindex - The name of the index to search oncustomPath - The path of the custom Europeana Neo4j pluginspublic Neo4jServerImpl()
public org.neo4j.graphdb.Node getNode(String id)
Neo4jServergetNode in interface Neo4jServerid - The id to search forpublic boolean isHierarchy(String id)
Neo4jServerisHierarchy in interface Neo4jServerid - The Europeana idpublic List<org.neo4j.graphdb.Node> getChildren(org.neo4j.graphdb.Node id, int offset, int limit)
Neo4jServergetChildren in interface Neo4jServerid - The node for which to retrieve the childrenoffset - from which child to start receiving fromlimit - how many children to receivepublic org.neo4j.graphdb.Node getParent(org.neo4j.graphdb.Node id)
Neo4jServergetParent in interface Neo4jServerid - The node for which to retrieve the parentpublic List<org.neo4j.graphdb.Node> getFollowingSiblings(org.neo4j.graphdb.Node id, int limit)
Neo4jServergetFollowingSiblings in interface Neo4jServerid - The node to start fromlimit - the number of nodes to retrievepublic List<org.neo4j.graphdb.Node> getPreceedingSiblings(org.neo4j.graphdb.Node id, int limit)
Neo4jServergetPreceedingSiblings in interface Neo4jServerid - The node to start fromlimit - the number of nodes to retrievepublic long getChildrenCount(org.neo4j.graphdb.Node id)
Neo4jServergetChildrenCount in interface Neo4jServerid - The node to search onpublic long getNodeIndex(org.neo4j.graphdb.Node node)
Neo4jServergetNodeIndex in interface Neo4jServernode - A specific neo4j nodepublic Hierarchy getInitialStruct(String id)
Neo4jServergetInitialStruct in interface Neo4jServerid - The id to search onpublic String getCustomPath()
Neo4jServergetCustomPath in interface Neo4jServerCopyright © 2015 Europeana Foundation. All rights reserved.