Skip to content

Commit 54d34c0

Browse files
authored
Merge pull request #404 from semanticarts/evolve/issue133_giver_getter
Refactored giver, getter and hasParty. Fixes #133
2 parents 7f981f8 + 66a569a commit 54d34c0

File tree

4 files changed

+75
-24
lines changed

4 files changed

+75
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.~vsd*
22
*_webDownload/
33
.DS_Store
4+
*.orig

docs/ReleaseNotes.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ gist Release Notes
44
Release X.x.x [UPDATE AT RELEASE TIME]
55
-----
66

7+
### Minor Updates
8+
9+
**Refactored `hasParty`, `giver` and `getter`**
10+
Issue [#133](https://github.com/semanticarts/gist/issues/133)
11+
12+
- `giver` and `getter`
13+
- Renamed to `hasGiver` and `hasGetter`
14+
- The newly named versions are no longer subproperties of `hasParty`
15+
- Deprecated
16+
- New property: `hasParticipant`
17+
- No domain or range
18+
- Has subproperties: `hasGiver`, `hasGetter`, `hasParty`, `fromAgent` and `toAgent`
19+
- Added a `skos:scopeNote` to `fromAgent`
20+
- Added a `skos:example` to `hasParty`
21+
- Updated `skos:definition`s for `toAgent` and `fromAgent`
22+
723
### Patch updates
824

925
- Updated gist style guide for newly-defined conventions. Issue [#421](https://github.com/semanticarts/gist/issues/421).

gistCore.ttl

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ gist:Commitment
373373
]
374374
[
375375
a owl:Restriction ;
376-
owl:onProperty gist:giver ;
376+
owl:onProperty gist:hasGiver ;
377377
owl:someValuesFrom [
378378
a owl:Class ;
379379
owl:unionOf (
@@ -499,7 +499,7 @@ gist:ContingentObligation
499499
gist:Commitment
500500
[
501501
a owl:Restriction ;
502-
owl:onProperty gist:giver ;
502+
owl:onProperty gist:hasGiver ;
503503
owl:someValuesFrom [
504504
a owl:Class ;
505505
owl:unionOf (
@@ -1654,7 +1654,7 @@ gist:Obligation
16541654
gist:Commitment
16551655
[
16561656
a owl:Restriction ;
1657-
owl:onProperty gist:getter ;
1657+
owl:onProperty gist:hasGetter ;
16581658
owl:someValuesFrom [
16591659
a owl:Class ;
16601660
owl:unionOf (
@@ -1665,7 +1665,7 @@ gist:Obligation
16651665
]
16661666
[
16671667
a owl:Restriction ;
1668-
owl:onProperty gist:giver ;
1668+
owl:onProperty gist:hasGiver ;
16691669
owl:someValuesFrom [
16701670
a owl:Class ;
16711671
owl:unionOf (
@@ -1689,7 +1689,7 @@ gist:Offer
16891689
gist:ContingentObligation
16901690
[
16911691
a owl:Restriction ;
1692-
owl:onProperty gist:giver ;
1692+
owl:onProperty gist:hasGiver ;
16931693
owl:someValuesFrom [
16941694
a owl:Class ;
16951695
owl:unionOf (
@@ -3050,16 +3050,18 @@ gist:expressedIn
30503050

30513051
gist:fromAgent
30523052
a owl:ObjectProperty ;
3053+
rdfs:subPropertyOf gist:hasParticipant ;
30533054
rdfs:range [
30543055
a owl:Class ;
30553056
owl:unionOf (
30563057
gist:Organization
30573058
gist:Person
30583059
) ;
30593060
] ;
3060-
skos:definition "The source of a message or shipment"^^xsd:string ;
3061+
skos:definition "The party that is the source of something (e.g. a message, shipment, etc.)"^^xsd:string ;
30613062
skos:prefLabel "from agent"^^xsd:string ;
3062-
.
3063+
skos:scopeNote 'This is not the inverse of toAgent. A message can be to someone. If we made it the inverse the person would be "from" the message'^^xsd:string ;
3064+
.
30633065

30643066
gist:fromPlace
30653067
a owl:ObjectProperty ;
@@ -3107,21 +3109,6 @@ gist:geoOccupies
31073109
skos:prefLabel "geo occupies"^^xsd:string ;
31083110
.
31093111

3110-
gist:getter
3111-
a owl:ObjectProperty ;
3112-
rdfs:subPropertyOf gist:hasParty ;
3113-
owl:propertyDisjointWith gist:giver ;
3114-
skos:definition "The recipient"^^xsd:string ;
3115-
skos:prefLabel "getter"^^xsd:string ;
3116-
.
3117-
3118-
gist:giver
3119-
a owl:ObjectProperty ;
3120-
rdfs:subPropertyOf gist:hasParty ;
3121-
skos:definition "The active party, the one with the obligation or the one initiating the transfer"^^xsd:string ;
3122-
skos:prefLabel "giver"^^xsd:string ;
3123-
.
3124-
31253112
gist:governedBy
31263113
a owl:ObjectProperty ;
31273114
owl:inverseOf gist:governs ;
@@ -3243,6 +3230,21 @@ gist:hasFromNode
32433230
skos:prefLabel "has from node"^^xsd:string ;
32443231
.
32453232

3233+
gist:hasGetter
3234+
a owl:ObjectProperty ;
3235+
rdfs:subPropertyOf gist:hasParticipant ;
3236+
owl:propertyDisjointWith gist:hasGiver ;
3237+
skos:definition "The recipient"^^xsd:string ;
3238+
skos:prefLabel "Has Getter"^^xsd:string ;
3239+
.
3240+
3241+
gist:hasGiver
3242+
a owl:ObjectProperty ;
3243+
rdfs:subPropertyOf gist:hasParticipant ;
3244+
skos:definition "The active party, the one with the obligation or the one initiating the transfer"^^xsd:string ;
3245+
skos:prefLabel "Has Giver"^^xsd:string ;
3246+
.
3247+
32463248
gist:hasGoal
32473249
a owl:ObjectProperty ;
32483250
skos:definition "The reason for doing something"^^xsd:string ;
@@ -3309,16 +3311,29 @@ gist:hasPart
33093311
skos:prefLabel "has part"^^xsd:string ;
33103312
.
33113313

3314+
gist:hasParticipant
3315+
a owl:ObjectProperty ;
3316+
skos:definition "Relates something (e.g. an agreement) to things that play a role, or take part or are otherwise involved in some way."^^xsd:string ;
3317+
skos:example "An event of transferring money has a participating account that receives the money."^^xsd:string ;
3318+
skos:prefLabel "Has Participant"^^xsd:string ;
3319+
skos:scopeNote
3320+
"The thing with participants will often be an agreement, event or obligation."^^xsd:string ,
3321+
"This is intended as an abstract property. Only its subproperties will be directly used."^^xsd:string
3322+
;
3323+
.
3324+
33123325
gist:hasParty
33133326
a owl:ObjectProperty ;
3327+
rdfs:subPropertyOf gist:hasParticipant ;
33143328
rdfs:range [
33153329
a owl:Class ;
33163330
owl:unionOf (
33173331
gist:Organization
33183332
gist:Person
33193333
) ;
33203334
] ;
3321-
skos:definition "The people or organizations participating in an agreement or obligation"^^xsd:string ;
3335+
skos:definition "The people or organizations participating in an event, agreement or obligation"^^xsd:string ;
3336+
skos:example "For loan agreements, one might create hasLender and hasBorrower as subproperties of hasParty."^^xsd:string ;
33223337
skos:prefLabel "has party"^^xsd:string ;
33233338
.
33243339

@@ -3776,14 +3791,15 @@ gist:timeZoneStandardUsed
37763791

37773792
gist:toAgent
37783793
a owl:ObjectProperty ;
3794+
rdfs:subPropertyOf gist:hasParticipant ;
37793795
rdfs:range [
37803796
a owl:Class ;
37813797
owl:unionOf (
37823798
gist:Organization
37833799
gist:Person
37843800
) ;
37853801
] ;
3786-
skos:definition "Indicates to whom (e.g. a message or shipment) is destined for."^^xsd:string ;
3802+
skos:definition "The party that is the recipient of something (e.g. a message, shipment, etc.)"^^xsd:string ;
37873803
skos:prefLabel "to agent"^^xsd:string ;
37883804
skos:scopeNote 'This is not the inverse of fromAgent. A message can be from someone. If we made it the inverse the person would be "to" the message'^^xsd:string ;
37893805
.

gistDeprecated.ttl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@prefix owl: <http://www.w3.org/2002/07/owl#> .
66
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
77
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
8+
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
89
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
910
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1011

@@ -156,6 +157,23 @@ gist:geoDirectlyContains
156157
owl:deprecated "true"^^xsd:boolean ;
157158
.
158159

160+
gist:getter
161+
a owl:ObjectProperty ;
162+
rdfs:subPropertyOf gist:hasParticipant ;
163+
owl:deprecated "true"^^xsd:boolean ;
164+
owl:propertyDisjointWith gist:giver ;
165+
<http://www.w3.org/2004/02/skos/core#definition> "The recipient"^^xsd:string ;
166+
<http://www.w3.org/2004/02/skos/core#prefLabel> "Getter"^^xsd:string ;
167+
.
168+
169+
gist:giver
170+
a owl:ObjectProperty ;
171+
rdfs:subPropertyOf gist:hasParticipant ;
172+
owl:deprecated "true"^^xsd:boolean ;
173+
<http://www.w3.org/2004/02/skos/core#definition> "The active party, the one with the obligation or the one initiating the transfer"^^xsd:string ;
174+
<http://www.w3.org/2004/02/skos/core#prefLabel> "Giver"^^xsd:string ;
175+
.
176+
159177
gist:hasA
160178
a
161179
owl:InverseFunctionalProperty ,

0 commit comments

Comments
 (0)