Data Structure: Difference between revisions

From Semantic Name Authority Repository Cymru
Jump to navigation Jump to search
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 13: Line 13:
! Title !! ID !! Data type !! Description !! Requirement
! Title !! ID !! Data type !! Description !! Requirement
|-
|-
| Instance of || [[Property:P7|P7]] || Item  || should be used with [[Item:Q947|Human]] for people || Always
| Instance of || [[Property:P7|P7]] || Item  || should be used with [[Item:Q947|Human]] for people || style="background:{{{color|lightgreen}}}" | Always
|-
|-
| Sex or gender|| [[Property:P13|P13]] || Item  || use [[Item:Q33|male]],[[Item:Q34|female]],[[Item:Q32|non-binary]],[[Item:Q35|intersex]],[[Item:Q35|intersex]],[[Item:Q36|trans woman]] or [[Item:Q37|trans man]] || Always
| Sex or gender|| [[Property:P13|P13]] || Item  || use [[Item:Q33|male]],[[Item:Q34|female]],[[Item:Q32|non-binary]],[[Item:Q35|intersex]],[[Item:Q35|intersex]],[[Item:Q36|trans woman]] or [[Item:Q37|trans man]] || style="background:{{{color|lightgreen}}}" | Always
|-
|-
| Give Name(s) || [[Property:P15|P15]]|| Item || find or create an item for the subjects given name(s) || Always
| Give Name(s) || [[Property:P15|P15]]|| Item || find or create an item for the subjects given name(s) || style="background:{{{color|lightgreen}}}" | Always
|-
|-
| Family Name || [[Property:P16|P16]] || Item|| find or create an item for the subjects family name || Always
| Family Name || [[Property:P16|P16]] || Item|| find or create an item for the subjects family name || style="background:{{{color|lightgreen}}}" | Always
|-
|-
| Nationality || [[Property:P14|P14]] || Item || use any [[Special:WhatLinksHere/Item:Q948|sovereign country or nation]] (including Wales!) || Preferred  
| Nationality || [[Property:P14|P14]] || Item || use any [[Special:WhatLinksHere/Item:Q948|sovereign country or nation]] (including Wales!) || style="background:{{{color|lightblue}}}" | Preferred  
|-
|-
| Occupation || [[Property:P25|P25]] || Item || use [[Special:WhatLinksHere/Item:Q63|occupations]]. Choose the most specific (e.g. for Welsh Bards use Bard, not Poet or Writer) || Preferred
| Occupation || [[Property:P25|P25]] || Item || use [[Special:WhatLinksHere/Item:Q63|occupations]]. Choose the most specific (e.g. for Welsh Bards use Bard, not Poet or Writer) ||style="background:{{{color|lightblue}}}" | Preferred
|-
|-
| Educated at || [[Property:P23|P23]] || Item || use any [[Special:WhatLinksHere/Item:Q38|educational institution]]. Do not use towns, villages ect || Optional
| Date of Birth || [[Property:P17|P17]] || Date || date of birth of a person. Dates can be exact or a month, year, decade, century etc. Dates can also be qualified with [[Property:P67|accuracy]] - [[Item:Q1578|circa]] ||style="background:{{{color|lightblue}}}" | Preferred
|-
|-
| Place of Birth || [[Property:P21|P21]] || Item || can be any place (e.g. building, town, city, country) || Optional
| Date of Death || [[Property:P18|P18]] || Date || date of death of a person. Dates can be exact or a month, year, decade, century etc. Dates can also be qualified with [[Property:P67|accuracy]] - [[Item:Q1578|circa]] ||style="background:{{{color|lightblue}}}" | Preferred
|-
|-
| Place of Death || [[Property:P22|P22]] || Item || can be any place (e.g. building, town, city, country) || Optional
| Educated at || [[Property:P23|P23]] || Item || use any [[Special:WhatLinksHere/Item:Q38|educational institution]]. Do not use towns, villages ect ||style="background:{{{color|gray}}}" | Optional
|-
|-
| Sibling|| [[Property:P52|P52]] || Item || use item for brother or sister of the subject || Optional
| Place of Birth || [[Property:P21|P21]] || Item || can be any place (e.g. building, town, [[Special:WhatLinksHere/Item:Q1367|city]], [[Special:WhatLinksHere/Item:Q948|country]]) ||style="background:{{{color|gray}}}" | Optional
|-
|-
| Father || [[Property:P53|P53]] || Item || use item for Father of subject. For step parent use [[Property:P58|step parent] || Optional
| Place of Death || [[Property:P22|P22]] || Item || can be any place (e.g. building, town, [[Special:WhatLinksHere/Item:Q1367|city]], [[Special:WhatLinksHere/Item:Q948|country]]) ||style="background:{{{color|gray}}}" | Optional
|-
|-
| Child || [[Property:P54|P54]] || Item || use item for biological child of the subject || Optional
| Sibling|| [[Property:P52|P52]] || Item || use item for brother or sister of the subject ||style="background:{{{color|gray}}}" | Optional
|-
|-
| Mother || [[Property:P55|P55]] || Item ||use item for mother of subject. For step parent use [[Property:P58|step parent]] || Optional
| Father || [[Property:P53|P53]] || Item || use item for Father of subject. For step parent use [[Property:P58|step parent]] ||style="background:{{{color|gray}}}" | Optional
|-
|-
| Spouse || [[Property:P56|P56]] || Item || use item for spouse of subject. For unmarried partners use [[Property:P57|unmarried partner] || Optional
| Child || [[Property:P54|P54]] || Item || use item for biological child of the subject ||style="background:{{{color|gray}}}" | Optional
|-
|-
| relative || [[Property:P59|P59]] || Item || family member other than parent, child. Such as cousin, grandparent, ancestor ect || Optional
| Mother || [[Property:P55|P55]] || Item ||use item for mother of subject. For step parent use [[Property:P58|step parent]] ||style="background:{{{color|gray}}}" | Optional
|-
|-
| Example || Example || Item || Example || Example
| Spouse || [[Property:P56|P56]] || Item || use item for spouse of subject. For unmarried partners use [[Property:P57|unmarried partner]] ||style="background:{{{color|gray}}}" | Optional
|-
|-
| Example || Example || Item || Example || Example
| Relative || [[Property:P59|P59]] || Item || family member other than parent, child. Such as cousin, grandparent, ancestor ect ||style="background:{{{color|gray}}}" | Optional
|-
| Date christened || [[Property:P60|P60]] || Date || The date a person was christened or baptised. Especially useful when no birth date can be found ||style="background:{{{color|gray}}}" | Optional
|-
| Date of Burial or Cremation || [[Property:P61|P61]] || Date || The date a person was buried or cremated. Especially useful when no death date can be found ||style="background:{{{color|gray}}}" | Optional
|-
| Language spoken or written|| [[Property:P20|P20]]|| Item || use any [[Special:WhatLinksHere/Item:Q949|instance of a language]] ||style="background:{{{color|gray}}}" | Optional
|-
| Short Biography|| [[Property:P19|P19]]|| String || For any free text associated with authority records ||style="background:{{{color|gray}}}" | Optional
|}
 
{| class="wikitable"
|+ Places
|-
! Title !! ID !! Data type !! Description !! Requirement
|-
| Instance of || [[Property:P7|P7]] || Item  || Use with types of [[Special:WhatLinksHere/Item:Q1368|human settlement]] or items such as [[Item:Q10278|monument]], [[Item:Q9793|house]] or [[Item:Q10278|Q10255]] to best describe a place. Be as specific as you can. <br> For example for a church use [[Item:Q9762|church building]] rather than [[Item:Q8576|building]]  || style="background:{{{color|lightgreen}}}" | Always
|-
| country|| [[Property:P63|P63]] || Item  || The [[Special:WhatLinksHere/Item:Q948|country or nation]] in which the item is located || style="background:{{{color|lightgreen}}}" | Always
|-
| coordinate location || [[Property:P26|P26]]|| String || add the decimal coordinates of a place e.g. <syntaxhighlight>52.414,-4.081</syntaxhighlight> || style="background:{{{color|lightgreen}}}" | Always
|-
| historic county || [[Property:P38|P38]] || Item  || For places in the UK use with any [[Special:WhatLinksHere/Item:Q9661|historic county of England]], [[Special:WhatLinksHere/Item:Q1121|historic county of Wales]] or [[Special:WhatLinksHere/Item:Q1122|historic county of the United Kingdom]] ||style="background:{{{color|lightblue}}}" | Preferred
|-
| located in territorial entity || [[Property:P27|P27]] || Item  || Use to state the larger administrative area in which an item exists. Usually a [[Special:WhatLinksHere/Item:Q948|county]]||style="background:{{{color|lightblue}}}" | Preferred
|-
| CADW Building ID || [[Property:P68|P68]] || ID  || Unique Identifier for Welsh listed buildings ||style="background:{{{color|gray}}}" | Optional
|-
| Coflein ID || [[Property:P69|P69]] || ID  || Unique Identifier for Welsh historical sites ||style="background:{{{color|gray}}}" | Optional
|-
|-
| Example || Example || Item || Example || Example
|}
|}

Latest revision as of 15:13, 13 January 2023


Linked data works by connecting together data entities to create rich structured data in the form of triples. For example,
1. John Jones (Q..) 2. was Educated at (P23) 3. Aberystwyth University (Q...).

If, when creating new items for people or places the necessary data, such as the place they were born or educated, does not exist then you should also create a separate item for that entity in order to complete your data entry. You can search for similar items in order to see how the data should be structured.

When creating any new item you should always search for and include the Wikidata ID if it exists, using Wikidata ID (P2) and Wikidata URI (P6).

People
Title ID Data type Description Requirement
Instance of P7 Item should be used with Human for people Always
Sex or gender P13 Item use male,female,non-binary,intersex,intersex,trans woman or trans man Always
Give Name(s) P15 Item find or create an item for the subjects given name(s) Always
Family Name P16 Item find or create an item for the subjects family name Always
Nationality P14 Item use any sovereign country or nation (including Wales!) Preferred
Occupation P25 Item use occupations. Choose the most specific (e.g. for Welsh Bards use Bard, not Poet or Writer) Preferred
Date of Birth P17 Date date of birth of a person. Dates can be exact or a month, year, decade, century etc. Dates can also be qualified with accuracy - circa Preferred
Date of Death P18 Date date of death of a person. Dates can be exact or a month, year, decade, century etc. Dates can also be qualified with accuracy - circa Preferred
Educated at P23 Item use any educational institution. Do not use towns, villages ect Optional
Place of Birth P21 Item can be any place (e.g. building, town, city, country) Optional
Place of Death P22 Item can be any place (e.g. building, town, city, country) Optional
Sibling P52 Item use item for brother or sister of the subject Optional
Father P53 Item use item for Father of subject. For step parent use step parent Optional
Child P54 Item use item for biological child of the subject Optional
Mother P55 Item use item for mother of subject. For step parent use step parent Optional
Spouse P56 Item use item for spouse of subject. For unmarried partners use unmarried partner Optional
Relative P59 Item family member other than parent, child. Such as cousin, grandparent, ancestor ect Optional
Date christened P60 Date The date a person was christened or baptised. Especially useful when no birth date can be found Optional
Date of Burial or Cremation P61 Date The date a person was buried or cremated. Especially useful when no death date can be found Optional
Language spoken or written P20 Item use any instance of a language Optional
Short Biography P19 String For any free text associated with authority records Optional
Places
Title ID Data type Description Requirement
Instance of P7 Item Use with types of human settlement or items such as monument, house or Q10255 to best describe a place. Be as specific as you can.
For example for a church use church building rather than building
Always
country P63 Item The country or nation in which the item is located Always
coordinate location P26 String add the decimal coordinates of a place e.g.
52.414,-4.081
Always
historic county P38 Item For places in the UK use with any historic county of England, historic county of Wales or historic county of the United Kingdom Preferred
located in territorial entity P27 Item Use to state the larger administrative area in which an item exists. Usually a county Preferred
CADW Building ID P68 ID Unique Identifier for Welsh listed buildings Optional
Coflein ID P69 ID Unique Identifier for Welsh historical sites Optional