/** * Creates a {@link DatatypeIdValue}. The datatype IRI is usually one of the * constants defined in {@link DatatypeIdValue}, but this is not enforced, * since there might be extensions that provide additional types. * * @param id * the IRI string that identifies the datatype * @return a {@link DatatypeIdValue} corresponding to the input */ public static DatatypeIdValue makeDatatypeIdValue(String id) { return factory.getDatatypeIdValue(id); }
/** * Creates a {@link DatatypeIdValue}. The datatype IRI is usually one of the * constants defined in {@link DatatypeIdValue}, but this is not enforced, * since there might be extensions that provide additional types. * * @param id * the IRI string that identifies the datatype * @return a {@link DatatypeIdValue} corresponding to the input */ public static DatatypeIdValue makeDatatypeIdValue(String id) { return factory.getDatatypeIdValue(id); }
/** * Copies a {@link DatatypeIdValue}. * * @param object * object to copy * @return copied object */ public DatatypeIdValue copy(DatatypeIdValue object) { return dataObjectFactory.getDatatypeIdValue(object.getIri()); }
/** * Copies a {@link DatatypeIdValue}. * * @param object * object to copy * @return copied object */ public DatatypeIdValue copy(DatatypeIdValue object) { return dataObjectFactory.getDatatypeIdValue(object.getIri()); }
/** * Starts the construction of an {@link PropertyDocument} with the given id. * * @param propertyIdValue * id of the newly constructed property document * @param datatypeId * the datatype id of the newly constructed property document, * e.g., {@link DatatypeIdValue#DT_ITEM}. * @return builder object to continue construction */ public static PropertyDocumentBuilder forPropertyIdAndDatatype( PropertyIdValue propertyIdValue, String datatypeId) { return forPropertyIdAndDatatype(propertyIdValue, factory.getDatatypeIdValue(datatypeId)); }
/** * Starts the construction of an {@link PropertyDocument} with the given id. * * @param propertyIdValue * id of the newly constructed property document * @param datatypeId * the datatype id of the newly constructed property document, * e.g., {@link DatatypeIdValue#DT_ITEM}. * @return builder object to continue construction */ public static PropertyDocumentBuilder forPropertyIdAndDatatype( PropertyIdValue propertyIdValue, String datatypeId) { return forPropertyIdAndDatatype(propertyIdValue, factory.getDatatypeIdValue(datatypeId)); }