commit 11f97ca0b2992cad740b65ccdba875c07adbf2a6
parent 4119b18541f0b4aa9017583251c3067b4b6734be
Author: Lynn Foster <foster.j.lynn@gmail.com>
Date: Tue, 6 Oct 2015 16:13:55 -0500
Merge pull request #36 from valueflows/chore/clean-vocabs
spring cleaning
Diffstat:
11 files changed, 2 insertions(+), 476 deletions(-)
diff --git a/README.md b/README.md
@@ -12,6 +12,8 @@ Some of the "children" have been separated out into their own repositories to gi
* [Agent Vocab](https://github.com/openvocab/agent)
* [Exchange Vocab](https://github.com/valueflows/exchange)
+* Flow Vocab
+* Plan Vocab
* [Process Vocab](https://github.com/valueflows/process)
* [Resource Vocab](https://github.com/valueflows/resource)
@@ -56,37 +58,3 @@ In general, processes and exchanges alternate in a flow. But in some situations,
#### Process-Exchange combination flow
![combo flow](https://docs.google.com/drawings/d/1Sm389PH04BS_gvrvPD7_idGf-EdZmD2mhRiNl3V26a8/pub?w=746&h=674)
-
-
-### WORK IN PROGRESS
-
-- [ ] [Agent Vocab](https://github.com/openvocab/agent)
- - [ ] [Agent](./vocab/Agent.js)
- - [ ] AgentType
- - [ ] [RelationshipType](./vocab/RelationshipType.js)
- - [ ] [Relationship](./vocab/Relationship.js)
-- [ ] Measurements
- - [ ] [Quantity](./vocab/Quantity.js)
- - [ ] [Unit](./vocab/Unit.js)
- - [ ] [Kind](./vocab/Kind.js)
-- [ ] Economic Resources
- - [ ] [ResourceType](./vocab/ResourceType.js)
- - [ ] [Resource](./vocab/Resource.js)
-- [ ] Economic Interactions
- - [ ] [InteractionType](./vocab/InteractionType.js)
- - [ ] [Interaction](./vocab/Interaction.js)
-- [ ] [Exchange Vocab](https://github.com/valueflows/exchange)
- - [ ] [ExchangeType](./vocab/ExchangeType.js)
- - [ ] [Exchange](./vocab/Exchange.js)
-- [ ] [Process Vocab](https://github.com/valueflows/process)
- - [ ] [ProcessType](./vocab/ProcessType.js)
- - [ ] [Process](./vocab/Process.js)
-- [ ] Economic Events
- - [ ] [EventType](./vocab/EventType.js)
- - [ ] [Event](./vocab/Event.js)
-- [ ] Economic Plans
- - [ ] [CommitmentType](./vocab/CommitmentType.js)
- - [ ] [Commitment](./vocab/Commitment.js)
-- [ ] Facets
-- Misc
- - [ ] [Location](./vocab/Location.js)
diff --git a/vocab/Agent.js b/vocab/Agent.js
@@ -1,38 +0,0 @@
-module.exports = {
- id: "Agent",
- type: 'object',
- prefixes: {
- "": "http://schema.org/",
- "foaf": "http://xmlns.com/foaf/0.1/",
- },
- context: "foaf:Agent",
- description: "An agent.",
- properties: {
- name: {
- context: "name",
- description: "The primary name of the agent.",
- type: "string",
- },
- description: {
- context: "description",
- description: "A short description of the agent.",
- type: "string",
- },
- relationships: {
- context: "ovn:hasRelationship",
- description: "The relationships the agent has or is with other agents.",
- type: "array",
- items: {
- anyOf: [{
- reverse: "has",
- }, {
- reverse: "is",
- }]
- $ref: "Relationship",
- },
- },
- },
-};
-module.exports.dependencies = {
- Relationship: require('./Relationship'),
-};
diff --git a/vocab/Group.js b/vocab/Group.js
@@ -1,50 +0,0 @@
-module.exports = {
- allOf: [{
- $ref: "Agent",
- }, {
- id: "Group",
- type: 'object',
- prefixes: {
- "": "http://schema.org/",
- "org": "http://www.w3.org/TR/vocab-org#",
- "ovn": "http://ovn.is/",
- },
- context: "org:Organization",
- description: "A collection of people and groups.",
- properties: {
- name: {
- description: "The primary name of the group.",
- },
- description: {
- description: "A short description of the group.",
- },
- relationships: {
- description: "The relationships the group has or is with other agents.",
- },
- members: {
- context: "member",
- description: "The members of the group.",
- type: "array",
- items: {
- $ref: "Agent",
- },
- get: function () {
- // from this Group's relationships
- return this.relationships
- // that have additionalType with name 'member',
- .filter(function (rel) {
- return rel.additionalType.name === "member"
- })
- // return object that is related (i.e. is member)
- .map(function (m) {
- return r.isRelated;
- })
- ;
- },
- },
- },
- }],
-};
-module.exports.dependencies = {
- Agent: require('./Agent'),
-};
diff --git a/vocab/Kind.js b/vocab/Kind.js
@@ -1,35 +0,0 @@
-module.exports = {
- id: "Kind",
- type: 'object',
- prefixes: {
- "": "http://schema.org/",
- "qudt": "http://qudt.org/1.1/schema/qudt",
- },
- context: "qudt:QuantityKind",
- description: "A kind is any observable property that can be measured and quantified numerically.",
- properties: {
- description: {
- description: "A description of the kind.",
- context: "qudt:description",
- type: "string",
- },
- abbreviation: {
- description: "An abbreviation of the kind.",
- context: "qudt:abbreviation",
- type: "string",
- },
- symbol: {
- description: "A symbol of the kind.",
- context: "qudt:symbol",
- type: "string",
- },
- generalization: {
- description: "The kind that this is generalized from.",
- context: "qudt:quantityKind",
- $ref: "Kind",
- },
- },
-};
-
-module.exports.dependencies = {
-}
diff --git a/vocab/Location.js b/vocab/Location.js
@@ -1,13 +0,0 @@
-module.exports = {
- id: "Location",
- type: 'object',
- prefixes: {
- "": "http://schema.org/",
- },
- description: "A location.",
- context: "Place",
- properties: {
- },
- dependencies: {
- },
-};
diff --git a/vocab/Person.js b/vocab/Person.js
@@ -1,75 +0,0 @@
-module.exports = {
- allOf: [{
- $ref: "Agent",
- }, {
- id: "Person",
- prefixes: {
- "": "http://schema.org/",
- "org": "http://www.w3.org/TR/vocab-org#",
- "foaf": "http://xmlns.com/foaf/0.1/",
- },
- context: "Person",
- description: "A person.",
- type: 'object',
- properties: {
- name: {
- description: "The person's name.",
- },
- description: {
- description: "A short bio of the person.",
- },
- handle: {
- context: "foaf:nick",
- description: "The person's online alias.",
- type: "string",
- },
- location: {
- context: "foaf:based_near",
- description: "The location(s) this person is based near.",
- type: "array",
- items: {
- $ref: "Location",
- },
- },
- image: {
- context: "image",
- description: "An avatar of the person.",
- type: "string",
- format: "uri",
- },
- url: {
- context: "url",
- description: "The person's website.",
- type: "string",
- format: "uri",
- },
- relationships: {
- description: "The relationships the person has or is with other agents.",
- },
- groups: {
- context: "memberOf",
- description: "The groups this person is a member of.",
- items: {
- $ref: "Group",
- },
- get: function () {
- // from this Person's relationships
- return this.relationships
- // that have additionalType with name 'member',
- .filter(function (rel) {
- return rel.additionalType.name === "member"
- })
- // return object that has related (i.e. has member)
- .map(function (m) {
- return r.hasRelated;
- })
- ;
- },
- },
- },
- }],
-};
-module.exports.dependencies = {
- Group: require('./Group'),
- Location: require('./Location'),
-};
diff --git a/vocab/Quantity.js b/vocab/Quantity.js
@@ -1,51 +0,0 @@
-module.exports = {
- id: "Quantity",
- type: 'object',
- prefixes: {
- "": "http://schema.org/",
- "qudt": "http://qudt.org/1.1/schema/qudt",
- },
- context: "qudt:QuantityValue",
- description: "A quantity expresses magnitude and kind and is given by the product of a numerical value n and a unit of measure U.",
- properties: {
- description: {
- description: "A description of the quantity.",
- context: "qudt:description",
- type: "string",
- },
- abbreviation: {
- description: "An abbreviation of the quantity.",
- context: "qudt:abbreviation",
- type: "string",
- },
- symbol: {
- description: "A symbol of the quantity.",
- context: "qudt:symbol",
- type: "string",
- },
- value: {
- description: "The magnitude of the quantity.",
- context: "qudt:numericValue",
- type: "number",
- },
- relativeStandardUncertainty: {
- description: "The relative standard uncertainty of the value.",
- context: "qudt:relativeStandardUncertainty",
- type: "number",
- },
- standardUncertainty: {
- description: "The standard uncertainty of the value.",
- context: "qudt:standardUncertainty",
- type: "number",
- },
- unit: {
- description: "The unit of the quantity.",
- context: "qudt:unit",
- $ref: "Unit",
- },
- },
-};
-
-module.exports.dependencies = {
- Unit: require('./Unit'),
-};
diff --git a/vocab/Relationship.js b/vocab/Relationship.js
@@ -1,50 +0,0 @@
-module.exports = {
- id: "Relationship",
- type: 'object',
- prefixes: {
- "": "http://schema.org/",
- "ovn": "http://vocab.ovn.is/",
- },
- description: "A relationship between multiple agents.",
- context: "org:Membership",
- properties: {
- relationshipType: {
- description: "The type of agent relationship.",
- context: "ovn:relationshipType",
- $ref: "RelationshipType",
- },
- description: {
- description: "A description of the agents' relations.",
- context: "description",
- type: "string",
- },
- is: {
- description: "The agent that is <relationship name>.",
- context: "ovn:isRelated",
- $ref: "Agent",
- },
- has: {
- description: "The agent that has <relationship name>.",
- context: "ovn:hasRelated",
- $ref: "Agent",
- },
- status: {
- description: "The status of the relationship.",
- context: "ovn:status",
- enum: [
- "active",
- "inactive",
- "potential",
- ],
- },
- symmetric: {
- description: "The symmetric relationship that corresponds to this relationship.",
- context: "ovn:symmetric",
- $ref: "Relationship",
- },
- },
- dependencies: {
- RelationshipType: require('./RelationshipType'),
- Agent: require('./Agent'),
- },
-};
diff --git a/vocab/RelationshipType.js b/vocab/RelationshipType.js
@@ -1,35 +0,0 @@
-module.exports = {
- id: "RelationshipType",
- type: 'object',
- prefixes: {
- "": "http://schema.org/",
- "ovn": "http://vocab.ovn.is/",
- },
- description: "A type of relationship between multiple agents.",
- context: "ovn:RelationshipType",
- properties: {
- name: {
- description: "The name of the type of agent relationship.",
- context: "name",
- enum: [
- "member",
- "child",
- "supplier",
- "customer",
- ],
- },
- description: {
- description: "A description of the type of agent relationship.",
- context: "description",
- type: "string",
- },
- label: {
- description: "A label of the type of agent relationship.",
- context: "skos:prefLabel",
- },
- pluralLabel: {
- description: "A plural label of the type of agent relationship.",
- context: "skos:altLabel",
- },
- },
-};
diff --git a/vocab/Role.js b/vocab/Role.js
@@ -1,49 +0,0 @@
-module.exports = {
- id: "Role",
- type: 'object',
- prefixes: {
- "": "http://schema.org/",
- "org": "http://www.w3.org/TR/vocab-org#",
- "skos": "http://www.w3.org/2004/02/skos/core#",
- },
- context: "org:Role",
- description: "A role a member plays within a group.",
- properties: {
- name: {
- context: "name",
- description: "The primary name of the role.",
- type: "string",
- },
- description: {
- context: "description",
- description: "A short description of the role.",
- type: "string",
- },
- related: {
- context: "skos:related",
- description: "Roles that are related to this role.",
- type: "array",
- items: {
- $ref: "Role",
- },
- },
- broader: {
- context: "skos:broader",
- description: "Roles that are broader than this role.",
- type: "array",
- items: {
- $ref: "Role",
- },
- },
- narrower: {
- context: "skos:narrower",
- description: "Roles that are narrower than this role.",
- type: "array",
- items: {
- $ref: "Role",
- },
- },
- },
- dependencies: {
- },
-};
diff --git a/vocab/Unit.js b/vocab/Unit.js
@@ -1,46 +0,0 @@
-module.exports = {
- id: "Unit",
- type: 'object',
- prefixes: {
- "": "http://schema.org/",
- "qudt": "http://qudt.org/1.1/schema/qudt",
- },
- context: "qudt:Unit",
- description: "An unit is a particular quantity of a given kind that has been chosen as a scale for measuring other quantities of the same kind.",
- properties: {
- description: {
- description: "A description of the unit.",
- context: "qudt:description",
- type: "string",
- },
- abbreviation: {
- description: "An abbreviation of the unit.",
- context: "qudt:abbreviation",
- type: "string",
- },
- symbol: {
- description: "An abbreviation of the unit.",
- context: "qudt:symbol",
- type: "string",
- },
- kind: {
- description: "The kind of the unit.",
- context: "qudt:quantityKind",
- $ref: "Kind",
- },
- conversionMultiplier: {
- description: "A multiplier for this unit in relation to the given kind.",
- context: "qudt:conversionMultiplier",
- type: "number",
- },
- conversionOffset: {
- description: "An offset for this unit in relation to the given kind.",
- context: "qudt:conversionOffset",
- type: "number",
- },
- },
-};
-
-module.exports.dependencies = {
- Kind: require('./Kind'),
-};