⚗️ sd_learn_datalake

Synopsis

sd_learn_datalake -D [METADATA] [-D “graph=GRAPHNAME”] DATA_ROOT

Description

Discovers and loads datasets description file according with VoID specifications and then learn all found datasets. This command is essentially the same as the combination of the following pseudo code:

if sd learn resource -a PUT *SOURCE*/well-known/void; then
	for dataset in $(echo "SELECT DISTINCT ?dataset {  GRAPH <*SOURCE> {?dataset <http://rdfs.org/ns/void#dataDump> [] }}" | sd_sparql_list); do
		sd learn dataset "$dataset"
	done
fi
DATA_ROOT
the uri of a VOid home page. source must be an http home page ending with a /
-s SID, -D “sid=SID
connect to Graph Store named SID ( STORE by default)
METADATA
following metadata are supported:
Variable NameDefaultDescription
sidSTOREA sid name
trust1Trust level as a xds:decimal ranging 0..1
activityActivitya KEES activity type (without namespace) OR xsd:anyURI
graphsame of sourceXSD:anyURI Named graph name
activity_iduuidXSD:anyURI Identifier for a prov:Activity
started_atactivity start date

Exit status

Exits with 0 on success, and > 0 if a curl or http error occurs.

Availability

Since SDaaS 4

Example

sd learn data http://data.example.org/

Last modified May 6, 2024: updated (1e7acb8)