VIVO-490 thank you very much and please tip your waitress

This commit is contained in:
tworrall 2013-11-05 13:33:15 -05:00
parent 392fd030f0
commit cd445e7a1b
2 changed files with 902 additions and 898 deletions

View file

@ -271,7 +271,8 @@ public class AddGrantRoleToPersonGenerator implements EditConfigurationGenerator
urisInScope.put("roleType", urisInScope.put("roleType",
Arrays.asList(new String[]{getRoleType(vreq)})); Arrays.asList(new String[]{getRoleType(vreq)}));
//Setting inverse role predicate //Setting inverse role predicate
urisInScope.put("inverseRolePredicate", getInversePredicate(vreq)); // with ISF changes this will always be the same
urisInScope.put("inverseRolePredicate", Arrays.asList(new String[]{"http://purl.obolibrary.org/obo/RO_0000052"}));
editConfiguration.setUrisInScope(urisInScope); editConfiguration.setUrisInScope(urisInScope);
//Uris in scope include subject, predicate, and object var //Uris in scope include subject, predicate, and object var

View file

@ -3,6 +3,8 @@
package edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators; package edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -268,7 +270,8 @@ public abstract class AddRoleToPersonTwoStageGenerator extends BaseEditConfigura
HashMap<String, List<String>> urisInScope = new HashMap<String, List<String>>(); HashMap<String, List<String>> urisInScope = new HashMap<String, List<String>>();
//Setting inverse role predicate //Setting inverse role predicate
urisInScope.put("inverseRolePredicate", getInversePredicate(vreq)); //With ISF changes this will always be the same
urisInScope.put("inverseRolePredicate", Arrays.asList(new String[]{"http://purl.obolibrary.org/obo/RO_0000052"}));
urisInScope.put("roleType", list( getRoleType() ) ); urisInScope.put("roleType", list( getRoleType() ) );
//Uris in scope include subject, predicate, and object var //Uris in scope include subject, predicate, and object var