IMF Type Library
The IMF types are grouped into topics. Select a group to see the contained IMF types.
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.
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
- wget
- curl
- Invoke-WebRequest cmdlet in PowerShell
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.
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'}
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'}
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
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'}