sd_learn_resource
loads an RDF resource with its provenance metadata
Module:
Component:
Distribution:
Synopsis
sd_learn_resource [-s SID] [-a PUT|POST] [-D METADATA] SOURCE
Description
This command is essentially the same as the combination of the following piped commands:
sd_curl_rdf | sd_rapper | sd_kees_metadata -D "source=*SOURCE* | sd sparql graph
- SOURCE
- the source URL to be load
- -s SID
- connect to Graph Store named SID (
STORE
by default) - -a PUT|POST
- the graph accural policy. can be PUT or POST. With PUT data substitute existing graph, with POST data is appended to the graph
- -D METADATA
- the following local variables are supported:
Variable Name | Default | Description |
---|---|---|
sid | STORE | same as -s |
trust | 1 | Trust level as a xds:decimal ranging 0..1 |
activity | Activity | a KEES activity type (without namespace) OR xsd:anyURI |
graph | SOURCE | XSD:anyURI Named graph name |
activity_id | uuid | XSD:anyURI Identifier for a prov:Activity |
started_at | activity start date | |
accrual_policy | POST | same as -a |
Exit status
Exits with 0 on success, and > 0 if error occurs.
Availability
Since SDaaS 4
Example
sd learn resource -D “graph=urn:dataset:dbpedia” https://dbpedia.org/resource/Milan
Last modified March 24, 2024: updated (b0e712e)