rdf_sync-1.x-dev/config/schema/rdf_sync.schema.yml
config/schema/rdf_sync.schema.yml
rdf_sync.settings:
type: config_object
label: RDF Sync settings
mapping:
graph_uri:
type: uri
label: Graph URI
connector:
type: mapping
label: Connector
mapping:
id:
type: string
label: Connector plugin ID
constraints:
PluginExists:
manager: plugin.manager.rdf_sync.connector
interface: Drupal\rdf_sync\RdfSyncConnectorPluginInterface
config:
type: rdf_sync.connector.[%parent.id]
label: Connector plugin configuration
rdf_sync.connector.virtuoso:
type: mapping
label: Virtuoso connector plugin configuration
mapping:
endpoint:
type: string
label: Endpoint type
constraints:
Choice:
choices:
- basic
- digest
- oauth
scheme:
type: string
label: Scheme
host:
type: string
label: Host
port:
type: integer
label: Port
paths:
type: mapping
label: Paths
mapping:
query:
type: string
label: SPARQL query path
update:
type: string
label: SPARQL update path
graph_store:
type: string
label: Graph store path
credentials:
type: mapping
label: Credentials
mapping:
user:
type: string
label: User
nullable: true
password:
type: string
label: Password
nullable: true
# Describes a bundle level mapping.
# TODO: Find out a way to automatically generate the schema for each bundle
# config entity, without needing to be explicitly declared in 3rd-party modules.
rdf_sync.bundle_mapping:
type: mapping
label: RDF Sync third party settings
mapping:
type:
type: uri
label: RDF type mapping
uri_field_name:
type: string
nullable: true
label: URI field name
uri_plugin:
type: string
nullable: true
label: URI generator plugin ID
fields:
type: sequence
label: Fields
sequence:
type: rdf_sync.field_mapping
namespaces:
type: sequence
label: Namespaces
sequence:
type: uri
label: URI
# Describes a single field mappings.
rdf_sync.field_mapping:
type: sequence
label: Columns
sequence:
type: mapping
label: Columns
mapping:
predicate:
type: uri
label: Predicate
type:
type: string
nullable: true
label: Type
field.field.*.*.*.third_party.rdf_sync:
type: rdf_sync.field_mapping
# TODO: Find out a way to automatically generate the schema for each bundle
# config entity, without needing to explicitly declare it.
node.type.*.third_party.rdf_sync:
type: rdf_sync.bundle_mapping
taxonomy.vocabulary.*.third_party.rdf_sync:
type: rdf_sync.bundle_mapping
