Changeset 10:90911b2da322 in AnnotationManagerN4J for src/main/java/de/mpiwg/itgroup/annotations/neo4j/AnnotationStore.java
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/de/mpiwg/itgroup/annotations/neo4j/AnnotationStore.java
r9 r10 21 21 import de.mpiwg.itgroup.annotations.Annotation; 22 22 import de.mpiwg.itgroup.annotations.Annotation.FragmentTypes; 23 import de.mpiwg.itgroup.annotations.Person; 23 24 24 25 /** … … 103 104 String uri = (String) creatorNode.getProperty("uri", null); 104 105 String name = (String) creatorNode.getProperty("name", null); 105 Actor creator = new Actor(false,uri, name);106 Actor creator = new Person(uri, name); 106 107 annot.setCreator(creator); 107 108 // just the first one … … 164 165 165 166 /* 166 * The name of the creator of this annotation. 167 */ 168 String creatorName = annot.getCreatorName(); 169 170 /* 171 * The URI of the creator of this annotation. 172 */ 173 String creatorUri = annot.getCreatorUri(); 174 if (creatorUri != null) { 175 Node creator = getOrCreatePersonNode(creatorUri, creatorName); 176 getOrCreateRelation(creator, RelationTypes.CREATED, annotNode); 167 * The creator of this annotation. 168 */ 169 Actor creator = annot.getCreator(); 170 if (creator != null) { 171 Node creatorNode = getOrCreatePersonNode(creator); 172 getOrCreateRelation(creatorNode, RelationTypes.CREATED, annotNode); 177 173 } 178 174 … … 342 338 } 343 339 344 protected Node getOrCreatePersonNode(String uri, String name) { 340 protected Node getOrCreatePersonNode(Actor actor) { 341 /* 345 342 // Person is identified by URI 346 343 Index<Node> idx = getNodeIndex(NodeTypes.PERSON); … … 364 361 } 365 362 return person; 363 */ 364 return null; 366 365 } 367 366
Note: See TracChangeset
for help on using the changeset viewer.