anchor.diff:  	?role   ?inverseRolePredicate ?person.
   </v:jsonset>
   
  -<v:jsonset var="n3ForNewGrant">
  +<v:jsonset var="n3ForGrantType">
       @prefix core: <${vivoCore}> .
  -    @prefix rdf: <${rdf}> .
  -    @prefix rdfs: <${rdfs}> .
  -    	
  -    ?grant rdf:type core:Grant .
  +    @prefix rdf: <${rdf}> .    	
  +    ?grant rdf:type core:Grant .              
  +</v:jsonset>
  +
  +<v:jsonset var="n3ForGrantLabel">
  +    @prefix rdfs: <${rdfs}> .    	
       ?grant rdfs:label ?grantLabel .               
   </v:jsonset>
   
  -
  +<v:jsonset var="grantLabelQuery">
  +  PREFIX core: <${vivoCore}>
  +  PREFIX rdfs: <${rdfs}> 
  +  SELECT ?existingGrantLabel WHERE {
  +        ?role  core:roleIn ?existingGrant .
  +        ?existingGrant rdfs:label ?existingGrantLabel . }
  +</v:jsonset>
  +
  +<v:jsonset var="startYearQuery">
  +  PREFIX core: <${vivoCore}>  
  +  SELECT ?existingStartYear WHERE { ?role  core:startYear ?existingStartYear .}       
  +</v:jsonset>
  +
  +<v:jsonset var="endYearQuery">
  +PREFIX core: <${vivoCore}>  
  +  SELECT ?existingStartYear WHERE { ?role  core:endYear ?existingStartYear .}
  +</v:jsonset>
  +
  +<v:jsonset var="grantQuery">
  +  PREFIX core: <${vivoCore}>  
  +  SELECT ?existingGrant WHERE { ?role  core:roleIn ?existingGrant . }
  +</v:jsonset>
   
   <v:jsonset var="grantTypeUriJson">${vivoOnt}#Grant</v:jsonset>
   <c:set var="editjson" scope="request">
  
positive.code:     
      "n3required"    : [ "${n3ForGrantRole}", "${startYearAssertion}" ],
      
      "n3optional"    : [ "${n3ForNewGrant}", "${n3ForInverse}", "${endYearAssertion}" ],        
                                                                                          
      "newResources"  : { "role" : "${defaultNamespace}",
                          "grant" : "${defaultNamespace}" },
  
negative.code: <c:set var="rdfs" value="<%= VitroVocabulary.RDFS %>" />
  <c:set var="rdf" value="<%= VitroVocabulary.RDF %>" />
  <c:set var="label" value="${rdfs}label" />
  
  <%-- grantLabel is required if we are doing an update --%> 
  <c:set var="labelRequired" ><%= request.getAttribute("objectUri")== null?"":"\"nonempty\","  %></c:set>
  
  <%  // set role type based on predicate
  String subjectName = ((Individual) request.getAttribute("subject")).getName();
  