SDShare source

The SDShare data source can read RDF from ATOM feeds after the SDShare specification. See the Working with RDF document for more information about working with RDF data in Sesam.

It has the following properties:

Prototype

{
   "type": "sdshare",
   "system": "url-or-microservice-system-id",
   "sort_lists": true,
   "url": "url-to-sdshare-fragments-feed"
}

Properties

Property

Type

Description

Default

Req

system

String

The ID of the URL system or microservice system component to use.

Yes

url

String

The URL of the SDShare fragments feed to consume.

Yes

sort_lists

Boolean

If the sort_lists is set to true any resulting entity properties containing lists of values (due to them having the same RDF predicate) will be sorted, making the output predictable. This applies in a recursive fashion.

true

if_source_empty

Enum<String>

Determines the behaviour of the pipe when the SDShare source does not return any entities. Normally, any previously synced entities will be deleted even if the pipe does not receive any entities from its source. If set to "fail", the pipe will automatically fail if the source returns no entities. This means that any previous entities in the pipe’s dataset are not deleted. If set to "accept", the pipe will not fail and any previously synced entities will be deleted.

The global default global_defaults.if_source_empty can be set for all pipes in the service metadata.

"accept"

Continuation support

See the section on continuation support for more information.

Property

Value

supports_since

true (Default)

is_since_comparable

true (Fixed)

is_chronological

false (Default)

Example configuration

The outermost object would be your pipe configuration, which is omitted here for brevity:

{
    "source": {
        "type": "sdshare",
        "url": "https://open.sesam.io/sdshare/server/1/fragments/enhetsregisteret"
    }
}