Interface: DataProvider
Asynchronously provides data for the elements, links and other graph entities.
Properties
Property | Modifier | Type | Description |
---|---|---|---|
|
| Returns an RDF term factory to create RDF terms for identifiers and property values. |
Methods
connectedLinkStats()
connectedLinkStats(
params
):Promise
<DataProviderLinkCount
[]>
Gets connected link types of an element for exploration.
Parameters
Parameter | Type | Description |
---|---|---|
|
| ‐ |
| Target element to count linked elements from/to. | |
|
| Whether to allow to return inexact count of elements connected by an each link type when result is non-zero. Default
|
|
| Cancellation signal. |
Returns
Promise
<DataProviderLinkCount
[]>
Defined in
elementTypes()
elementTypes(
params
):Promise
<Map
<ElementTypeIri
,ElementTypeModel
>>
Gets the data for the specified element types.
Parameters
Parameter | Type | Description |
---|---|---|
|
| ‐ |
| readonly | Target element types to query data for. |
|
| Cancellation signal. |
Returns
Promise
<Map
<ElementTypeIri
, ElementTypeModel
>>
Defined in
elements()
elements(
params
):Promise
<Map
<ElementIri
,ElementModel
>>
Gets the data for the specified elements.
Parameters
Parameter | Type | Description |
---|---|---|
|
| ‐ |
| readonly | Target elements to query data for. |
|
| Cancellation signal. |
Returns
Promise
<Map
<ElementIri
, ElementModel
>>
Defined in
knownElementTypes()
knownElementTypes(
params
):Promise
<ElementTypeGraph
>
Gets the structure and data for all known element types.
Parameters
Parameter | Type | Description |
---|---|---|
|
| ‐ |
|
| Cancellation signal. |
Returns
Promise
<ElementTypeGraph
>
Defined in
knownLinkTypes()
knownLinkTypes(
params
):Promise
<LinkTypeModel
[]>
Gets the data and statistics for all known link types.
Parameters
Parameter | Type | Description |
---|---|---|
|
| ‐ |
|
| Cancellation signal. |
Returns
Promise
<LinkTypeModel
[]>
Defined in
linkTypes()
linkTypes(
params
):Promise
<Map
<LinkTypeIri
,LinkTypeModel
>>
Gets the data for the specified link types.
Parameters
Parameter | Type | Description |
---|---|---|
|
| ‐ |
| readonly | Target link types to query data for. |
|
| Cancellation signal. |
Returns
Promise
<Map
<LinkTypeIri
, LinkTypeModel
>>
Defined in
links()
links(
params
):Promise
<LinkModel
[]>
Get all links between two specified sets of entities (bipartite graph links).
To get all links between all entities in the set, it is possible to
pass the same set to both primary
and secondary
sets of elements.
Parameters
Parameter | Type | Description |
---|---|---|
|
| ‐ |
| readonly | Return only links with specified types. |
| readonly | First set of entities to get links between them and |
| readonly | Second set of entities to get links between them and |
|
| Cancellation signal. |
Returns
Promise
<LinkModel
[]>
Defined in
lookup()
lookup(
params
):Promise
<DataProviderLookupItem
[]>
Looks up elements with different filters:
- by an element type via
elementTypeId
; - by a connected element via
refElementId
,refElementLinkId
andlinkDirection
; - by a text lookup via
text
;
Filters can be combined to produce an intersection of the results.
Parameters
Parameter | Type |
---|---|
|
Returns
Promise
<DataProviderLookupItem
[]>
Defined in
propertyTypes()
propertyTypes(
params
):Promise
<Map
<PropertyTypeIri
,PropertyTypeModel
>>
Gets the data for the specified property types.
Parameters
Parameter | Type | Description |
---|---|---|
|
| ‐ |
| readonly | Target property types to query data for. |
|
| Cancellation signal. |
Returns
Promise
<Map
<PropertyTypeIri
, PropertyTypeModel
>>