-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from desci-labs/m0ar/annotations
Add annotations model and relations
- Loading branch information
Showing
12 changed files
with
155 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
type ResearchComponent @loadModel(id: "$RESEARCH_COMPONENT_ID") { | ||
id: ID! | ||
} | ||
|
||
type Claim @loadModel(id: "$CLAIM_ID") { | ||
id: ID! | ||
} | ||
|
||
type Annotation | ||
@createModel(accountRelation: LIST, description: "Research component commentary") | ||
{ | ||
owner: DID! @documentAccount | ||
comment: String! @string(maxLength: 1024) | ||
|
||
componentID: StreamID! @documentReference(model: "ResearchComponent") | ||
component: ResearchComponent! @relationDocument(property: "componentID") | ||
|
||
# A way to identify the location of the annotation in the target component | ||
# payload, for example a JSON path, line number, or coordinates in a pdf | ||
path: String @string(maxLength: 512) | ||
|
||
claimID: StreamID @documentReference(model: "Claim") | ||
claim: Claim @relationDocument(property: "claimID") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.