-
-
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
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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" | ||
| 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" | ||
|
Contributor
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. The - "http://www.w3.org/2001/XMLSchema#float"
Author
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. The Gemini comment is too short-sighted; xsd:float would indeed cause problems in a marketplace context due to the rounding errors documented in w3c/rdf-concepts#43.
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. Great analysis, @scammo. I agree that Using |
||
Uh oh!
There was an error while loading. Please reload this page.