Import and publish a resource¶
A resource is a description that a k.LAB service and its adapter understand. For example, an adapter can describe how to read a remote raster coverage, what area and time it covers, and which outputs it provides. The resource URN identifies that description. A semantic model can subsequently declare what a particular output measures.
Choose the adapter first¶
Search Resources for an existing resource before making a new description. Open a candidate and inspect its identity, geometry, interface, license and authoritative service. The browser can also show resources submitted to the focal twin. Show published local resources reveals local copies already published.
Check which adapters the selected service advertises. The geospatial component includes WCS and STAC encoders. In the edition's source, the WFS adapter's encoder is a scaffold. Choose a verified adapter for the operation and format you need. The generators component provides synthetic geographic data for testing. A terrain produced by its fractal generator is a simulated surface, which matters if someone intends to use it as measured elevation.
Create and check the description¶
- Choose Create a new resource, select its hosting service and adapter, and provide the requested identity. Attach files or fill in the endpoint parameters required by that adapter.
- Review Geometry for the spatial and temporal extent. Apply each geometry or time edit with its section control. In Interface, check the output type, attributes, keys and optional fields.
- Complete the adapter parameters, descriptive metadata, license and supporting files. Review required-field and validation messages. Select Create resource and inspect the submitted result.
- For an existing resource, use Save new version and wait for confirmation. Update temporary data has its own purpose and is available only where the service supports it.
Import resources in batch can submit several compatible inputs. Review the outcome for each item. A successful import of one file says nothing about another file's projection, schema or availability.
Publish and reuse it¶
Save the local resource, then open Publication and choose an eligible destination. Provide an intended editor if requested and confirm. Check the authoritative service and returned resource identity. The local published copy becomes protected. Use Edit published local copy to start a deliberate revision where permitted.
Manage access through Permissions and Update permissions if you have administration rights. Link a codelist in the description when the dataset uses one. The underlying authority entries must already resolve in the intended binding. Try the published resource from an identity with the expected access, then use its URN in a model and verify a result within its coverage. Use a codelist ยท Expose the resource through k.IM