valueflows

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

commit 9fbbf6b31398e0fc349dfda88bbe3fa1a1e368c3
parent 22005b1d590dee56e6c2c9b61d9be0cf9cf05c4c
Author: Michael Williams <dinosaur@riseup.net>
Date:   Tue, 14 Oct 2014 16:23:47 -0700

move files around

Diffstat:
DAgent/index.js | 38--------------------------------------
DGroup/index.js | 54------------------------------------------------------
DPerson/index.js | 79-------------------------------------------------------------------------------
DRelationship/index.js | 40----------------------------------------
Avocab/Agent.js | 38++++++++++++++++++++++++++++++++++++++
Avocab/Group.js | 54++++++++++++++++++++++++++++++++++++++++++++++++++++++
RLocation/index.js -> vocab/Location.js | 0
Avocab/Person.js | 79+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Avocab/Relationship.js | 40++++++++++++++++++++++++++++++++++++++++
RRelationship/Type.js -> vocab/RelationshipType.js | 0
RRole/index.js -> vocab/Role.js | 0
11 files changed, 211 insertions(+), 211 deletions(-)

diff --git a/Agent/index.js b/Agent/index.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: "hasRelated", - }, { - reverse: "isRelated", - }] - $ref: "Relationship", - }, - }, - }, -}; -module.exports.dependencies = { - Relationship: require('../Relationship'), -}; diff --git a/Group/index.js b/Group/index.js @@ -1,54 +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: { - context: "name", - description: "The primary name of the group.", - type: "string", - }, - description: { - context: "description", - description: "A short description of the group.", - type: "string", - }, - 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/Person/index.js b/Person/index.js @@ -1,79 +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: { - context: "name", - description: "The person's name.", - type: "string", - }, - handle: { - context: "foaf:nick", - description: "The person's online alias.", - type: "string", - }, - bio: { - context: "description", - description: "A short bio of the person.", - type: "string", - }, - location: { - context: "foaf:based_near", - description: "The location(s) this person is based near.", - type: "array", - items: { - $ref: "Location", - }, - }, - avatar: { - context: "image", - description: "An avatar of the person.", - type: "string", - format: "uri", - }, - homepage: { - context: "url", - description: "The person's homepage.", - 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/Relationship/index.js b/Relationship/index.js @@ -1,40 +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: { - additionalType: { - description: "The type of agent relationship.", - context: "additionalType", - $ref: "RelationshipType", - }, - description: { - description: "A description of the agents' relations.", - context: "description", - type: "string", - }, - isRelated: { - description: "The agent that is <relationship name>", - context: "ovn:isRelated", - $ref: "Agent", - }, - hasRelated: { - description: "The agent that has <relationship name>", - context: "ovn:hasRelated", - $ref: "Agent", - }, - state: { - description: "The state of the relationship.", - enum: ["active", "inactive", "potential"], - }, - }, - dependencies: { - RelationshipType: require('./Type'), - Agent: require('../Agent'), - }, -}; diff --git a/vocab/Agent.js b/vocab/Agent.js @@ -0,0 +1,38 @@ +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: "hasRelated", + }, { + reverse: "isRelated", + }] + $ref: "Relationship", + }, + }, + }, +}; +module.exports.dependencies = { + Relationship: require('./Relationship'), +}; diff --git a/vocab/Group.js b/vocab/Group.js @@ -0,0 +1,54 @@ +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: { + context: "name", + description: "The primary name of the group.", + type: "string", + }, + description: { + context: "description", + description: "A short description of the group.", + type: "string", + }, + 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/Location/index.js b/vocab/Location.js diff --git a/vocab/Person.js b/vocab/Person.js @@ -0,0 +1,79 @@ +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: { + context: "name", + description: "The person's name.", + type: "string", + }, + handle: { + context: "foaf:nick", + description: "The person's online alias.", + type: "string", + }, + bio: { + context: "description", + description: "A short bio of the person.", + type: "string", + }, + location: { + context: "foaf:based_near", + description: "The location(s) this person is based near.", + type: "array", + items: { + $ref: "Location", + }, + }, + avatar: { + context: "image", + description: "An avatar of the person.", + type: "string", + format: "uri", + }, + homepage: { + context: "url", + description: "The person's homepage.", + 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/Relationship.js b/vocab/Relationship.js @@ -0,0 +1,40 @@ +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: { + additionalType: { + description: "The type of agent relationship.", + context: "additionalType", + $ref: "RelationshipType", + }, + description: { + description: "A description of the agents' relations.", + context: "description", + type: "string", + }, + isRelated: { + description: "The agent that is <relationship name>", + context: "ovn:isRelated", + $ref: "Agent", + }, + hasRelated: { + description: "The agent that has <relationship name>", + context: "ovn:hasRelated", + $ref: "Agent", + }, + state: { + description: "The state of the relationship.", + enum: ["active", "inactive", "potential"], + }, + }, + dependencies: { + RelationshipType: require('./RelationshipType'), + Agent: require('./Agent'), + }, +}; diff --git a/Relationship/Type.js b/vocab/RelationshipType.js diff --git a/Role/index.js b/vocab/Role.js