/** Create a triple - this operation call {@link #checkTriple} if checking is enabled. */ @Override public Triple createTriple(Node subject, Node predicate, Node object, long line, long col) { if ( checking ) checkTriple(subject, predicate, object, line, col); return factory.createTriple(subject, predicate, object); }
protected void checkQuad(Node graph, Node subject, Node predicate, Node object, long line, long col) { // Allow blank nodes - syntax may restrict more. if ( graph != null && !graph.isURI() && !graph.isBlank() ) { errorHandler.error("Graph name is not a URI or blank node: " + FmtUtils.stringForNode(graph), line, col); throw new RiotException("Bad graph name: " + graph); } checkTriple(subject, predicate, object, line, col); }