Minting IDs, Creating Expeditions, and Validating Data using REST calls

The examples presented here demonstrate possible methods for interacting with the FIMS REST services for creating identifiers, expeditions, and validating datasets. The full set of REST service calls are at . Unless otherwise noted, the parameters in the following examples must be sent with the type ‘application/x-www-form-urlencoded’.

Logging in

All BCID minting functions require you to first login. You can login by sending a POST request to:

POST Parameters:

Save the cookies that are returned. How you do this depends on your application (some curl examples: Pass the cookies file to the POST requests below to authenticate each request.

Mint Bcid

Mint a Bcid by sending at minimum a title, webAddress, and resourceType. Send a POST request to:

 POST Parameters:
    resourceType={resourceType}  (e.g. "")
    *graph={graph} (A sparql endpoint or other location to be included in sparql queries)
    *suffixPassThrough={true|pase} (whether this supports suffixPassthrough}
    *finalCopy={true|false} (if this is a final copy)
* Optional parameters

Send Cookies with login data

Optional minting services

Determine your projectID

Knowing your projectID is useful when working with the minting services presented below. Your username must be added to the projects before using the projects themselves. Talk to your project administrator to have your username added to a project. The following URL lists all available projects in the FIMS system:

Create new Expedition

Expeditions are used in the FIMS system for organizing content that is related to versions of and resources related to, a spreadsheet. Mint an Expedition by sending the following POST request:

POST Parameters:
    webaddress={target URL for expedition, forwarded when the expedition ID resolved}

Send Cookies with login data

Associate Bcid with Expedition by sending POST request

Associate a BCID with an expedition:

POST Parameters:
    bcid={identifier returned in step 2}

Send Cookies with login data

Validate Dataset

To validate your dataset, send a POST request to:

Send request as type 'multipart/form-data' (in Curl, use -F for form data vs -d)

POST Parameters:

Send Cookies with login data

The response is returned as JSON, which will look something like:

{"done": [{
    "Samples": {
        "errors": [],
        "warnings": [{
            "Missing column(s)": [
                "yearCollected has a missing cell value",
                "permitInformation has a missing cell value",
                "locality has a missing cell value"