Skip to content

Commit

Permalink
Merge pull request #5 from valueflows/yeff
Browse files Browse the repository at this point in the history
fixes from yeff's review
  • Loading branch information
bhaugen authored Sep 18, 2019
2 parents e37ad29 + 0838f06 commit e223db8
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 20 deletions.
4 changes: 2 additions & 2 deletions schemas/Action.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"description": "An action verb defining the kind of event, commitment, or intent.",
"type": "object",
"properties": {
"name": {
"description": "An informal or formal textual identifier for an action. Does not imply uniqueness.",
"label": {
"description": "A unique verb which defines the action.",
"type": "string",
"enum": ["dropoff", "pickup", "consume", "use", "work", "cite", "produce", "accept", "modify", "pass", "fail", "deliver-service", "transfer-all-rights", "transfer-custody", "transfer-complete", "move", "raise", "lower"]
},
Expand Down
5 changes: 0 additions & 5 deletions schemas/Agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
"type": "string",
"format": "uri"
},
"url": {
"description": "Optional email address contact for this agent.",
"type": "string",
"format": "uri"
},
"primaryLocation": {
"description": "The main place an agent is located, often an address where activities occur and mail can be sent. This is usually a mappable geographic location. It also could be a website address, as in the case of agents who have no physical location.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/SpatialThing.json"
Expand Down
4 changes: 4 additions & 0 deletions schemas/AgentRelationship.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"description": "The object of a relationship between 2 agents. For example, if Mary is a member of a group, then the group is the object.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Agent.json"
},
"inScopeOf": {
"description": "Grouping around something to create a boundary or context.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Agent.json"
},
"note": {
"description": "A textual comment or description.",
"type": "string"
Expand Down
4 changes: 4 additions & 0 deletions schemas/AgentRelationshipRole.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"inverseLabel": {
"description": "The human readable name of the role, from the object to the subject. For example, 'has member'.",
"type": "string"
},
"note": {
"description": "A textual comment or description.",
"type": "string"
}
},
"required": ["label"]
Expand Down
3 changes: 2 additions & 1 deletion schemas/Claim.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
},
"agreedIn": {
"description": "Reference to an agreement between agents which specifies the rules or policies or calculations which govern this claim.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Agreement.json"
"type": "string",
"format": "uri"
}
},
"required": ["action"]
Expand Down
8 changes: 7 additions & 1 deletion schemas/Commitment.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
"type": "string",
"format": "date-time"
},
"created": {
"description": "The creation time of the commitment.",
"type": "string",
"format": "date-time"
},
"finished": {
"description": "The commitment 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 Expand Up @@ -108,7 +113,8 @@
},
"agreedIn": {
"description": "Reference to an agreement between agents which specifies the rules or policies or calculations which govern this commitment.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Agreement.json"
"type": "string",
"format": "uri"
}
},
"required": ["action"]
Expand Down
3 changes: 2 additions & 1 deletion schemas/EconomicEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
},
"agreedIn": {
"description": "Reference to an agreement between agents which specifies the rules or policies or calculations which govern this economic event.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Agreement.json"
"type": "string",
"format": "uri"
}
},
"required": ["action"]
Expand Down
2 changes: 1 addition & 1 deletion schemas/EconomicResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"currentLocation": {
"description": "The current place an economic resource is located. Could be at any level of granularity, from a town to an address to a warehouse location. Should be mappable.",
"type": "string"
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/SpatialThing.json"
},
"image": {
"description": "The uri to an image relevant to the item, such as a photo, diagram, etc.",
Expand Down
12 changes: 11 additions & 1 deletion schemas/Intent.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description": "A planned economic flow, which can lead to economic events (sometimes through commitments).",
"type": "object",
"properties": {
"name": {
"description": "An informal or formal textual identifier for the intent. Does not imply uniqueness.",
"type": "string"
},
"action": {
"description": "Relates an intent to a verb, such as consume, produce, work, improve, etc.",
"type": "string"
Expand Down Expand Up @@ -82,6 +86,11 @@
"description": "The place where an intent occurs. Usually mappable.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/SpatialThing.json"
},
"image": {
"description": "The uri to an image relevant to the item, such as a photo, diagram, etc.",
"type": "string",
"format": "uri"
},
"note": {
"description": "A textual comment or description.",
"type": "string"
Expand All @@ -96,7 +105,8 @@
},
"agreedIn": {
"description": "Reference to an agreement between agents which specifies the rules or policies or calculations which govern this intent.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Agreement.json"
"type": "string",
"format": "uri"
}
},
"required": ["action"]
Expand Down
4 changes: 4 additions & 0 deletions schemas/Process.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
"description": "The process with its inputs and outputs is part of the plan.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Plan.json"
},
"nestedIn": {
"description": "The process with its inputs and outputs is part of the scenario.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Scenario.json"
},
"finished": {
"description": "The process 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
4 changes: 0 additions & 4 deletions schemas/ProposedIntent.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
"reciprocal": {
"description": "This is a reciprocal intent of this proposal, not primary. Not meant to be used for intent matching.",
"type": "boolean"
},
"note": {
"description": "A textual comment or description.",
"type": "string"
}
},
"required": ["publishes", "publishedIn"]
Expand Down
4 changes: 0 additions & 4 deletions schemas/RecipeFlow.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
"description": "The specification of a resource inflow to, or outflow from, a recipe process.",
"type": "object",
"properties": {
"name": {
"description": "An informal or formal textual identifier for the item. Does not imply uniqueness.",
"type": "string"
},
"action": {
"description": "Relates a process input or output to a verb, such as consume, produce, work, modify, etc.",
"$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Action.json"
Expand Down

0 comments on commit e223db8

Please sign in to comment.