valueflows

valueflows docs
git clone https://s.sonu.ch/~srfsh/valueflows.git
Log | Files | Refs | README

commit b81248004271c0822d99514b9c0f2fd26f9db8d6
parent 56cf41de231ab38e4b3d0e95e9b6735979a67b90
Author: Michael Williams <dinosaur@riseup.net>
Date:   Wed, 12 Nov 2014 13:27:52 -0800

Merge pull request #4 from openvocab/relationship

update Relationship and RelationshipType
Diffstat:
Mvocab/Relationship.js | 24+++++++++++++++++-------
Mvocab/RelationshipType.js | 23++++++++++++++++-------
2 files changed, 33 insertions(+), 14 deletions(-)

diff --git a/vocab/Relationship.js b/vocab/Relationship.js @@ -8,9 +8,9 @@ module.exports = { description: "A relationship between multiple agents.", context: "org:Membership", properties: { - additionalType: { + relationshipType: { description: "The type of agent relationship.", - context: "additionalType", + context: "ovn:relationshipType", $ref: "RelationshipType", }, description: { @@ -19,18 +19,28 @@ module.exports = { type: "string", }, is: { - description: "The agent that is <relationship name>", + description: "The agent that is <relationship name>.", context: "ovn:isRelated", $ref: "Agent", }, has: { - description: "The agent that has <relationship name>", + description: "The agent that has <relationship name>.", context: "ovn:hasRelated", $ref: "Agent", }, - state: { - description: "The state of the relationship.", - enum: ["active", "inactive", "potential"], + 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: { diff --git a/vocab/RelationshipType.js b/vocab/RelationshipType.js @@ -5,22 +5,31 @@ module.exports = { "": "http://schema.org/", "ovn": "http://vocab.ovn.is/", }, - description: "A relationship between multiple agents.", - context: "org:Membership", + description: "A type of relationship between multiple agents.", + context: "ovn:RelationshipType", properties: { - "@id": { - description: "The identifier for the relationship type", - type: "string", - }, name: { description: "The name of the type of agent relationship.", context: "name", - $ref: "RelationshipType", + 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", + }, }, };