Skip to content

Commit

Permalink
Fixes for VF v.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterlynn committed Nov 3, 2019
1 parent e223db8 commit dfa91f2
Show file tree
Hide file tree
Showing 16 changed files with 72 additions and 90 deletions.
12 changes: 11 additions & 1 deletion schemas/Action.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@
"resourceEffect": {
"description": "The effect of an economic event on a resource, increment, decrement, no effect, or decrement resource and increment 'to' resource.",
"type": "string",
"enum": ["+", "-", "0", "-+"]
"enum": ["increment", "decrement", "noEffect", "decrementIncrement"]
},
"inputOutput": {
"description": "Denotes if a process input or output, or not related to a process.",
"type": "string",
"enum": ["input", "output", "notApplicable"]
},
"pairsWith": {
"description": "The action that should be included on the other direction of the process, for example accept with modify.",
"type": "string",
"enum": ["notApplicable", "dropoff", "pickup", "accept", "modify", "pass", "fail"]
}
},
"required": ["name", "resourceEffect"]
Expand Down
4 changes: 2 additions & 2 deletions schemas/AgentRelationshipRole.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"description": "A relationship role defining the kind of association one agent can have with another.",
"type": "object",
"properties": {
"label": {
"roleLabel": {
"description": "The human readable name of the role, from the subject to the object. For example, 'is member of'.",
"type": "string"
},
"inverseLabel": {
"inverseRoleLabel": {
"description": "The human readable name of the role, from the object to the subject. For example, 'has member'.",
"type": "string"
},
Expand Down
6 changes: 3 additions & 3 deletions schemas/Claim.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"resourceQuantity": {
"description": "The amount and unit of the economic resource counted or inventoried.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"effortQuantity": {
"description": "The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"resourceClassifiedAs": {
"description": "References a concept in a common taxonomy or other classification scheme for purposes of categorization or grouping.",
Expand All @@ -41,7 +41,7 @@
"description": "Grouping around something to create a boundary or context, used for documenting, accounting, planning.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Agent.json"
},
"before": {
"due": {
"description": "The due date/time of the claim.",
"type": "string",
"format": "date-time"
Expand Down
19 changes: 3 additions & 16 deletions schemas/Commitment.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"resourceQuantity": {
"description": "The amount and unit of the economic resource counted or inventoried. This is the quantity that could be used to increment or decrement a resource, depending on the type of resource and resource effect of action.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"effortQuantity": {
"description": "The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"resourceInventoriedAs": {
"description": "Economic resource involved in the commitment.",
Expand All @@ -33,14 +33,6 @@
"description": "The primary resource specification or definition of an existing or potential economic resource. A resource will have only one, as this specifies exactly what the resource is.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/ResourceSpecification.json"
},
"stage": {
"description": "References the ProcessSpecification of the last process the desired economic resource went through. Stage is used when the last process is important for finding proper resources, such as where the publishing process wants only documents that have gone through the editing process.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/ProcessSpecification.json"
},
"state": {
"description": "The state of the desired economic resource (pass or fail), after coming out of a test or review process.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Action.json"
},
"provider": {
"description": "The economic agent from whom the commitment is initiated.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Agent.json"
Expand Down Expand Up @@ -68,16 +60,11 @@
"type": "string",
"format": "date-time"
},
"before": {
"due": {
"description": "The due date/time of the commitment.",
"type": "string",
"format": "date-time"
},
"after": {
"description": "The commitment can start after this date/time.",
"type": "string",
"format": "date-time"
},
"created": {
"description": "The creation time of the commitment.",
"type": "string",
Expand Down
14 changes: 2 additions & 12 deletions schemas/EconomicEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"resourceQuantity": {
"description": "The amount and unit of the economic resource counted or inventoried. This is the quantity that could be used to increment or decrement a resource, depending on the type of resource and resource effect of action.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"effortQuantity": {
"description": "The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"resourceInventoriedAs": {
"description": "Economic resource involved in the economic event.",
Expand Down Expand Up @@ -64,16 +64,6 @@
"type": "string",
"format": "date-time"
},
"before": {
"description": "The economic event occurred prior to this date/time.",
"type": "string",
"format": "date-time"
},
"after": {
"description": "The economic event occurred after this date/time.",
"type": "string",
"format": "date-time"
},
"atLocation": {
"description": "The place where an economic event occurs. Usually mappable.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/SpatialThing.json"
Expand Down
4 changes: 2 additions & 2 deletions schemas/EconomicResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"accountingQuantity": {
"description": "The current amount and unit of the economic resource for which the agent has primary rights and responsibilities, sometimes thought of as ownership. This can be either stored or derived from economic events affecting the resource.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"onhandQuantity": {
"description": "The current amount and unit of the economic resource which is under direct control of the agent. It may be more or less than the accounting quantity. This can be either stored or derived from economic events affecting the resource.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"conformsTo": {
"description": "The primary resource knowledge specification or definition of an existing or potential resource.",
Expand Down
4 changes: 2 additions & 2 deletions schemas/Fulfillment.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
},
"resourceQuantity": {
"description": "The amount and unit of the economic resource counted or inventoried.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"effortQuantity": {
"description": "The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"note": {
"description": "A textual comment or description.",
Expand Down
13 changes: 4 additions & 9 deletions schemas/Intent.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
},
"resourceQuantity": {
"description": "The amount and unit of the economic resource counted or inventoried.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"effortQuantity": {
"description": "The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"availableQuantity": {
"description": "The total quantity of the offered resource available.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"resourceInventoriedAs": {
"description": "Economic resource involved in the intent.",
Expand Down Expand Up @@ -68,16 +68,11 @@
"type": "string",
"format": "date-time"
},
"before": {
"due": {
"description": "The due date/time of the intent.",
"type": "string",
"format": "date-time"
},
"after": {
"description": "The intent can start after this date/time.",
"type": "string",
"format": "date-time"
},
"finished": {
"description": "The intent is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done.",
"type": "boolean"
Expand Down
18 changes: 18 additions & 0 deletions schemas/Measure.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json",
"title": "Measure",
"description": "A numeric value with its unit of measure.",
"type": "object",
"properties": {
"hasNumericalValue": {
"description": "A numeric value.",
"type": "number"
},
"hasUnit": {
"description": "A unit of measure.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Unit.json"
}
},
"required": ["hasNumericalValue", "hasUnit"]
}
2 changes: 1 addition & 1 deletion schemas/Plan.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"type": "string",
"format": "date-time"
},
"before": {
"due": {
"description": "The due date/time of the plan.",
"type": "string",
"format": "date-time"
Expand Down
10 changes: 0 additions & 10 deletions schemas/Process.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@
"type": "string",
"format": "date-time"
},
"before": {
"description": "The due date/time of the process.",
"type": "string",
"format": "date-time"
},
"after": {
"description": "The process can start after this date/time.",
"type": "string",
"format": "date-time"
},
"classifiedAs": {
"description": "References one or more concepts in a common taxonomy or other classification scheme for purposes of categorization or grouping.",
"type": "array",
Expand Down
18 changes: 0 additions & 18 deletions schemas/QuantityValue.json

This file was deleted.

12 changes: 2 additions & 10 deletions schemas/RecipeFlow.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"resourceQuantity": {
"description": "The amount and unit of the economic resource counted or inventoried.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"effortQuantity": {
"description": "The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"recipeFlowResource": {
"description": "The resource definition referenced by this flow in the recipe.",
Expand All @@ -29,14 +29,6 @@
"description": "Relates an output flow to its process in a recipe.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/RecipeProcess.json"
},
"stage": {
"description": "References the ProcessSpecification of the last process the desired economic resource went through. Stage is used when the last process is important for finding proper resources, such as where the publishing process wants only documents that have gone through the editing process.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/ProcessSpecification.json"
},
"state": {
"description": "The state of the desired economic resource (pass or fail), after coming out of a test or review process.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Action.json"
},
"note": {
"description": "A textual comment or description.",
"type": "string"
Expand Down
4 changes: 2 additions & 2 deletions schemas/Satisfaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
},
"resourceQuantity": {
"description": "The amount and unit of the economic resource counted or inventoried.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"effortQuantity": {
"description": "The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"note": {
"description": "A textual comment or description.",
Expand Down
4 changes: 2 additions & 2 deletions schemas/Settlement.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
},
"resourceQuantity": {
"description": "The amount and unit of the economic resource counted or inventoried.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"effortQuantity": {
"description": "The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/QuantityValue.json"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Measure.json"
},
"note": {
"description": "A textual comment or description.",
Expand Down
18 changes: 18 additions & 0 deletions schemas/Unit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Unit.json",
"title": "Unit",
"description": "A unit of measure.",
"type": "object",
"properties": {
"label": {
"description": "A standard label for the unit of measure.",
"type": "string"
},
"sybmol": {
"description": "A standard symbol of the unit of measure.",
"type": "string"
}
},
"required": ["label"]
}

0 comments on commit dfa91f2

Please sign in to comment.