Skip to main content

Interface: LinkConfiguration

Link abstraction configuration.

Properties

PropertyTypeDescription

domain?

readonly string[]

Optional domain constraint for source element of the link. If specified checks RDF type of source element to match one from this set.

id

string

IRI of the "virtual" link

path

string

SPARQL predicate or pattern connecting source element to target element.

Expected bindings (if it is a pattern):

  • ?source source element
  • ?target target element

Example

Direct configuration: `ex:relatedToOther`

Pattern configuration: `
?source ex:hasAddress ?addr .
?addr ex:hasCountry ?target .
OPTIONAL {
BIND(ex:addressType as ?propType)
?addr ex:addressType ?propValue
}
`

properties?

string

Additional SPARQL patterns can be used for getting properties of the link.

Expected bindings

  • ?source source element
  • ?target target element
  • ?propType link property type
  • ?propValue link property value