private void addDCTriples ( Datastream ds , URIReference objURI , Set < Triple > set ) throws Exception { DCFields dc = new DCFields ( ds . getContentStream ( ) ) ; Map < RDFName , List < DCField > > map = dc . getMap ( ) ; for ( RDFName predicate : map . keySet ( ) ) { for ( DCField dcField : map . get ( predicate ) ) { String lang = dcField . getLang ( ) ; if ( lang == null ) { add ( objURI , predicate , dcField . getValue ( ) , set ) ; } else { add ( objURI , predicate , dcField . getValue ( ) , lang , set ) ; } } } }
Add a statement about the object for each predicate value pair expressed in the DC datastream .