@Override public BigdataStatementImpl createStatement(Resource s, URI p, Value o, Resource c, StatementEnum type, final boolean userFlag) { return new BigdataStatementImpl(// (BigdataResource) asValue(s),// (BigdataURI) asValue(p),// (BigdataValue) asValue(o),// (BigdataResource) asValue(c),// optional type, // the statement type (optional). userFlag // the user flag (optional) ); }
@Override public boolean equals(final Object o) { return equals((Statement)o); }
@Override public String toString() { return "<" + s + ", " + p + ", " + o + (c == null ? "" : ", " + c) + ">" + (type == null ? "" : " : " + type) + (isModified() ? " : modified("+modified+")" : ""); }
if (!stmt.isExplicit()) continue;
/** * Note: this implementation is equivalent to {@link #toString()} since the * {@link Value}s are already resolved. */ @Override public String toString(final IRawTripleStore storeIsIgnored) { return toString(); }
if (!stmt.isExplicit()) continue;
/** * Note: this implementation is equivalent to {@link #toString()} since the * {@link Value}s are already resolved. */ @Override public String toString(final IRawTripleStore storeIsIgnored) { return toString(); }
@Override public BigdataStatementImpl createStatement(Resource s, URI p, Value o, Resource c, StatementEnum type, final boolean userFlag) { return new BigdataStatementImpl(// (BigdataResource) asValue(s),// (BigdataURI) asValue(p),// (BigdataValue) asValue(o),// (BigdataResource) asValue(c),// optional type, // the statement type (optional). userFlag // the user flag (optional) ); }
@Override public String toString() { return "<" + s + ", " + p + ", " + o + (c == null ? "" : ", " + c) + ">" + (type == null ? "" : " : " + type) + (isModified() ? " : modified("+modified+")" : ""); }
@Override public boolean equals(final Object o) { return equals((Statement)o); }
@Override public BigdataBNodeImpl createBNode(final BigdataStatement stmt) { // Subject, predicate, object and context should be processed to use the target value factory // See https://jira.blazegraph.com/browse/BLZG-1875 final BigdataResource originalS = stmt.getSubject(); final BigdataURI originalP = stmt.getPredicate(); final BigdataValue originalO = stmt.getObject(); final BigdataResource originalC = stmt.getContext(); final BigdataResource s = asValue(originalS); final BigdataURI p = asValue(originalP); final BigdataValue o = asValue(originalO); final BigdataResource c = asValue(originalC); final BigdataStatement effectiveStmt; if (originalS != s || originalP != p || originalO != o || originalC != c) { effectiveStmt = new BigdataStatementImpl(s, p, o, c, stmt.getStatementType(), stmt.getUserFlag()); } else { effectiveStmt = stmt; } return new BigdataBNodeImpl(this, nextID(), effectiveStmt); }
@Override public BigdataBNodeImpl createBNode(final BigdataStatement stmt) { // Subject, predicate, object and context should be processed to use the target value factory // See https://jira.blazegraph.com/browse/BLZG-1875 final BigdataResource originalS = stmt.getSubject(); final BigdataURI originalP = stmt.getPredicate(); final BigdataValue originalO = stmt.getObject(); final BigdataResource originalC = stmt.getContext(); final BigdataResource s = asValue(originalS); final BigdataURI p = asValue(originalP); final BigdataValue o = asValue(originalO); final BigdataResource c = asValue(originalC); final BigdataStatement effectiveStmt; if (originalS != s || originalP != p || originalO != o || originalC != c) { effectiveStmt = new BigdataStatementImpl(s, p, o, c, stmt.getStatementType(), stmt.getUserFlag()); } else { effectiveStmt = stmt; } return new BigdataBNodeImpl(this, nextID(), effectiveStmt); }
new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/DC"), f.createURI(RDFS.LABEL.toString()),
new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/DC"), f.createURI(RDFS.LABEL.toString()),
new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/DC"), f.createURI(RDFS.LABEL.toString()),
new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/DC"), f.createURI(RDFS.LABEL.toString()),
new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/DC"), f.createURI(RDFS.LABEL.toString()),
new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDF.TYPE.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Mike"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/Bryan"), f.createURI(RDFS.LABEL.toString()), ), new BigdataStatementImpl( f.createURI("http://www.bigdata.com/DC"), f.createURI(RDFS.LABEL.toString()),