Skip to content

Commit

Permalink
Add Contact information data type (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenejac committed Oct 17, 2023
1 parent 22faa28 commit 3bda131
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ for instance the [DOI Identifier](./entities/DOI_Identifier.md).
* [Postal Address](./datatypes/Postal_Address.md)
* [Simple Postal Address](./datatypes/Simple_Postal_Address.md)
* [Structured Postal Address](./datatypes/Structured_Postal_Address.md)
* [Contact Information](./datatypes/Contact_Information.md)
* [Language](./datatypes/Language.md), [Country](./datatypes/Country.md), [Script](./datatypes/Script.md)
* [Language Tag](./datatypes/Language_Tag.md)
* [Monetary Amount](./datatypes/Monetary_Amount.md)
Expand Down
14 changes: 14 additions & 0 deletions datatypes/Contact_Information.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Contact Information

## Definition

The contact information assigned to an [Agent](../entities/Organisation_Unit.md). The contact information might be
Postal address, Visiting address, Email address, Telephone number, Website URL

## Components

- postalAddress : [Postal Address](../datatypes/Postal_Address.md)
- visitingAddress : [Postal Address](../datatypes/Postal_Address.md)
- phone : [String](../datatypes/String.md)
- emailAddress : [URI](../datatypes/URI.md)
- web site URL : [URI](../datatypes/URI.md)
23 changes: 10 additions & 13 deletions diagrams/core.puml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@
"Person" ..> "name" "Person_Name"
!endsub

!startsub Postal_Address
"Organisation_Unit" ..> "0..1" "Postal_Address" : address >
!endsub

!startsub Group_or_Organisation_Unit
class "Group_or_Organisation_Unit" #ffffff {
}
Expand All @@ -110,9 +106,7 @@
class "Organisation_Unit" #ffffff {
name : Multilingual_String
acronym : String
address : Postal_Address
webSiteURL : URI
email : URI
contacts : List<Contact_Information>
}
!endsub

Expand Down Expand Up @@ -335,6 +329,14 @@

"Postal_Address" <|-d- "Simple_Postal_Address"
"Postal_Address" <|-d- "Structured_Postal_Address"

datatype("Contact_Information") {
postalAddress : Postal_Address
visitingAddress : Postal_Address
phone : String
emailAddress : URI
webSiteURL : URI
}
!endsub

!startsub Country
Expand All @@ -352,8 +354,7 @@
class "Affiliation_Statement" #ffffff {
displayAffiliation_Statement : String
displayPersonName : String
address : Postal_Address
contacts : List<URI>
contacts : List<Contact_Information>
}
!endsub

Expand Down Expand Up @@ -469,10 +470,6 @@
"Contribution_to_Evaluation_Outcome" --> "Evaluation_Outcome"
!endsub

!startsub Postal_Address
"Affiliation_Statement" o..> "Postal_Address" : address >
!endsub

!startsub Affiliation_Statement
"Activity" "0..*" o-- "0..*" "Affiliation_Statement" : affilations >
!endsub
Expand Down
4 changes: 1 addition & 3 deletions entities/Affiliation_Statement.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ display affiliation: [String](../datatypes/String.md) -- the raw string form of

display person name: [String](../datatypes/String.md) -- the raw string form of the name of the person as found e.g. in scholarly publications; more structured statements make use of the *person* relationship below

address: [Postal Address](../datatypes/Postal_Address.md)

contacts: List<[URI](../datatypes/URI.md)>
contacts: List<[Contact Information](../datatypes/Contact_Information.md)>


## Relationships
Expand Down
2 changes: 2 additions & 0 deletions entities/Agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ keywords: List<[Multilingual String](../datatypes/Multilingual_String.md)>

lifetime : [Date Range](../datatypes/Date_Range.md)

contacts : List<[Contact_Information](../datatypes/Contact_Information.md)>

## Relationships
<a name="rel__activity">An Agent can *[be the actor](../entities/Activity.md#user-content-rel__actor)* of any number of [Activities](../entities/Activity.md).</a>

Expand Down
6 changes: 0 additions & 6 deletions entities/Group.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ name: [Multilingual String](../datatypes/Multilingual_String.md)

acronym: [String](../datatypes/String.md)

address: [Postal Address](../datatypes/Postal_Address.md)

web site URL: [URI](../datatypes/URI.md)

email: [URI](../datatypes/URI.md)

## Relationships

Those of [Agent](../entities/Agent.md#relationships)
Expand Down
6 changes: 0 additions & 6 deletions entities/Organisation_Unit.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ name: [Multilingual String](../datatypes/Multilingual_String.md)

acronym: [String](../datatypes/String.md)

address: [Postal Address](../datatypes/Postal_Address.md)

web site URL: [URI](../datatypes/URI.md)

email: [URI](../datatypes/URI.md)

## Relationships

Those of [Agent](../entities/Agent.md#relationships)
Expand Down

0 comments on commit 3bda131

Please sign in to comment.