public interface Neo4jServer
| Modifier and Type | Method and Description |
|---|---|
List<CustomNode> |
getChildren(org.neo4j.graphdb.Node node,
int offset,
int limit)
Retrieve the children nodes of a parent node (parent-child relation
dcterms:hasPart).
|
List<CustomNode> |
getChildren(String rdfAbout,
int offset,
int limit)
Convenience override
|
long |
getChildrenCount(org.neo4j.graphdb.Node node)
Retrieve the number of children for a specific node
|
String |
getCustomPath()
The URI path for the REST cal to initial structure
|
List<CustomNode> |
getFollowingSiblings(org.neo4j.graphdb.Node node,
int limit)
Retrieve ordered list of siblings using a specific node as a start
following outbound edm:isNextInSequence or isFakeOrder relations
|
List<CustomNode> |
getFollowingSiblings(String rdfAbout,
int limit)
Retrieve ordered list of siblings using a specific node as a start
following outbound edm:isNextInSequence or isFakeOrder relations
|
Hierarchy |
getInitialStruct(String id)
Get the initial hierachy for a specific Europeana id
|
org.neo4j.graphdb.Node |
getNode(String rdfAbout)
get node by its rdfAbout
|
long |
getNodeIndex(org.neo4j.graphdb.Node node)
Get the order of the node within its hierarchy (local index)
|
long |
getNodeIndex(String nodeId)
Get the order of the node within its hierarchy (local index)
|
long |
getNodeIndexByRdfAbout(String rdfAbout)
Get the order of the node within its hierarchy (local index)
|
org.neo4j.graphdb.Node |
getParent(org.neo4j.graphdb.Node node)
Retrieve the parent node of a node (parent relation dcterms:isPartOf)
|
List<CustomNode> |
getPrecedingSiblings(org.neo4j.graphdb.Node node,
int limit)
Convenience override
Retrieve ordered list of siblings using a specific node as a start
following inbound edm:isNextInSequence or isFakeOrder relations
|
List<CustomNode> |
getPrecedingSiblings(String rdfAbout,
int limit)
Retrieve ordered list of siblings using a specific node as a start
following inbound edm:isNextInSequence or isFakeOrder relations
|
boolean |
isHierarchy(String id)
Check if the specified id belongs to a hierarchy
|
org.neo4j.graphdb.Node getNode(String rdfAbout) throws Neo4JException
rdfAbout - the rdfAbout (id) to search onNeo4JExceptionList<CustomNode> getChildren(org.neo4j.graphdb.Node node, int offset, int limit)
node - The node for which to retrieve the childrenoffset - from which child to start receiving fromlimit - how many children to receiveList<CustomNode> getChildren(String rdfAbout, int offset, int limit)
rdfAbout - The node with this rdf:about to start fromoffset - from which child to start receiving fromlimit - how many children to receiveorg.neo4j.graphdb.Node getParent(org.neo4j.graphdb.Node node)
node - The node for which to retrieve the parentList<CustomNode> getFollowingSiblings(org.neo4j.graphdb.Node node, int limit)
node - The node to start fromlimit - the number of nodes to retrieveList<CustomNode> getFollowingSiblings(String rdfAbout, int limit)
rdfAbout - The node with this rdf:about to start fromlimit - the number of siblings to retrieveList<CustomNode> getPrecedingSiblings(org.neo4j.graphdb.Node node, int limit)
node - The node to start fromlimit - the number of nodes to retrieveList<CustomNode> getPrecedingSiblings(String rdfAbout, int limit)
rdfAbout - The node with this rdf:about to start fromlimit - the number of nodes to retrievelong getChildrenCount(org.neo4j.graphdb.Node node)
node - The node to search onlong getNodeIndex(org.neo4j.graphdb.Node node)
node - A specific neo4j nodelong getNodeIndex(String nodeId)
nodeId - the numerical id of the nodelong getNodeIndexByRdfAbout(String rdfAbout) throws Neo4JException
rdfAbout - the rdf:about string of a specific neo4j nodeNeo4JExceptionHierarchy getInitialStruct(String id) throws Neo4JException
id - The id to search onNeo4JExceptionString getCustomPath()
boolean isHierarchy(String id) throws Neo4JException
id - The Europeana idNeo4JExceptionCopyright © 2017 Europeana Foundation. All rights reserved.