protected void writeURI(IRI uri) throws IOException { String uriString = uri.toString(); writer.write("<" + uriString + ">"); }
private void appendURI(StringBuilder sb, IRI uri) { String str = uri.toString(); if (str.length() > 50) { sb.append("<").append(str, 0, 19).append(".."); sb.append(str, str.length() - 29, str.length()).append(">\n"); } else { sb.append("<").append(uri).append(">\n"); } }
private void appendURI(StringBuilder sb, IRI uri) { String str = uri.toString(); if (str.length() > 50) { sb.append("<").append(str, 0, 19).append(".."); sb.append(str, str.length() - 29, str.length()).append(">\n"); } else { sb.append("<").append(uri).append(">\n"); } } }
@Override public FunctionCall visit(ASTCeil node, Object data) throws VisitorException { return createFunctionCall(FN.NUMERIC_CEIL.toString(), node, 1, 1); }
@Override public FunctionCall visit(ASTUpperCase node, Object data) throws VisitorException { return createFunctionCall(FN.UPPER_CASE.toString(), node, 1, 1); }
@Override public FunctionCall visit(ASTSeconds node, Object data) throws VisitorException { return createFunctionCall(FN.SECONDS_FROM_DATETIME.toString(), node, 1, 1); }
/** * Creates an N-Triples string for the supplied URI. */ public static String toNTriplesString(IRI uri) { return "<" + escapeString(uri.toString()) + ">"; }
public static void append(IRI uri, Appendable appendable) throws IOException { appendable.append("<"); escapeString(uri.toString(), appendable); appendable.append(">"); }
@Override public FunctionCall visit(ASTStrLen node, Object data) throws VisitorException { return createFunctionCall(FN.STRING_LENGTH.toString(), node, 1, 1); }
@Override public FunctionCall visit(ASTDay node, Object data) throws VisitorException { return createFunctionCall(FN.DAY_FROM_DATETIME.toString(), node, 1, 1); }
@Override public FunctionCall visit(ASTTimezone node, Object data) throws VisitorException { return createFunctionCall(FN.TIMEZONE_FROM_DATETIME.toString(), node, 1, 1); }
@Override public FunctionCall visit(ASTSubstr node, Object data) throws VisitorException { return createFunctionCall(FN.SUBSTRING.toString(), node, 2, 3); }
@Override public FunctionCall visit(ASTContains node, Object data) throws VisitorException { return createFunctionCall(FN.CONTAINS.toString(), node, 2, 2); }
@Override public FunctionCall visit(ASTEncodeForURI node, Object data) throws VisitorException { return createFunctionCall(FN.ENCODE_FOR_URI.toString(), node, 1, 1); }
@Override public FunctionCall visit(ASTYear node, Object data) throws VisitorException { return createFunctionCall(FN.YEAR_FROM_DATETIME.toString(), node, 1, 1); }
@Override public FunctionCall visit(ASTMonth node, Object data) throws VisitorException { return createFunctionCall(FN.MONTH_FROM_DATETIME.toString(), node, 1, 1); }
@Override public FunctionCall visit(ASTMinutes node, Object data) throws VisitorException { return createFunctionCall(FN.MINUTES_FROM_DATETIME.toString(), node, 1, 1); }
private void writeURI(IRI uri) throws IOException { out.writeByte(URI_VALUE); writeString(uri.toString()); }
protected void serialize(IRI uri, XMLWriter xmlWriter) throws IOException { if (uri != null) { xmlWriter.textElement(TransactionXMLConstants.URI_TAG, uri.toString()); } else { serializeNull(xmlWriter); } }
protected void parseBase() throws IOException, RDFParseException, RDFHandlerException { skipWSC(); IRI baseURI = parseURI(); setBaseURI(baseURI.toString()); }