Interface: MetadataProvider
Provides a strategy to visual graph authoring: which parts of the graph are editable and what is the range of possible values to allow.
Experimental: this feature will likely change in the future.
Methods
canConnect()
canConnect(
source
,target
,linkType
,options
):Promise
<MetadataCanConnect
[]>
Parameters
Parameter | Type |
---|---|
| |
|
|
|
|
|
|
|
|
Returns
Promise
<MetadataCanConnect
[]>
Defined in
canModifyEntity()
canModifyEntity(
entity
,options
):Promise
<MetadataCanModifyEntity
>
Parameters
Parameter | Type |
---|---|
| |
|
|
|
|
Returns
Promise
<MetadataCanModifyEntity
>
Defined in
canModifyRelation()
canModifyRelation(
link
,source
,target
,options
):Promise
<MetadataCanModifyEntity
>
Parameters
Parameter | Type |
---|---|
| |
| |
| |
|
|
|
|
Returns
Promise
<MetadataCanModifyEntity
>
Defined in
createEntity()
createEntity(
type
,options
):Promise
<ElementModel
>
Parameters
Parameter | Type |
---|---|
| |
|
|
|
|
Returns
Promise
<ElementModel
>
Defined in
createRelation()
createRelation(
source
,target
,linkType
,options
):Promise
<LinkModel
>
Parameters
Parameter | Type |
---|---|
| |
| |
| |
|
|
|
|
Returns
Promise
<LinkModel
>
Defined in
filterConstructibleTypes()
filterConstructibleTypes(
types
,options
):Promise
<ReadonlySet
<ElementTypeIri
>>
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<ReadonlySet
<ElementTypeIri
>>
Defined in
getEntityShape()
getEntityShape(
types
,options
):Promise
<MetadataEntityShape
>
Parameters
Parameter | Type |
---|---|
| readonly |
|
|
|
|
Returns
Promise
<MetadataEntityShape
>
Defined in
getLiteralLanguages()
getLiteralLanguages(): readonly
string
[]
Returns
readonly string
[]