Skip to content

Commit

Permalink
Merge branch 'main' into tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jdvorak001 committed Oct 6, 2023
2 parents bd9d944 + 5ff09ae commit 4fe1307
Show file tree
Hide file tree
Showing 12 changed files with 231 additions and 165 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ for instance the [ORCID Identifier](./entities/ORCID_Identifier.md).
* [Wikidata ID Type](./datatypes/Wikidata_ID.md)
* [Person Name](./datatypes/Person_Name.md)
* [Postal Address](./datatypes/Postal_Address.md)
* [Simple Postal Address](./datatypes/Simple_Postal_Address.md)
* [Structured Postal Address](./datatypes/Structured_Postal_Address.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
7 changes: 2 additions & 5 deletions datatypes/Postal_Address.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ The location assigned to an [Organisation Unit](../entities/Organisation_Unit.md

## Components

- street : [Multilingual String](../datatypes/Multilingual_String.md)
- city : [Multilingual String](../datatypes/Multilingual_String.md)
- ZIP code: [Multilingual String](../datatypes/Multilingual_String.md)
- stateOrProvince: [Multilingual String](../datatypes/Multilingual_String.md)
- country : [Country](../datatypes/Country.md)

## Notes

The main intended usage of multiple strings for different languages is to allow the representation of the addresses in different scripts, allowing for transliterations.
Please note there are two specializations of this data type providing more or less structured details about a postal
address [Simple Postal Address](../datatypes/Simple_Postal_Address.md) and [Structured Postal Address](../datatypes/Structured_Postal_Address.md)

13 changes: 13 additions & 0 deletions datatypes/Simple_Postal_Address.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Simple Postal Address

This data type is used when a string representation of postal address is used.

## Components

- address : [Multilingual String](../datatypes/Multilingual_String.md)

## Notes

The main intended usage of multiple strings for different languages is to allow the representation of the addresses in different scripts, allowing for transliterations.
This is a subtype of [Postal Address](../datatypes/Postal_Address.md), and therefore it also includes inherited country component.

16 changes: 16 additions & 0 deletions datatypes/Structured_Postal_Address.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Structured Postal Address

This data type is used when a structured representation of postal address is used.

## Components

- street : [Multilingual String](../datatypes/Multilingual_String.md)
- city : [Multilingual String](../datatypes/Multilingual_String.md)
- ZIP code: [Multilingual String](../datatypes/Multilingual_String.md)
- stateOrProvince: [Multilingual String](../datatypes/Multilingual_String.md)

## Notes

The main intended usage of multiple strings for different languages is to allow the representation of the addresses in different scripts, allowing for transliterations.
This is a subtype of [Postal Address](../datatypes/Postal_Address.md), and therefore it also includes inherited country component.

18 changes: 9 additions & 9 deletions diagrams/activity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 22 additions & 22 deletions diagrams/application.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions diagrams/contributionToDocument.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion diagrams/core.puml
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,21 @@

!startsub Postal_Address
datatype("Postal_Address") {
country : Country
}

datatype("Simple_Postal_Address") {
address : Multilingual_String
}

datatype("Structured_Postal_Address") {
street : Multilingual_String
city : Multilingual_String
zipCode : Multilingual_String
country : Country
}

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

!startsub Country
Expand Down
248 changes: 136 additions & 112 deletions diagrams/core.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions diagrams/membership.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions guidelines/DESCRIBING_DATATYPES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ URIs for the datatypes (used in interchange formats) should be constructed using
## Sections

1. **Definition**: The scope of the datatype and its meaning. (The heading can be ommited of simple types.)
2. **Notes**: An additional description to communicate the purpose of the datatype.
3. **Components**: The list of fields the datatype is composed of. Similar to attributes for [entities](DESCRIBING_ENTITIES.md#sections).
2. **Specialization of**: The link to the super datatype (the datatype this type extends)
3. **Notes**: An additional description to communicate the purpose of the datatype.
4. **Components**: The list of fields the datatype is composed of. Similar to attributes for [entities](DESCRIBING_ENTITIES.md#sections).
---
4. **Matches**: Describe any external datatypes this datatype matches.
5. **References**: References to external resources in case these are referenced.
5. **Matches**: Describe any external datatypes this datatype matches.
6. **References**: References to external resources in case these are referenced.

A heading is left out if the section is empty.

Expand Down
3 changes: 3 additions & 0 deletions guidelines/TEMPLATE_DATATYPE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ FIXME
The scope of the datatype and its meaning.<sup>[1](#fn1)</sup>
(The heading can be ommited of simple types.)

## Specialization of
[XXX](../datatypes/XXX.md)

## Notes
An additional description to communicate the purpose of the datatype.

Expand Down

0 comments on commit 4fe1307

Please sign in to comment.