-
-
Notifications
You must be signed in to change notification settings - Fork 96
Add vocabulary relating to proposals, intentions and measures. #579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d4b4f81
1edeadf
925648a
90084fa
5c7d96a
4856168
4ffc3a0
445368f
8cbf237
f332137
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,6 +81,15 @@ To be released. | |
|
|
||
| ### @fedify/vocab | ||
|
|
||
| - Added vocabulary types for economic resource coordination | ||
| in federated networks. [[#578] by scammo] | ||
| - Added `Proposal` class for publishing offers or requests. | ||
| - Added `Intent` class for describing economic transactions within | ||
| a proposal, with `action`, `resourceConformsTo`, `resourceQuantity`, | ||
| `availableQuantity`, and `minimumQuantity` properties. | ||
| - Added `Measure` class for representing quantities with units of | ||
| measure, with `hasUnit` and `hasNumericalValue` properties. | ||
|
|
||
| - Fixed `Endpoints.toJsonLd()` to no longer emit invalid | ||
| `"type": "as:Endpoints"` in the serialized JSON-LD. The `as:Endpoints` | ||
| type does not exist in the ActivityStreams vocabulary, and its presence | ||
|
|
@@ -91,6 +100,7 @@ To be released. | |
| `"type": "as:Source"` in the serialized JSON-LD. The `as:Source` type | ||
| does not exist in the ActivityStreams vocabulary either. | ||
|
|
||
| [#578]: https://github.com/fedify-dev/fedify/issues/578 | ||
| [browser.pub]: https://browser.pub/ | ||
| [#576]: https://github.com/fedify-dev/fedify/issues/576 | ||
|
|
||
|
|
@@ -610,6 +620,21 @@ Released on February 22, 2026. | |
| - This package is primarily used by generated vocabulary classes and | ||
| provides the runtime infrastructure for ActivityPub object processing. | ||
|
|
||
| ### @fedify/vocab | ||
|
|
||
| - Added vocabulary types for economic resource coordination | ||
| in federated networks. [[#578]] | ||
scammo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - Added `Proposal` class for publishing offers or requests. | ||
| - Added `Intent` class for describing economic transactions within | ||
| a proposal, with `action`, `resourceConformsTo`, `resourceQuantity`, | ||
| `availableQuantity`, and `minimumQuantity` properties. | ||
| - Added `Measure` class for representing quantities with units of | ||
| measure, with `hasUnit` and `hasNumericalValue` properties. | ||
|
|
||
| [#578]: https://github.com/fedify-dev/fedify/issues/578 | ||
| [ValueFlows]: https://www.valueflo.ws/ | ||
scammo marked this conversation as resolved.
Show resolved
Hide resolved
Comment on lines
622
to
+636
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These entries appear under the Version 1.5.0 section, which has already been released. Since this PR hasn't been merged yet, the changelog entry should only appear in the unreleased section at the top. Please remove this duplicate block. Also, the |
||
|
|
||
| ### @fedify/elysia | ||
|
|
||
| - Added *deno.json* configuration file to enable proper Deno tooling support | ||
|
|
||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| $schema: ../../vocab-tools/schema.yaml | ||
| name: Intent | ||
| compactName: Intent | ||
| uri: "https://w3id.org/valueflows/ont/vf#Intent" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Is there a use case where an Also, unlike |
||
| entity: true | ||
| description: | | ||
| A proposed economic transaction describing what is being offered or requested | ||
| in a {@link Proposal}. | ||
| defaultContext: | ||
| - "https://www.w3.org/ns/activitystreams" | ||
| - vf: "https://w3id.org/valueflows/ont/vf#" | ||
| om2: "http://www.ontology-of-units-of-measure.org/resource/om-2/" | ||
| Intent: "vf:Intent" | ||
| action: "vf:action" | ||
| resourceConformsTo: | ||
| "@id": "vf:resourceConformsTo" | ||
| "@type": "@id" | ||
| resourceQuantity: "vf:resourceQuantity" | ||
| availableQuantity: "vf:availableQuantity" | ||
| minimumQuantity: "vf:minimumQuantity" | ||
| hasUnit: "om2:hasUnit" | ||
| hasNumericalValue: "om2:hasNumericalValue" | ||
|
|
||
| properties: | ||
| - singularName: action | ||
| functional: true | ||
| compactName: action | ||
| uri: "https://w3id.org/valueflows/ont/vf#action" | ||
| description: | | ||
| The type of economic transaction. The value of this property should be | ||
| either `"deliverService"` or `"transfer"`. | ||
| range: | ||
| - "http://www.w3.org/2001/XMLSchema#string" | ||
|
|
||
| - singularName: resourceConformsTo | ||
| functional: true | ||
| compactName: resourceConformsTo | ||
| uri: "https://w3id.org/valueflows/ont/vf#resourceConformsTo" | ||
| description: | | ||
| The type of an economic resource. Could be any URI. | ||
| range: | ||
| - "http://www.w3.org/2001/XMLSchema#anyURI" | ||
|
|
||
| - singularName: resourceQuantity | ||
| functional: true | ||
| compactName: resourceQuantity | ||
| uri: "https://w3id.org/valueflows/ont/vf#resourceQuantity" | ||
| untyped: true | ||
| description: | | ||
| The amount and unit of the economic resource. | ||
| range: | ||
| - "http://www.ontology-of-units-of-measure.org/resource/om-2/Measure" | ||
|
|
||
| - singularName: availableQuantity | ||
| functional: true | ||
| compactName: availableQuantity | ||
| uri: "https://w3id.org/valueflows/ont/vf#availableQuantity" | ||
| untyped: true | ||
| description: | | ||
| The quantity of the offered resource currently available. | ||
| range: | ||
| - "http://www.ontology-of-units-of-measure.org/resource/om-2/Measure" | ||
|
|
||
| - singularName: minimumQuantity | ||
| functional: true | ||
| compactName: minimumQuantity | ||
| uri: "https://w3id.org/valueflows/ont/vf#minimumQuantity" | ||
| untyped: true | ||
| description: | | ||
| The minimum possible quantity of the resource. | ||
| range: | ||
| - "http://www.ontology-of-units-of-measure.org/resource/om-2/Measure" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| $schema: ../../vocab-tools/schema.yaml | ||
| name: Measure | ||
| compactName: om2:Measure | ||
| uri: "http://www.ontology-of-units-of-measure.org/resource/om-2/Measure" | ||
| entity: false | ||
| description: A quantity with a unit of measure. | ||
| defaultContext: | ||
| - "https://www.w3.org/ns/activitystreams" | ||
| - om2: "http://www.ontology-of-units-of-measure.org/resource/om-2/" | ||
| hasUnit: "om2:hasUnit" | ||
| hasNumericalValue: "om2:hasNumericalValue" | ||
|
|
||
| properties: | ||
| - singularName: hasUnit | ||
| functional: true | ||
| compactName: hasUnit | ||
| uri: "http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit" | ||
| description: | | ||
| The name of the unit, according to the Ontology of units of Measure | ||
| classification. The recommended unit for countable items is `"one"`. | ||
| range: | ||
| - "http://www.w3.org/2001/XMLSchema#string" | ||
|
|
||
| - singularName: hasNumericalValue | ||
| functional: true | ||
| compactName: hasNumericalValue | ||
| uri: "http://www.ontology-of-units-of-measure.org/resource/om-2/hasNumericalValue" | ||
| description: | | ||
| The amount of the resource. If not specified, arbitrary amounts can be | ||
| used when responding to the proposal. | ||
| range: | ||
| - "http://www.w3.org/2001/XMLSchema#string" | ||
scammo marked this conversation as resolved.
Show resolved
Hide resolved
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see this was already discussed and One small suggestion: it would be helpful to add a note in the description: |
The amount of the resource, represented as a decimal string. If not
specified, arbitrary amounts can be used when responding to the proposal.
NOTE: This property uses `xsd:string` as a temporary measure until
`xsd:decimal` is supported. See #617. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sub-items (
Proposal,Intent,Measure) should be nested under the summary line rather than being flat siblings. Also, please runmise run fmtto fix Hongdown formatting issues.Suggested structure: