sd_learn_rule

Synopsis

sd_learn_rule [-s SID] [-a PUT|POST] [-D METADATA]

Description

This command is essentially the same as the combination of the following piped commands:

sd sparql rule | sd kees metadata | sd sparql graph 
-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 NameDefaultDescription
sidSTOREsame as -s
trust1Trust level as a xds:decimal ranging 0..1
activityReasoninga KEES activity type (without namespace) OR xsd:anyURI
graphurn:sdaas:aboxXSD:anyURI Named graph name
activity_iduuidXSD:anyURI Identifier for a prov:Activity
started_atactivity start date
accrual_policyPOSTsame as -a

Exit status

Exits with 0 on success, and > 0 if error occurs.

Availability

Since SDaaS 4

Last modified March 24, 2024: updated (b0e712e)