|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.ontology.pipelets.ASesameRecordPipelet
org.eclipse.smila.ontology.pipelets.CreateResourcePipelet
public class CreateResourcePipelet
ensure that a resource with a specified type and name exists. The name property is configurable, by default rdfs:label is used. The created URIs are written to some attribute for later reference.
| Field Summary | |
|---|---|
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:"). |
| Fields inherited from class org.eclipse.smila.ontology.pipelets.ASesameRecordPipelet |
|---|
_configuration, _valueHelper, PARAM_RECORDFILTER, PARAM_REPOSITORY |
| Constructor Summary | |
|---|---|
CreateResourcePipelet()
|
|
| Method Summary | |
|---|---|
Id[] |
process(Blackboard blackboard,
Id[] recordIds)
process records on Blackboard service. |
| Methods inherited from class org.eclipse.smila.ontology.pipelets.ASesameRecordPipelet |
|---|
configure, createUri, getParameters, getRepositoryConnection, getSesameOntologyManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public CreateResourcePipelet()
| Method Detail |
|---|
public Id[] process(Blackboard blackboard,
Id[] recordIds)
throws ProcessingException
blackboard - Blackboard service managing the records.recordIds - Ids of records to process.
ProcessingException - error during processing.
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||