ASSET_TO_URI
The function ASSET_TO_URI takes an asset and produces a URI in the form of a string.
This function takes as input an Asset. It returns a String representing the asset's URI.
Declaration
Parameters
asset (required, type: Asset) The Asset to create a URI for.
Return Values
asset_uri (type: string) The asset's URI.
Examples
An Asset's URI is essentially a concatenation of the various identifiers in the Asset that allow it to be located.
Discussion
The function URI_TO_ASSET is the opposite operation of ASSET_TO_URI. However, it is not a perfect symmetry. An asset can contain more information than just its location information. Once serialized to a URI, that information cannot be accessed from the resulting URI.
Last updated