sparqlGraphLibrary/src/main/java/com/ge/research/semtk/belmont/NodeGroup.java
public PropertyItem changeItemDomain(Node node, PropertyItem prop, String newURI) throws Exception {
		
        PropertyItem mergeIntoProp = node.getPropertyByURIRelation(newURI);
        if (mergeIntoProp == null) throw new Exception ("Can't find property to merge into: " + newURI);

        String oldItemStr = (new NodeGroupItemStr(node, prop)).getStr();
        String newItemStr = (new NodeGroupItemStr(node, mergeIntoProp)).getStr();
        
        mergeIntoProp.merge(prop);   // throws exception if prop is not empty
        node.rmPropItem(prop);
       
        this.updateUnionHashPropItems(oldItemStr, newItemStr);

        return mergeIntoProp;
		
	}
/**
	 * Change invalid property to a valid one, MERGING with what's already there.
	 * Note: in a normal inflateAndValidate the correct one will be empty
	 * @param batteryNode
	 * @param prop
	 * @param newURI
	 * @throws Exception
	 */
Change invalid property to a valid one, MERGING with what's already there.
Note: in a normal inflateAndValidate the correct one will be empty
@param batteryNode
@param prop
@param newURI
@throws Exception
Change invalid property to a valid one MERGING with what ' s already there . Note : in a normal inflateAndValidate the correct one will be empty @param batteryNode @param prop @param newURI @throws Exception
public PropertyItem changeItemDomain(Node node, PropertyItem prop, String newURI) throws Exception {
        PropertyItem mergeIntoProp = node.getPropertyByURIRelation(newURI);
        if (mergeIntoProp == null) throw new Exception ("Can't find property to merge into: " + newURI);
        String oldItemStr = (new NodeGroupItemStr(node, prop)).getStr();
        String newItemStr = (new NodeGroupItemStr(node, mergeIntoProp)).getStr();
        mergeIntoProp.merge(prop);   
        node.rmPropItem(prop);
        this.updateUnionHashPropItems(oldItemStr, newItemStr);
        return mergeIntoProp;
	}
public PropertyItem changeItemDomain ( Node node , PropertyItem prop , String newURI ) throws Exception { PropertyItem mergeIntoProp = node . getPropertyByURIRelation ( newURI ) ; if ( mergeIntoProp == null ) throw new Exception ( "Can't find property to merge into: " + newURI ) ; String oldItemStr = ( new NodeGroupItemStr ( node , prop ) ) . getStr ( ) ; String newItemStr = ( new NodeGroupItemStr ( node , mergeIntoProp ) ) . getStr ( ) ; mergeIntoProp . merge ( prop ) ; node . rmPropItem ( prop ) ; this . updateUnionHashPropItems ( oldItemStr , newItemStr ) ; return mergeIntoProp ; }
Change invalid property to a valid one, MERGING with what's already there.
Change invalid property to a valid one MERGING with what ' s already there .
// throws exception if prop is not empty