valueflows

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

commit 1108030c66528cf46db1bccef13ba867892ff449
parent cd4e27877db91b0e0b54dad6d93c7b3d7e8d2746
Author: Lynn Foster <foster.j.lynn@gmail.com>
Date:   Fri, 26 Apr 2019 16:43:24 -0500

recreate agreement relationships (#500)



Diffstat:
Aexamples/exch-agreement.yaml | 68++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mrelease-doc-in-process/all_vf.TTL | 26+++++++++++++-------------
2 files changed, 81 insertions(+), 13 deletions(-)

diff --git a/examples/exch-agreement.yaml b/examples/exch-agreement.yaml @@ -0,0 +1,68 @@ +# Example: Simple exchange agreements + +'@context': + - https://git.io/vf-examples-jsonld-context + - alice: https://alice.example/ + bob: https://bob.example/ + carol: https://carol.example/ + store: https://store.example/ + +'@id': rgh:valueflows/valueflows/master/examples/exch-agreement.yaml +'@graph': + + # Exchange agreement with commitments + + - '@id': alice:57f1c1d0-432e-4bfa-9d32-002b8955a708 + '@type': Agreement + skos:note: Alice commits to giving Bob 50 kg of apples in exchange for 10 liters of apple cider. + + - '@id': alice:2342d456-5d6f-46d5-a7ed-3ac7bfd5a86c + '@type': Commitment + clauseOf: alice:57f1c1d0-432e-4bfa-9d32-002b8955a708 + action: give + provider: https://alice.example/ + receiver: https://bob.example/ + resourceClassifiedAs: https://www.wikidata.org/wiki/Q89 # apples + quantifiedAs: + qudt:unit: unit: Kilogram + qudt:numericValue: 50 + + - '@id': bob:fd399b37-0740-4a68-a184-1e655021ca21 + '@type': Commitment + clauseOf: alice:57f1c1d0-432e-4bfa-9d32-002b8955a708 + action: give + provider: https://bob.example/ + receiver: https://alice.example/ + resourceClassifiedAs: https://www.wikidata.org/wiki/Q5977438 # soft apple cider + quantifiedAs: + qudt:unit: unit: Liter + qudt:numericValue: 10 + + # Exchange without commitments + + - '@id': store:ac9ec98d-db80-44dc-97be-7aa149b2fe5d + '@type': Agreement + skos:note: Carol purchased a new bucket at the hardware store and paid 5 dollars for it. + + - '@id': store:a8356625-bf64-4c16-9099-28aa1b718c4b + '@type': EconomicEvent + realizationOf: store:ac9ec98d-db80-44dc-97be-7aa149b2fe5d + action: give + provider: https://store.example/ + receiver: https://carol.example/ + resourceClassifiedAs: https://www.wikidata.org/wiki/Q47107 # bucket + quantifiedAs: + qudt:unit: unit: Number + qudt:numericValue: 1 + + - '@id': store:a8356625-bf64-4c16-9099-28aa1b718c4b + '@type': EconomicEvent + realizationOf: store:ac9ec98d-db80-44dc-97be-7aa149b2fe5d + action: give + provider: https://carol.example/ + receiver: https://store.example/ + resourceClassifiedAs: https://www.wikidata.org/wiki/Q4917 # US dollar + resourceInventoriedAs: carol:e56fd654-7b94-4d96-8e60-de39e08329a7 # Carol's bank account + quantifiedAs: + qudt:unit: unit: Number + qudt:numericValue: 5 diff --git a/release-doc-in-process/all_vf.TTL b/release-doc-in-process/all_vf.TTL @@ -70,19 +70,7 @@ vf:Satisfaction a owl:Class ; vf:Agreement a owl:Class ; rdfs:label "vf:Agreement" ; vs:term_status "unstable" ; - rdfs:comment "Any type of agreement among economic agents, that can be referenced in VF to clarify the economic activity. This is a placeholder pending investigating other vocabularies." . - -vf:ExchangeAgreement a owl:Class ; - rdfs:label "vf:ExchangeAgreement" ; - rdfs:subClassOf vf:Agreement ; - vs:term_status "unstable" ; - rdfs:comment "An agreement to exchange something with another agent(s), containing commitments towards that end." . - -vf:DistributionAgreement a owl:Class ; - rdfs:label "vf:DistributionAgreement" ; - rdfs:subClassOf vf:Agreement ; - vs:term_status "unstable" ; - rdfs:comment "An agreement to distribute some resource in exchange for inputs or outputs created by other agents." . + rdfs:comment "Any type of agreement among economic agents." . # OBSERVATION CLASSES @@ -517,7 +505,19 @@ vf:resourceConformsTo vs:term_status "unstable" ; rdfs:comment "The primary resource knowledge specification or definition of an existing or potential resource." . +vf:clauseOf a owl:ObjectProperty ; + rdfs:label "clause of" ; + rdfs:domain vf:Commitment ; + rdfs:range vf:Agreement ; + vs:term_status "unstable" ; + rdfs:comment "This commitment is part of the agreement, which could not exist without it." . +vf:realizationOf a owl:ObjectProperty ; + rdfs:label "realization of" ; + rdfs:domain vf:EconomicEvent ; + rdfs:range vf:Agreement ; + vs:term_status "unstable" ; + rdfs:comment "This economic event occurs as part of this agreement." . # ################################ agent relationship verbs