Skip to content

Commit

Permalink
Merge pull request #12 from cmungall/languages
Browse files Browse the repository at this point in the history
Some change objects for language tags
  • Loading branch information
cmungall authored Aug 31, 2021
2 parents 7c711a3 + 436e723 commit cf8d73b
Show file tree
Hide file tree
Showing 14 changed files with 740 additions and 283 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ install:

# command to run tests
script:
- touch src/schema/ocl.yaml && make test
- touch src/schema/kgcl.yaml && make test

2 changes: 2 additions & 0 deletions examples/de-novo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ change_set:
- {type: NewSynonym, about_node: ANAT:Forelimb, new_value: "upper limb"}
- {type: ClassCreation, node_id: ANAT:Hindlimb, name: "hindlimb", superclass: ANAT:Limb}
- {type: NewSynonym, about_node: ANAT:Hindlimb, new_value: "lower limb"}
- {type: SetLanguageForName, about_node: ANAT:Hindlimb, new_value: "en"}
- {type: NewSynonym, about_node: ANAT:Mouse, new_value: "bouche", language: "fr"}
#- {type: ClassCreation, node_id: ANAT:Foot, name: "foot", superclass: ANAT:BodyPart, relationship: {predicate: ANAT:part-of, filler: ANAT:Hindlimb}}
#- {type: ClassCreation, node_id: ANAT:Hand, name: "hand", superclass: ANAT:BodyPart, relationship: {predicate: ANAT:part-of, filler: ANAT:Hindlimb}, was_generated_by: uuid:e887d3aac33f} ## deliberate mistake
#- {type: NodeMove, about_node: ANAT:Hand, old_predicate: ANAT:part-of, new_predicate: ANAT:Hindlimb, new_parent: ANAT:Forelimb}
Expand Down
61 changes: 51 additions & 10 deletions graphql/kgcl.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type AddNodeToSubset implements AddToSubset
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
inSubset: OntologySubset
}

Expand Down Expand Up @@ -86,6 +87,7 @@ type ClassCreation
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
nodeId: Node
name: String
owlType: OwlTypeEnum
Expand Down Expand Up @@ -134,16 +136,10 @@ interface Creation

type DatatypeChange
{
id: String!
wasGeneratedBy: Activity
seeAlso: String
pullRequest: String
creator: String
changeDate: String
contributor: String
hasUndo: Change
oldValue: String
newValue: String
}

interface DatatypeOrLanguageTagChange
{
}

interface Deletion
Expand Down Expand Up @@ -275,6 +271,12 @@ type InstanceNode
owlType: OwlTypeEnum
}

type LanguageTagChange
{
oldValue: LanguageTag
newValue: LanguageTag
}

type LogicalAxiomChange
{
id: String!
Expand Down Expand Up @@ -341,6 +343,7 @@ type NameBecomesSynonym
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
change1: NodeRename
change2: NewSynonym
changeDescription: String
Expand All @@ -358,6 +361,7 @@ type NewSynonym
hasUndo: Change
oldValue: String
aboutNode: Node
language: LanguageTag
newValue: String
}

Expand All @@ -373,6 +377,7 @@ type NewTextDefinition
hasUndo: Change
oldValue: String
aboutNode: Node
language: LanguageTag
newValue: String
}

Expand All @@ -397,6 +402,7 @@ type NodeAnnotationChange
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
}

type NodeAnnotationReplacement
Expand All @@ -412,6 +418,7 @@ type NodeAnnotationReplacement
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
}

interface NodeChange
Expand All @@ -427,6 +434,7 @@ interface NodeChange
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
}

type NodeCreation implements Creation
Expand All @@ -442,6 +450,7 @@ type NodeCreation implements Creation
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
nodeId: Node
name: String
owlType: OwlTypeEnum
Expand Down Expand Up @@ -479,6 +488,7 @@ type NodeDeletion implements Deletion
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
changeDescription: String
}

Expand All @@ -494,6 +504,7 @@ type NodeDirectMerge implements AllowsAutomaticReplacementOfEdges
hasUndo: Change
oldValue: String
newValue: String
language: LanguageTag
hasNondirectReplacement: [Node]
associatedChangeSet: [Change]
about: OntologyElement
Expand Down Expand Up @@ -532,6 +543,7 @@ type NodeObsoletion implements Obsoletion
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
hasDirectReplacement: Node
hasNondirectReplacement: [Node]
changeDescription: String
Expand All @@ -552,6 +564,7 @@ type NodeObsoletionWithDirectReplacement implements AllowsAutomaticReplacementOf
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
hasNondirectReplacement: [Node]
associatedChangeSet: [Change]
about: OntologyElement
Expand All @@ -572,6 +585,7 @@ type NodeObsoletionWithNoDirectReplacement
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
hasDirectReplacement: Node
associatedChangeSet: [Change]
about: OntologyElement
Expand All @@ -590,6 +604,7 @@ type NodeRename
contributor: String
hasUndo: Change
aboutNode: Node
language: LanguageTag
oldValue: String
newValue: String
hasTextualDiff: TextualDiff
Expand Down Expand Up @@ -626,6 +641,7 @@ type NodeSynonymChange
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
}

interface NodeTextDefinitionChange
Expand All @@ -641,6 +657,7 @@ interface NodeTextDefinitionChange
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
}

type NodeUnobsoletion implements Unobsoletion
Expand All @@ -656,6 +673,7 @@ type NodeUnobsoletion implements Unobsoletion
oldValue: String
newValue: String
aboutNode: Node
language: LanguageTag
changeDescription: String
replacedBy: Node
consider: Node
Expand Down Expand Up @@ -736,6 +754,7 @@ type RemoveSynonym
hasUndo: Change
newValue: String
aboutNode: Node
language: LanguageTag
oldValue: String
}

Expand All @@ -751,6 +770,7 @@ type RemoveTextDefinition
hasUndo: Change
newValue: String
aboutNode: Node
language: LanguageTag
oldValue: String
}

Expand All @@ -766,6 +786,7 @@ type RemovedNodeFromSubset implements RemoveFromSubset
hasUndo: Change
oldValue: String
newValue: String
language: LanguageTag
changeDescription: String
aboutNode: Node
subset: String
Expand All @@ -778,6 +799,23 @@ type Session
activitySet: [Activity]
}

type SetLanguageForName implements LanguageTagChange
{
id: String!
wasGeneratedBy: Activity
seeAlso: String
pullRequest: String
creator: String
changeDate: String
contributor: String
hasUndo: Change
aboutNode: Node
language: LanguageTag
oldValue: String
newValue: String
changeDescription: String
}

interface SimpleChange
{
id: String!
Expand Down Expand Up @@ -808,6 +846,7 @@ type SynonymPredicateChange
contributor: String
hasUndo: Change
aboutNode: Node
language: LanguageTag
oldValue: String
newValue: String
hasTextualDiff: TextualDiff
Expand All @@ -824,6 +863,7 @@ type SynonymReplacement
contributor: String
hasUndo: Change
aboutNode: Node
language: LanguageTag
oldValue: String
newValue: String
hasTextualDiff: TextualDiff
Expand All @@ -840,6 +880,7 @@ type TextDefinitionReplacement
contributor: String
hasUndo: Change
aboutNode: Node
language: LanguageTag
oldValue: String
newValue: String
hasTextualDiff: TextualDiff
Expand Down
Loading

0 comments on commit cf8d73b

Please sign in to comment.