-
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 #15 from desci-labs/m0ar/metadata-and-versions
Metadata and commitID versioning
- Loading branch information
Showing
18 changed files
with
509 additions
and
426 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 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
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") | ||
@createModel(accountRelation: LIST, description: "Textual commentary") | ||
@createIndex(fields: [{ path: "targetVersion" }]) | ||
@createIndex(fields: [{ path: "claimVersion" }]) | ||
{ | ||
owner: DID! @documentAccount | ||
version: CommitID! @documentVersion | ||
comment: String! @string(maxLength: 1024) | ||
|
||
componentID: StreamID! @documentReference(model: "ResearchComponent") | ||
component: ResearchComponent! @relationDocument(property: "componentID") | ||
targetID: StreamID! # Research object, researchComponent, or annotation as reply | ||
targetVersion: CommitID! | ||
|
||
# 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 | ||
# If target is a component, identify the location of the annotation | ||
# payload. For example a JSON path, line number, or coordinates in a pdf. | ||
path: String @string(maxLength: 512) | ||
|
||
# Optionally tag a claim to contextualise the annotation | ||
claimID: StreamID @documentReference(model: "Claim") | ||
claim: Claim @relationDocument(property: "claimID") | ||
claimVersion: CommitID! | ||
|
||
metadataPayload: String @string(maxLength: 1024) | ||
} |
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.