@Override public BigdataLiteralImpl createLiteral(final String label) { return new BigdataLiteralImpl(this, label, null, null); }
@Override public BigdataLiteralImpl createLiteral(short arg0) { return new BigdataLiteralImpl(this, "" + arg0, null, xsd_short); }
@Override public BigdataLiteralImpl createLiteral(final String label, final String language) { return new BigdataLiteralImpl(this, label, language, null/* datatype */); }
@Override public BigdataLiteralImpl createLiteral(int arg0) { return new BigdataLiteralImpl(this, "" + arg0, null, xsd_int); }
@Override public BigdataLiteralImpl createLiteral(float arg0) { return new BigdataLiteralImpl(this, "" + arg0, null, xsd_float); }
@Override public BigdataLiteralImpl createLiteral(byte arg0) { return new BigdataLiteralImpl(this, "" + arg0, null, xsd_byte); }
@Override public BigdataLiteralImpl createLiteral(long arg0) { return new BigdataLiteralImpl(this, "" + arg0, null, xsd_long); }
@Override public BigdataLiteralImpl createLiteral(double arg0) { return new BigdataLiteralImpl(this, "" + arg0, null, xsd_double); }
@Override public BigdataLiteralImpl createLiteral(float arg0) { return new BigdataLiteralImpl(this, "" + arg0, null, xsd_float); }
@Override public BigdataLiteralImpl createLiteral(final String label, final String language) { return new BigdataLiteralImpl(this, label, language, null/* datatype */); }
@Override public BigdataLiteralImpl createLiteral(byte arg0, final boolean unsigned) { return new BigdataLiteralImpl(this, "" + (unsigned ? XSDUnsignedByteIV.promote(arg0) : arg0), null, unsigned ? xsd_ubyte : xsd_byte); }
@Override public BigdataLiteralImpl createLiteral(short arg0, final boolean unsigned) { return new BigdataLiteralImpl(this, "" + (unsigned ? XSDUnsignedShortIV.promote(arg0) : arg0), null, unsigned ? xsd_ushort :xsd_short); }
@Override public BigdataLiteralImpl createLiteral(int arg0, final boolean unsigned) { return new BigdataLiteralImpl(this, "" + (unsigned ? XSDUnsignedIntIV.promote(arg0) : arg0), null, unsigned ? xsd_uint :xsd_int); }
@Override public BigdataLiteralImpl createLiteral(long arg0, final boolean unsigned) { return new BigdataLiteralImpl(this, "" + (unsigned ? XSDUnsignedLongIV.promote(arg0) : arg0), null, unsigned ? xsd_ulong : xsd_long); }
@Override public BigdataLiteralImpl createLiteral(byte arg0, final boolean unsigned) { return new BigdataLiteralImpl(this, "" + (unsigned ? XSDUnsignedByteIV.promote(arg0) : arg0), null, unsigned ? xsd_ubyte : xsd_byte); }
@Override public BigdataLiteralImpl createLiteral(short arg0, final boolean unsigned) { return new BigdataLiteralImpl(this, "" + (unsigned ? XSDUnsignedShortIV.promote(arg0) : arg0), null, unsigned ? xsd_ushort :xsd_short); }
@Override public BigdataLiteralImpl createLiteral(String label, URI datatype, String language) { /* * Note: The datatype parameter may be null per the Sesame API. * * See https://sourceforge.net/apps/trac/bigdata/ticket/226 */ if (datatype != null && !(datatype instanceof BigdataURIImpl)) { datatype = createURI(datatype.stringValue()); } return new BigdataLiteralImpl(this, label, language, (BigdataURIImpl) datatype); }
@Override public BigdataLiteralImpl createLiteral(String label, URI datatype, String language) { /* * Note: The datatype parameter may be null per the Sesame API. * * See https://sourceforge.net/apps/trac/bigdata/ticket/226 */ if (datatype != null && !(datatype instanceof BigdataURIImpl)) { datatype = createURI(datatype.stringValue()); } return new BigdataLiteralImpl(this, label, language, (BigdataURIImpl) datatype); }
@Override public BigdataLiteralImpl createLiteral(final XMLGregorianCalendar arg0) { /* * Note: QName#toString() does not produce the right representation, * which is why we need to go through XMLDatatypeUtil. * * @see https://sourceforge.net/apps/trac/bigdata/ticket/117 */ return new BigdataLiteralImpl(this, arg0.toString(), null/* languageCode */, createURI(XMLDatatypeUtil.qnameToURI( arg0.getXMLSchemaType()).stringValue())); }
@Override public BigdataLiteralImpl createLiteral(final XMLGregorianCalendar arg0) { /* * Note: QName#toString() does not produce the right representation, * which is why we need to go through XMLDatatypeUtil. * * @see https://sourceforge.net/apps/trac/bigdata/ticket/117 */ return new BigdataLiteralImpl(this, arg0.toString(), null/* languageCode */, createURI(XMLDatatypeUtil.qnameToURI( arg0.getXMLSchemaType()).stringValue())); }