public void removeProperty ( final FedoraResource resource , final org . apache . jena . rdf . model . Property predicate , final RDFNode objectNode , final Map < String , String > nsPrefixMap ) throws RepositoryException { final Node node = getJcrNode ( resource ) ; final String propertyName = getPropertyNameFromPredicate ( node , predicate , nsPrefixMap ) ; if ( isManagedPredicate . test ( predicate ) || jcrProperties . contains ( predicate ) ) { throw new ServerManagedPropertyException ( "Could not remove triple containing predicate " + predicate . toString ( ) + " to node " + node . getPath ( ) ) ; } if ( objectNode . isURIResource ( ) && idTranslator . inDomain ( objectNode . asResource ( ) ) && ! isReferenceProperty ( node , propertyName ) ) { nodePropertiesTools . removeReferencePlaceholders ( idTranslator , node , propertyName , objectNode . asResource ( ) ) ; } else { final Value v = createValue ( node , objectNode , propertyName ) ; nodePropertiesTools . removeNodeProperty ( node , propertyName , v ) ; } }
Remove a property from a node