bnode.setStatement(valueFactory.createStatement( (BigdataResource) getDistinctTerm(stmt.getSubject(), true), (BigdataURI) getDistinctTerm(stmt.getPredicate(), true),
/** * Returns the bnode representation of this IV, useful for serialization * formats such as RDF/XML. See {@link #bnodeId()}. */ @SuppressWarnings("unchecked") @Override public V asValue(final LexiconRelation lex) { if (bnode == null) { bnode = (V) lex.getValueFactory().createBNode(getID()); bnode.setIV(this); bnode.setStatementIdentifier(true); final BigdataResource c = spo.c() != null ? (BigdataResource) spo.c().asValue(lex) : null; bnode.setStatement(lex.getValueFactory().createStatement( (BigdataResource) spo.s().asValue(lex), (BigdataURI) spo.p().asValue(lex), (BigdataValue) spo.o().asValue(lex), c)); } return bnode; }
/** * Returns the bnode representation of this IV, useful for serialization * formats such as RDF/XML. See {@link #bnodeId()}. */ @SuppressWarnings("unchecked") @Override public V asValue(final LexiconRelation lex) { if (bnode == null) { bnode = (V) lex.getValueFactory().createBNode(getID()); bnode.setIV(this); bnode.setStatementIdentifier(true); final BigdataResource c = spo.c() != null ? (BigdataResource) spo.c().asValue(lex) : null; bnode.setStatement(lex.getValueFactory().createStatement( (BigdataResource) spo.s().asValue(lex), (BigdataURI) spo.p().asValue(lex), (BigdataValue) spo.o().asValue(lex), c)); } return bnode; }
bnode.setStatement(valueFactory.createStatement( (BigdataResource) getDistinctTerm(stmt.getSubject(), true), (BigdataURI) getDistinctTerm(stmt.getPredicate(), true),