Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/reorganize-lexicon-folders.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hypercerts-org/lexicon": minor
---

Reorganize lexicon folder structure into semantic namespaces: location to app.certified.geo, attachment/evaluation/measurement to org.hypercerts.context, acknowledgement to org.hypercerts.graph, collection to org.hypercerts.curation, workScopeTag to org.hypercerts.ontology
12 changes: 6 additions & 6 deletions ERD.puml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ dataclass activity <<largeBold>> #B4E5D0 {
!endif
}

' org.hypercerts.claim.attachment
' org.hypercerts.context.attachment
dataclass attachment {
!if (SHOW_FIELDS == "true")
subjects[]?
Expand All @@ -83,7 +83,7 @@ dataclass attachment {
!endif
}

' org.hypercerts.claim.measurement
' org.hypercerts.context.measurement
dataclass measurement {
!if (SHOW_FIELDS == "true")
subject?
Expand All @@ -98,7 +98,7 @@ dataclass measurement {
!endif
}

' org.hypercerts.claim.evaluation
' org.hypercerts.context.evaluation
dataclass evaluation {
!if (SHOW_FIELDS == "true")
subject?
Expand Down Expand Up @@ -133,7 +133,7 @@ dataclass contributionDetails {
!endif
}

' app.certified.location
' app.certified.geo.location
dataclass location {
!if (SHOW_FIELDS == "true")
lpVersion
Expand Down Expand Up @@ -187,7 +187,7 @@ dataclass rights {
!endif
}

' org.hypercerts.claim.collection
' org.hypercerts.curation.collection
dataclass collection {
!if (SHOW_FIELDS == "true")
type?
Expand All @@ -200,7 +200,7 @@ dataclass collection {
!endif
}

' org.hypercerts.acknowledgement
' org.hypercerts.graph.acknowledgement
dataclass acknowledgement {
!if (SHOW_FIELDS == "true")
subject
Expand Down
294 changes: 167 additions & 127 deletions SCHEMAS.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lexicon": 1,
"id": "app.certified.location",
"id": "app.certified.geo.location",
"defs": {
"main": {
"type": "record",
Expand Down
4 changes: 2 additions & 2 deletions lexicons/org/hypercerts/claim/activity.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"workScope": {
"type": "union",
"refs": ["com.atproto.repo.strongRef", "#workScopeString"],
"description": "Work scope definition. Either a strongRef to a work-scope logic record (structured, nested logic), or a free-form string for simple or legacy scopes. The work scope record should conform to the org.hypercerts.helper.workScopeTag lexicon."
"description": "Work scope definition. Either a strongRef to a work-scope logic record (structured, nested logic), or a free-form string for simple or legacy scopes. The work scope record should conform to the org.hypercerts.ontology.workScopeTag lexicon."
},
"startDate": {
"type": "string",
Expand All @@ -81,7 +81,7 @@
},
"locations": {
"type": "array",
"description": "An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location.",
"description": "An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.geo.location.",
"items": {
"type": "ref",
"ref": "com.atproto.repo.strongRef"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lexicon": 1,
"id": "org.hypercerts.claim.attachment",
"id": "org.hypercerts.context.attachment",
"defs": {
"main": {
"type": "record",
Expand Down Expand Up @@ -72,7 +72,7 @@
"location": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "A strong reference to the location where this attachment's subject matter occurred. The record referenced must conform with the lexicon app.certified.location."
"description": "A strong reference to the location where this attachment's subject matter occurred. The record referenced must conform with the lexicon app.certified.geo.location."
},
"createdAt": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lexicon": 1,
"id": "org.hypercerts.claim.evaluation",
"id": "org.hypercerts.context.evaluation",
"defs": {
"score": {
"type": "object",
Expand Down Expand Up @@ -57,7 +57,7 @@
},
"measurements": {
"type": "array",
"description": "Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement",
"description": "Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.context.measurement",
"items": {
"type": "ref",
"ref": "com.atproto.repo.strongRef"
Expand All @@ -78,7 +78,7 @@
"location": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "An optional reference for georeferenced evaluations. The record referenced must conform with the lexicon app.certified.location."
"description": "An optional reference for georeferenced evaluations. The record referenced must conform with the lexicon app.certified.geo.location."
},
"createdAt": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lexicon": 1,
"id": "org.hypercerts.claim.measurement",
"id": "org.hypercerts.context.measurement",
"defs": {
"main": {
"type": "record",
Expand Down Expand Up @@ -42,7 +42,7 @@
},
"locations": {
"type": "array",
"description": "Optional geographic references related to where the measurement was taken. Each referenced record must conform with the app.certified.location lexicon.",
"description": "Optional geographic references related to where the measurement was taken. Each referenced record must conform with the app.certified.geo.location lexicon.",
"items": {
"type": "ref",
"ref": "com.atproto.repo.strongRef"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lexicon": 1,
"id": "org.hypercerts.claim.collection",
"id": "org.hypercerts.curation.collection",
"defs": {
"main": {
"type": "record",
Expand Down Expand Up @@ -58,7 +58,7 @@
"location": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "A strong reference to the location where this collection's activities were performed. The record referenced must conform with the lexicon app.certified.location."
"description": "A strong reference to the location where this collection's activities were performed. The record referenced must conform with the lexicon app.certified.geo.location."
},
"createdAt": {
"type": "string",
Expand All @@ -75,7 +75,7 @@
"itemIdentifier": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "Strong reference to an item in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection)."
"description": "Strong reference to an item in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.curation.collection)."
},
"itemWeight": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lexicon": 1,
"id": "org.hypercerts.acknowledgement",
"id": "org.hypercerts.graph.acknowledgement",
"defs": {
"main": {
"type": "record",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lexicon": 1,
"id": "org.hypercerts.helper.workScopeTag",
"id": "org.hypercerts.ontology.workScopeTag",
"defs": {
"main": {
"type": "record",
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function categorizeLexicons(lexicons) {
lexicons: [],
ordering: (lex) => {
const order = [
"app.certified.location",
"app.certified.geo.location",
"app.certified.badge.definition",
"app.certified.badge.award",
"app.certified.badge.response",
Expand Down
Loading