PCA Reference Data and Services - Staging
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

IMF Type Library

The IMF types are grouped into topics. Select a group to see the contained IMF types.


1 Retrieving IMF types manually via their website

IMF type identifiers are dereferencable IRIs. Use the identifer of an IMF type to open the webpage of the IMF type in a browser. Then click on one of the download options in the metadata section.

The following document formats for IMF types are avaiable:

  • IMF Type sheet (Excel)
  • Digital Datasheet (JSON)

For instance, to download the IMF type ‘Control valve (Function)’ go to its webpage at http://rds.posccaesar.org/imf/type/PCA_999000001.


2 Retrieving IMF types programmatically via HTTP requests

IMF types can be downloaded programmatically to local files via HTTP request (cf. downloads for retrieving ontologies). The desired format can be indicated by setting the Accept request HTTP header to a media type.

The following media types are used:

JSON
media type application/json
EXCEL
media type application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Common tools to execute HTTP requests on the command line include

Note that command-line options may deviate from what is presented in the examples below depending on the version of the tool used. Consult with the respective documentation.

Example: Retrieve IMF type in IMF Type sheet (Excel) format

For instance, consider downloading the IMF type ‘Control valve (Function)’ with identifier http://rds.posccaesar.org/imf/type/PCA_999000001.

For the IMF Type sheet (Excel) format, proceed as follows:

Download using wget
specify the desired filename with --output-document.
wget --header="Accept: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" http://rds.posccaesar.org/imf/type/PCA_999000001 --output-document=PCA_999000001.xlsx
Download using curl
specify the desired filename with --output.
curl -L --header "Accept: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" http://rds.posccaesar.org/imf/type/PCA_999000001 --output PCA_999000001.xlsx
Download using Invoke-WebRequest in PowerShell
specify the desired filename with -OutFile.
Invoke-WebRequest -URI http://rds.posccaesar.org/imf/type/PCA_999000001 -OutFile PCA_999000001.xlsx -PassThru -Headers @{'Accept' = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'}

Example: Retrieve IMF type in Digital Datasheet (JSON) format

For the Digital Datasheet (JSON) format, proceed as follows:

Download using wget
specify the desired filename with --output-document.
wget --header="Accept: application/json" http://rds.posccaesar.org/imf/type/PCA_999000001 --output-document=PCA_999000001.json
Download using curl
specify the desired filename with --output or use > to redirect the retrieved data to a file.
curl -L --header "Accept: application/json" http://rds.posccaesar.org/imf/type/PCA_999000001 > PCA_999000001.json
Download using Invoke-WebRequest in PowerShell
specify the desired filename with -OutFile.
Invoke-WebRequest -URI http://rds.posccaesar.org/imf/type/PCA_999000001 -OutFile PCA_999000001.json -PassThru -Headers @{'Accept' = 'application/json'}

3 Retrieving IMF type library information programmatically via HTTP request

The IMF type identifiers contained in an IMF type library module can be downloaded programmatically. The desired format can be indicated by setting the Accept request HTTP header.

The following media type is available:

JSON
media type application/json

Example: Retrieve IMF type identifiers

Consider the IMF type library module ‘instrumentation’ with identifier http://rds.posccaesar.org/imf/library/instrumentation.

To retrieve the IMF type identifiers of the module in JSON format, proceed as follows:

Download using wget
specify the desired filename with --output-document.
wget --header="Accept: application/json" http://rds.posccaesar.org/imf/library/instrumentation --output-document=instrumentation.json
Download using curl
specify the desired filename with --output or use > to redirect the retrieved data to a file.
curl -L --header "Accept: application/json" http://rds.posccaesar.org/imf/library/instrumentation > instrumentation.json
Download using Invoke-WebRequest in PowerShell
specify the desired filename with -OutFile.
Invoke-WebRequest -URI http://rds.posccaesar.org/imf/library/instrumentation -OutFile instrumentation.json -PassThru -Headers @{'Accept' = 'application/json'}