private SubjectMap readSubjectMap(BlankNodeOrIRI node)
throws InvalidR2RMLMappingException {
RDFTerm subject = readResource(node,
getRDF().createIRI(R2RMLVocabulary.PROP_SUBJECT));
if (subject != null) {
<BUG>return mfact.createSubjectMap(TermMap.TermMapType.CONSTANT_VALUED, subject);
} else {</BUG>
Collection<RDFTerm> subjectMapNode = graph.stream(node, getRDF().createIRI(R2RMLVocabulary.PROP_SUBJECT_MAP), null)
.map(Triple::getObject)
.collect(toSet());

private SubjectMap readSubjectMap(BlankNodeOrIRI node)
throws InvalidR2RMLMappingException {
RDFTerm subject = readResource(node,
getRDF().createIRI(R2RMLVocabulary.PROP_SUBJECT));
if (subject != null) {
return mfact.createSubjectMap(subject);
} else {
Collection<RDFTerm> subjectMapNode = graph.stream(node, getRDF().createIRI(R2RMLVocabulary.PROP_SUBJECT_MAP), null)
.map(Triple::getObject)
.collect(toSet());
