Property talk:P12120
Jump to navigation
Jump to search
Documentation
Flickr photo ID
persistent identifier for images on Flickr
persistent identifier for images on Flickr
Represents | Flickr (Q103204) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Has quality | numeric identifier (Q93868746) | ||||||||||||
Data type | External identifier | ||||||||||||
Allowed values | ^\d+$ | ||||||||||||
Commons example |
| ||||||||||||
Source | https://www.flickr.com | ||||||||||||
Formatter URL | https://www.flickr.com/photo.gne?id=$1 | ||||||||||||
See also | Flickr user ID (P3267), image (P18) | ||||||||||||
Lists | |||||||||||||
Proposal discussion | Proposal discussion | ||||||||||||
Current uses |
|
[create Create a translatable help page (preferably in English) for this property to be included here]
Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). List of violations of this constraint: Database reports/Constraint violations/P12120#Single value, SPARQL
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P12120#Format, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P12120#Format, SPARQL
Allowed entity types are Wikibase MediaInfo (Q59712033): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). List of violations of this constraint: Database reports/Constraint violations/P12120#Entity types
Going from photo data to the Flickr API
[edit]One useful aspect of this property is that a photo ID can be passed directly to methods in the Flickr API; for example flickr.photos.getInfo – you don’t need to extract the photo ID from the different forms of Flickr URL that are floating around.
This is what that looks like (with a Flickr API key):
curl 'https://api.flickr.com/services/rest/?method=flickr.photos.getInfo&photo_id=[PHOTO_ID]&api_key=[API_KEY]'