Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Testing whether fcr:metadata parent is a binary
  • Loading branch information
escowles committed Nov 3, 2015
1 parent ecbb943 commit 1207b18
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -16,9 +16,11 @@
package org.fcrepo.kernel.modeshape.utils.iterators;

import static com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel;
import static com.hp.hpl.jena.rdf.model.ResourceFactory.createResource;
import static com.hp.hpl.jena.vocabulary.RDF.type;
import static java.lang.String.join;
import static org.fcrepo.kernel.modeshape.rdf.ManagedRdf.isManagedMixin;
import static org.fcrepo.kernel.modeshape.utils.FedoraTypesUtils.isFedoraBinary;
import static org.fcrepo.kernel.api.FedoraJcrTypes.FCR_METADATA;
import static org.slf4j.LoggerFactory.getLogger;

Expand Down Expand Up @@ -97,7 +99,8 @@ public PersistingRdfStreamConsumer(final IdentifierConverter<Resource, FedoraRes
|| topic.equals(subject)) {
LOGGER.debug("Discovered a Fedora-relevant subject in triple: {}.", t);
return true;
} else if (topic.getURI().equals(subject.getURI() + "/" + FCR_METADATA)) {
} else if (topic.getURI().equals(subject.getURI() + "/" + FCR_METADATA)
&& isFedoraBinary.test(translator().convert(createResource(subject.getURI())).getNode())) {
LOGGER.debug("Discovered a NonRDFSource subject in triple: {}.", t);
return true;
}
Expand Down

0 comments on commit 1207b18

Please sign in to comment.