inverse predicate method now working

This commit is contained in:
tworrall 2013-11-06 16:51:09 -05:00
parent 14e83ecc6c
commit 390c05ab3f
2 changed files with 2 additions and 5 deletions

View file

@ -271,9 +271,7 @@ public class AddGrantRoleToPersonGenerator implements EditConfigurationGenerator
urisInScope.put("roleType",
Arrays.asList(new String[]{getRoleType(vreq)}));
//Setting inverse role predicate
// 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("inverseRolePredicate", getInversePredicate(vreq));
editConfiguration.setUrisInScope(urisInScope);
//Uris in scope include subject, predicate, and object var
//literals in scope empty initially, usually populated by code in prepare for update

View file

@ -270,8 +270,7 @@ public abstract class AddRoleToPersonTwoStageGenerator extends BaseEditConfigura
HashMap<String, List<String>> urisInScope = new HashMap<String, List<String>>();
//Setting inverse role predicate
//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("inverseRolePredicate", getInversePredicate(vreq));
urisInScope.put("roleType", list( getRoleType() ) );
//Uris in scope include subject, predicate, and object var