valueflows

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

commit 056761752d18585528fb025950fcca7f0270e713
parent ab2138f524488c603d6d70cf6ac2037a04080896
Author: Lynn Foster <foster.j.lynn@gmail.com>
Date:   Wed, 23 Jan 2019 16:44:52 -0600

Simple examples: agent and relationships (#411)



Diffstat:
Aexamples/agent-examples.yaml | 75+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+), 0 deletions(-)

diff --git a/examples/agent-examples.yaml b/examples/agent-examples.yaml @@ -0,0 +1,75 @@ +# Example: Agents and Agent Relationships + +'@context': + - https://git.io/vf-examples-jsonld-context + - alice: https://alice.example/ + bob: https://bob.example/ + fablab: https://fablab.example/ + coop: https://coop.example/ + +'@graph': + + # Agents + + - '@id': alice: + '@type': foaf:Person + name: 'Alice' + image: 'https://alice.example/avatar.png' + primaryLocation: 'https://somelocation.example' + skos:note: 'Alice is a mechanical engineer who likes to work in the fablab.' + + - '@id': bob: + '@type': foaf:Person + name: 'Bob' + + - '@id': fablab: + '@type': org:Organization + name: 'Driftless Fablab' + + - '@id': coop: + '@type': org:Organization + name: 'Community Tool Lending Coop' + + # Roles + + - '@id': fablab:52f0e212-3c4f-4d27-b345-5e964c135824 + '@type': AgentRelationshipRole + name: 'member' + rdfs:label: 'is member of' + inverseLabel: 'has member' + skos:note: 'Both persons and organizations can be members of this fablab.' + + - '@id': fablab:02b39a30-3e04-4305-9656-7f261aa63c84 + '@type': AgentRelationshipRole + name: 'trading partner' + rdfs:label: 'is supplier of' + inverseLabel: 'is customer of' + + - '@id': fablab:a25500e0-0106-43cd-8cbb-e74779488835 + '@type': AgentRelationshipRole + name: 'mentor' + rdfs:label: 'mentors' + inverseLabel: 'has mentor' + + # Relationships + + - '@id': fablab:6b97b1be-8e07-44ac-82e5-214f1b2aaf33 + '@type': AgentRelationship + subject: alice: + relationship: fablab:52f0e212-3c4f-4d27-b345-5e964c135824 # member + object: fablab: + + - '@id': fablab:a8236bbb-81e0-422d-9861-56d2417db0fb + '@type': AgentRelationship + subject: coop: + relationship: fablab:02b39a30-3e04-4305-9656-7f261aa63c84 # trading partner + object: fablab: + skos:note: 'The coop is a supplier of tools for the fablab.' + + - '@id': fablab:6f438393-7f87-4914-806c-e23a4fd15e89 + '@type': AgentRelationship + subject: alice: + relationship: fablab:a25500e0-0106-43cd-8cbb-e74779488835 # mentor + object: bob: + inScopeOf: fablab: + skos:note: 'Alice mentors Bob at the fablab.'