mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-23 17:39:59 +00:00
108 lines
2.7 KiB
GraphQL
108 lines
2.7 KiB
GraphQL
query getGlossaryTerm($urn: String!, $start: Int, $count: Int) {
|
|
glossaryTerm(urn: $urn) {
|
|
urn
|
|
type
|
|
exists
|
|
name
|
|
hierarchicalName
|
|
isRelatedTerms: relationships(input: { types: ["IsA"], direction: OUTGOING, start: $start, count: $count }) {
|
|
start
|
|
count
|
|
total
|
|
relationships {
|
|
entity {
|
|
... on GlossaryTerm {
|
|
urn
|
|
}
|
|
}
|
|
}
|
|
}
|
|
hasRelatedTerms: relationships(input: { types: ["HasA"], direction: OUTGOING, start: $start, count: $count }) {
|
|
start
|
|
count
|
|
total
|
|
relationships {
|
|
entity {
|
|
... on GlossaryTerm {
|
|
urn
|
|
}
|
|
}
|
|
}
|
|
}
|
|
isAChildren: relationships(input: { types: ["IsA"], direction: INCOMING, start: $start, count: $count }) {
|
|
start
|
|
count
|
|
total
|
|
relationships {
|
|
entity {
|
|
... on GlossaryTerm {
|
|
urn
|
|
hierarchicalName
|
|
}
|
|
}
|
|
}
|
|
}
|
|
containedBy: relationships(input: { types: ["HasA"], direction: INCOMING, start: $start, count: $count }) {
|
|
start
|
|
count
|
|
total
|
|
relationships {
|
|
entity {
|
|
... on GlossaryTerm {
|
|
urn
|
|
}
|
|
}
|
|
}
|
|
}
|
|
parentNodes {
|
|
...parentNodesFields
|
|
}
|
|
ownership {
|
|
...ownershipFields
|
|
}
|
|
domain {
|
|
...entityDomain
|
|
}
|
|
institutionalMemory {
|
|
...institutionalMemoryFields
|
|
}
|
|
properties {
|
|
name
|
|
description
|
|
termSource
|
|
sourceRef
|
|
sourceUrl
|
|
rawSchema
|
|
customProperties {
|
|
key
|
|
value
|
|
}
|
|
}
|
|
schemaMetadata(version: 0) {
|
|
...schemaMetadataFields
|
|
}
|
|
deprecation {
|
|
...deprecationFields
|
|
}
|
|
privileges {
|
|
canManageEntity
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation createGlossaryTerm($input: CreateGlossaryEntityInput!) {
|
|
createGlossaryTerm(input: $input)
|
|
}
|
|
|
|
mutation createGlossaryNode($input: CreateGlossaryEntityInput!) {
|
|
createGlossaryNode(input: $input)
|
|
}
|
|
|
|
mutation addRelatedTerms($input: RelatedTermsInput!) {
|
|
addRelatedTerms(input: $input)
|
|
}
|
|
|
|
mutation removeRelatedTerms($input: RelatedTermsInput!) {
|
|
removeRelatedTerms(input: $input)
|
|
}
|