agent.yaml (2242B)
1 2 # Example: Agents and Agent Relationships 3 4 '@context': 5 - https://git.io/vf-examples-jsonld-context 6 - alice: https://alice.example/ 7 bob: https://bob.example/ 8 fablab: https://fablab.example/ 9 coop: https://coop.example/ 10 11 '@id': rgh:valueflows/valueflows/master/examples/agent.yaml 12 '@graph': 13 14 # Agents 15 16 - '@id': https://alice.example/ 17 '@type': foaf:Person 18 name: Alice 19 image: https://alice.example/avatar.png 20 primaryLocation: https://somelocation.example 21 skos:note: Alice is a mechanical engineer who likes to work in the fablab. 22 23 - '@id': https://bob.example/ 24 '@type': foaf:Person 25 name: Bob 26 27 - '@id': https://fablab.example/ 28 '@type': org:Organization 29 name: Driftless Fablab 30 31 - '@id': https://coop.example/ 32 '@type': org:Organization 33 name: Community Tool Lending Coop 34 35 # Roles 36 37 - '@id': fablab:52f0e212-3c4f-4d27-b345-5e964c135824 38 '@type': AgentRelationshipRole 39 roleLabel: is member of 40 inverseRoleLabel: has member 41 skos:note: Both persons and organizations can be members of this fablab. 42 43 - '@id': fablab:02b39a30-3e04-4305-9656-7f261aa63c84 44 '@type': AgentRelationshipRole 45 roleLabel: is supplier of 46 inverseRoleLabel: is customer of 47 48 - '@id': fablab:a25500e0-0106-43cd-8cbb-e74779488835 49 '@type': AgentRelationshipRole 50 roleLabel: mentors 51 inverseRoleLabel: has mentor 52 53 # Relationships 54 55 - '@id': fablab:6b97b1be-8e07-44ac-82e5-214f1b2aaf33 56 '@type': AgentRelationship 57 subject: https://alice.example/ 58 relationship: fablab:52f0e212-3c4f-4d27-b345-5e964c135824 # member 59 object: https://fablab.example/ 60 61 - '@id': fablab:a8236bbb-81e0-422d-9861-56d2417db0fb 62 '@type': AgentRelationship 63 subject: https://coop.example/ 64 relationship: fablab:02b39a30-3e04-4305-9656-7f261aa63c84 # trading partner 65 object: https://fablab.example/ 66 skos:note: The coop is a supplier of tools for the fablab. 67 68 - '@id': fablab:6f438393-7f87-4914-806c-e23a4fd15e89 69 '@type': AgentRelationship 70 subject: https://alice.example/ 71 relationship: fablab:a25500e0-0106-43cd-8cbb-e74779488835 # mentor 72 object: https://bob.example/ 73 inScopeOf: https://fablab.example/ 74 skos:note: Alice mentors Bob at the fablab.