public class NodeUtilities extends NodeUtilities
| Constructor and Description |
|---|
NodeUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static Set<org.neo4j.graphdb.Node> |
getAggregatingNodes(org.neo4j.graphdb.Node node)
Returns nodes with the
ConceptManager.ConceptLabel.AGGREGATE label that have
the given node as an element, which is that the aggregates have a relationship of type
ConceptManager.EdgeTypes.HAS_ELEMENT to the passed node. |
static Set<org.neo4j.graphdb.Node> |
getElementNodes(org.neo4j.graphdb.Node aggregate)
Returns nodes that are an element of the node aggregate which means that the aggregate has a relationship of type
ConceptManager.EdgeTypes.HAS_ELEMENT to element nodes. |
static String |
getNodeIdentifier(org.neo4j.graphdb.Node n) |
static String |
getNodeRelationshipsString(org.neo4j.graphdb.Node n) |
static Set<org.neo4j.graphdb.Node> |
getParentNodes(org.neo4j.graphdb.Node node)
Returns nodes that have a
ConceptManager.EdgeTypes.IS_BROADER_THAN relationship to the passed node. |
static Set<String> |
getSourcesForSourceId(org.neo4j.graphdb.Node conceptNode,
String sourceId) |
static boolean |
isSourceUnique(org.neo4j.graphdb.Node conceptNode,
String srcId)
Iterates over source IDs and source ID unique markers.
|
static org.neo4j.graphdb.Node |
mergeConceptNodesWithUniqueSourceId(String srcId,
org.neo4j.graphdb.index.Index<org.neo4j.graphdb.Node> termIndex,
List<org.neo4j.graphdb.Node> obsoleteNodes) |
copyNode, findSingleNodeByLabelAndProperty, getNodePropertyAsStringArrayValue, getSingleNode, getSingleNode, getSingleOtherNode, getStringaddToArrayProperty, addToArrayProperty, addToArrayProperty, copyJSONObjectToPropertyContainer, copyJSONObjectToPropertyContainer, copyJSONObjectToPropertyContainer, findFirstValueInArrayProperty, getNodePropertiesAsString, getNonNullNodeProperty, hasContradictingPropertyValue, hasSamePropertyValue, mergeArrayProperty, mergeJSONObjectIntoPropertyContainer, mergeJSONObjectIntoPropertyContainer, mergeProperties, mergePropertyContainerIntoPropertyContainer, setNonNullNodeProperty, setNonNullNodePropertypublic static String getNodeRelationshipsString(org.neo4j.graphdb.Node n)
public static String getNodeIdentifier(org.neo4j.graphdb.Node n)
public static Set<String> getSourcesForSourceId(org.neo4j.graphdb.Node conceptNode, String sourceId)
public static boolean isSourceUnique(org.neo4j.graphdb.Node conceptNode,
String srcId)
conceptNode - The concept node on which srcId is unique or not.srcId - The source ID for which to determine whether it is unique for
this concept.public static org.neo4j.graphdb.Node mergeConceptNodesWithUniqueSourceId(String srcId, org.neo4j.graphdb.index.Index<org.neo4j.graphdb.Node> termIndex, List<org.neo4j.graphdb.Node> obsoleteNodes)
public static Set<org.neo4j.graphdb.Node> getAggregatingNodes(org.neo4j.graphdb.Node node)
ConceptManager.ConceptLabel.AGGREGATE label that have
the given node as an element, which is that the aggregates have a relationship of type
ConceptManager.EdgeTypes.HAS_ELEMENT to the passed node.node - The node whose governing aggregates should be returned.getElementNodes(Node)public static Set<org.neo4j.graphdb.Node> getParentNodes(org.neo4j.graphdb.Node node)
ConceptManager.EdgeTypes.IS_BROADER_THAN relationship to the passed node.node - A node for which the taxonomic parents are requested.public static Set<org.neo4j.graphdb.Node> getElementNodes(org.neo4j.graphdb.Node aggregate)
ConceptManager.EdgeTypes.HAS_ELEMENT to element nodes.aggregate - The node with the ConceptManager.ConceptLabel.AGGREGATE label whose element nodes are requested.getAggregatingNodes(Node)Copyright © 2018 JULIE Lab Jena, Germany. All rights reserved.