-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Open
scammo
wants to merge
7
commits into
fedify-dev:main
Choose a base branch
from
54GradSoftware:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d4b4f81
Add vocabulary for proposal, intent and measure #578
scammo 1edeadf
added changes to changes.md
scammo 925648a
Merge branch 'main' into main
scammo 90084fa
fix tests, update changes.md
scammo 5c7d96a
Merge remote-tracking branch 'upstream/main'
scammo 4856168
merge and update snapshots
scammo 4ffc3a0
Merge branch 'main' into main
scammo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
3,011 changes: 2,860 additions & 151 deletions
3,011
packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap
Large diffs are not rendered by default.
Oops, something went wrong.
3,011 changes: 2,860 additions & 151 deletions
3,011
packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap
Large diffs are not rendered by default.
Oops, something went wrong.
3,011 changes: 2,860 additions & 151 deletions
3,011
packages/vocab-tools/src/__snapshots__/class.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,72 @@ | ||
| $schema: ../../vocab-tools/schema.yaml | ||
| name: Intent | ||
| compactName: Intent | ||
| uri: "https://w3id.org/valueflows/ont/vf#Intent" | ||
| 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" |
This file contains hidden or 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,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
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.