public class CreateResourcePipelet extends ASesameRecordPipelet
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_LABELATTRIBUTE
configuration property/parameter name for specifying the attribute name containing resource names:
"labelAttribute".
|
static java.lang.String |
PARAM_LABELPREDICATE
configuration property/parameter name for specifying the predicate used to lookup names: "labelPredicate"
(optional, default is rdfs:label).
|
static java.lang.String |
PARAM_TYPEURI
configuration property/parameter name for specifying the URI of the required class: "typeUri".
|
static java.lang.String |
PARAM_URIATTRIBUTE
configuration property/parameter name for specifying the attribute name that takes the created/found URIs:
"uriAttribute".
|
static java.lang.String |
PARAM_URIPREFIX
configuration property/parameter name for specifying a prefix for the URIs created from the resource name:
"uriPrefix" (optional, default is "urn:").
|
_configuration, _valueHelper, PARAM_RECORDFILTER, PARAM_REPOSITORY| Constructor and Description |
|---|
CreateResourcePipelet() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
process(Blackboard blackboard,
java.lang.String[] recordIds)
process given records.
|
configure, createUri, getParameters, getRepositoryConnection, getSesameOntologyManagerpublic static final java.lang.String PARAM_LABELATTRIBUTE
public static final java.lang.String PARAM_URIATTRIBUTE
public static final java.lang.String PARAM_LABELPREDICATE
public static final java.lang.String PARAM_TYPEURI
public static final java.lang.String PARAM_URIPREFIX
public java.lang.String[] process(Blackboard blackboard, java.lang.String[] recordIds) throws ProcessingException
blackboard - Blackboard holding and managing the records.recordIds - Ids of records to process.ProcessingException - error during processing.