@Override Node construct( Object x ) { return new Node_Literal( x ); } };
@Override Node construct( Object x ) { return new Node_Literal( x ); } };
/** make a literal node with the specified literal value */ public static Node createLiteral(LiteralLabel lit) { Objects.requireNonNull(lit, "Argument to NodeFactory.createLiteral is null") ; return new Node_Literal( lit ) ; }
/** make a literal node with the specified literal value */ public static Node createLiteral(LiteralLabel lit) { Objects.requireNonNull(lit, "Argument to NodeFactory.createLiteral is null") ; return new Node_Literal( lit ) ; }
/** Create a Node based on the value * If the value is a string we * assume this is intended to be a lexical form after all. * @param value * The value, mapped according to registered types. * @param dtype * RDF Datatype. * @return Node * @throws DatatypeFormatException */ public static Node createLiteralByValue(Object value, RDFDatatype dtype) throws DatatypeFormatException { Objects.requireNonNull(value, "Argument 'value' to NodeFactory.createLiteralByValue is null") ; return new Node_Literal(LiteralLabelFactory.createByValue(value, "", dtype)) ; }
/** Create a Node based on the value * If the value is a string we * assume this is intended to be a lexical form after all. * @param value * The value, mapped according to registered types. * @param dtype * RDF Datatype. * @return Node * @throws DatatypeFormatException */ public static Node createLiteralByValue(Object value, RDFDatatype dtype) throws DatatypeFormatException { Objects.requireNonNull(value, "Argument 'value' to NodeFactory.createLiteralByValue is null") ; return new Node_Literal(LiteralLabelFactory.createByValue(value, "", dtype)) ; }
/** Create a Node based on the value * If the value is a string we * assume this is intended to be a lexical form after all. * @param value * The value, mapped according to registered types. * @param lang * (optional) Language tag, if a string. * @param dtype * RDF Datatype. * @return Node * @throws DatatypeFormatException */ public static Node createLiteralByValue(Object value, String lang, RDFDatatype dtype) throws DatatypeFormatException { Objects.requireNonNull(value, "Argument 'value' to NodeFactory.createLiteralByValue is null") ; return new Node_Literal(LiteralLabelFactory.createByValue(value, lang, dtype)) ; }
/** Create a Node based on the value * If the value is a string we * assume this is intended to be a lexical form after all. * @param value * The value, mapped according to registered types. * @param lang * (optional) Language tag, if a string. * @param dtype * RDF Datatype. * @return Node * @throws DatatypeFormatException */ public static Node createLiteralByValue(Object value, String lang, RDFDatatype dtype) throws DatatypeFormatException { Objects.requireNonNull(value, "Argument 'value' to NodeFactory.createLiteralByValue is null") ; return new Node_Literal(LiteralLabelFactory.createByValue(value, lang, dtype)) ; }