Mercurial > hg > AnnotationManagerN4J
changeset 38:6efcd16594ec
Merge with d339bd2a4f4a6bc69544a83232e7c00830788f6a
author | dwinter |
---|---|
date | Wed, 26 Sep 2012 14:49:37 +0200 |
parents | 34b9d044d0bf (current diff) 0fdb05f35139 (diff) |
children | 1cf5fca36633 |
files | |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/annotations/neo4j/AnnotationStore.java Wed Sep 26 14:48:41 2012 +0200 +++ b/src/main/java/de/mpiwg/itgroup/annotations/neo4j/AnnotationStore.java Wed Sep 26 14:49:37 2012 +0200 @@ -40,7 +40,7 @@ protected GraphDatabaseService graphDb; public static enum NodeTypes { - ANNOTATION, PERSON, TARGET, GROUP, TAG + ANNOTATION, PERSON, TARGET, GROUP, TAG, RESOURCE } // types of nodes that should not be automatically deleted. @@ -49,7 +49,7 @@ protected List<Index<Node>> nodeIndexes; public static enum RelationTypes implements RelationshipType { - ANNOTATES, CREATED, PERMITS_ADMIN, PERMITS_DELETE, PERMITS_UPDATE, PERMITS_READ, MEMBER_OF, HAS_TAG + ANNOTATES, CREATED, PERMITS_ADMIN, PERMITS_DELETE, PERMITS_UPDATE, PERMITS_READ, MEMBER_OF, HAS_TAG, PART_OF } public static String ANNOTATION_URI_BASE = "http://entities.mpiwg-berlin.mpg.de/annotations/"; @@ -64,6 +64,7 @@ nodeIndexes.add(NodeTypes.TARGET.ordinal(), graphDb.index().forNodes("targets")); nodeIndexes.add(NodeTypes.GROUP.ordinal(), graphDb.index().forNodes("groups")); nodeIndexes.add(NodeTypes.TAG.ordinal(), graphDb.index().forNodes("tags")); + nodeIndexes.add(NodeTypes.RESOURCE.ordinal(), graphDb.index().forNodes("resources")); } protected Index<Node> getNodeIndex(NodeTypes type) {