/** * Creates a {@link PropertyIdValue}. * * @param id * a string of the form Pn... where n... is the string * representation of a positive integer number * @return a {@link PropertyIdValue} corresponding to the input */ public static PropertyIdValue makeWikidataPropertyIdValue(String id) { return factory.getPropertyIdValue(id, SITE_WIKIDATA); }
/** * Creates a {@link PropertyIdValue}. * * @param id * a string of the form Pn... where n... is the string * representation of a positive integer number * @return a {@link PropertyIdValue} corresponding to the input */ public static PropertyIdValue makeWikidataPropertyIdValue(String id) { return factory.getPropertyIdValue(id, SITE_WIKIDATA); }
/** * Creates a {@link PropertyIdValue}. * * @param id * a string of the form Pn... 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 a {@link PropertyIdValue} corresponding to the input */ public static PropertyIdValue makePropertyIdValue(String id, String siteIri) { return factory.getPropertyIdValue(id, siteIri); }
/** * Creates a {@link PropertyIdValue}. * * @param id * a string of the form Pn... 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 a {@link PropertyIdValue} corresponding to the input */ public static PropertyIdValue makePropertyIdValue(String id, String siteIri) { return factory.getPropertyIdValue(id, siteIri); }
/** * Copies a {@link PropertyIdValue}. * * @param object * object to copy * @return copied object */ public PropertyIdValue copy(PropertyIdValue object) { return dataObjectFactory.getPropertyIdValue(object.getId(), object.getSiteIri()); }
/** * Copies a {@link PropertyIdValue}. * * @param object * object to copy * @return copied object */ public PropertyIdValue copy(PropertyIdValue object) { return dataObjectFactory.getPropertyIdValue(object.getId(), object.getSiteIri()); }