/** * Creates an {@link ItemIdValue} for Wikidata. * * @param id * a string of the form Qn... where n... is the string * representation of a positive integer number * @return an {@link ItemIdValue} corresponding to the input */ public static ItemIdValue makeWikidataItemIdValue(String id) { return factory.getItemIdValue(id, SITE_WIKIDATA); }
/** * Creates an {@link ItemIdValue} for Wikidata. * * @param id * a string of the form Qn... where n... is the string * representation of a positive integer number * @return an {@link ItemIdValue} corresponding to the input */ public static ItemIdValue makeWikidataItemIdValue(String id) { return factory.getItemIdValue(id, SITE_WIKIDATA); }
/** * Creates an {@link ItemIdValue}. * * @param id * a string of the form Qn... where n... is the string * representation of a positive integer number * @param siteIri * IRI to identify the site, usually the first part of the entity * IRI of the site this belongs to, e.g., * "http://www.wikidata.org/entity/" * @return an {@link ItemIdValue} corresponding to the input */ public static ItemIdValue makeItemIdValue(String id, String siteIri) { return factory.getItemIdValue(id, siteIri); }
/** * Creates an {@link ItemIdValue}. * * @param id * a string of the form Qn... where n... is the string * representation of a positive integer number * @param siteIri * IRI to identify the site, usually the first part of the entity * IRI of the site this belongs to, e.g., * "http://www.wikidata.org/entity/" * @return an {@link ItemIdValue} corresponding to the input */ public static ItemIdValue makeItemIdValue(String id, String siteIri) { return factory.getItemIdValue(id, siteIri); }
/** * Copies an {@link ItemIdValue}. * * @param object * object to copy * @return copied object */ public ItemIdValue copy(ItemIdValue object) { return dataObjectFactory.getItemIdValue(object.getId(), object.getSiteIri()); }
/** * Copies an {@link ItemIdValue}. * * @param object * object to copy * @return copied object */ public ItemIdValue copy(ItemIdValue object) { return dataObjectFactory.getItemIdValue(object.getId(), object.getSiteIri()); }