forked from holochain-open-dev/profiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Profile Expression | ||
|
||
Here contains the holochain DNA & [ad4m](https://github.com/perspect3vism/ad4m) expression language for creating and retrieving agent profiles. Soon UI component required for displaying agent profiles will be included here and served via the ad4m language.<br> | ||
Data stored in the holochain DNA is expected to be an ad4m [expression](https://github.com/perspect3vism/ad4m/blob/68f3a48148391b94f929996d91dc0882a1bbf2d0/src/expression/Expression.ts#L42) with the following shape for the data field: | ||
|
||
``` | ||
{ | ||
signed_agent: "signed did string used for did ownership validation", | ||
//Profile data, JSON object of any shape | ||
profile: { | ||
... | ||
}, | ||
//RDF context field, JSON object of any shape | ||
@context: { | ||
... | ||
} | ||
} | ||
``` | ||
|
||
Ad4m language ontology is used here to provide a known implemented interface over holochain zome functions as well as a build js bundle containing the DNA, UI and JS logic required to interface with this DNA. | ||
|
||
No holochain validation is currently present on this DNA. |