Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ src/PxWeb.Api2.Server.Models/KeyValuePair.cs
src/PxWeb.Api2.Server.Models/Language.cs
src/PxWeb.Api2.Server.Models/Link.cs
src/PxWeb.Api2.Server.Models/MeasuringType.cs
src/PxWeb.Api2.Server.Models/MetaidDimentionEntry.cs
src/PxWeb.Api2.Server.Models/MetaidLink.cs
src/PxWeb.Api2.Server.Models/MetaidLinksValue.cs
src/PxWeb.Api2.Server.Models/Note.cs
src/PxWeb.Api2.Server.Models/OutputFormatParamType.cs
src/PxWeb.Api2.Server.Models/OutputFormatType.cs
Expand Down
61 changes: 61 additions & 0 deletions PxAPI-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,8 @@ components:
updateFrequency:
description: How often a table is updated
type: string
metaid-links:
$ref: '#/components/schemas/metaid-links'
firstPeriod:
description: Earliest time period in table
type: string
Expand All @@ -1300,6 +1302,65 @@ components:
description: A list of contacts associated with the table.
items:
$ref: "#/components/schemas/Contact"

metaid-links:
type: object
description: Dictionary where key is metadata-type (e.g statistics-homepage, about-statistics, definitions ) and value is an MetaLinkValue object.
additionalProperties:
type: object
properties:
dataset-links:
$ref: '#/components/schemas/array-of-metaid-link'
dimention-entries:
type: object
description: Dictionary where key is a dimention-code and value is a MetaidDimentionEntry object .
additionalProperties:
$ref: '#/components/schemas/metaid-dimention-entry'

metaid-dimention-entry:
type: object
description: Holds links for a dimention and or category.
properties:
dimension-links:
$ref: '#/components/schemas/array-of-metaid-link'
category-links:
$ref: '#/components/schemas/category-links'

category-links:
type: object
description: Dictionary where key is a category-code and value is a array of metaid-link.
additionalProperties:
$ref: '#/components/schemas/array-of-metaid-link'

array-of-metaid-link:
description: Array of metaid-link.
type: array
items:
$ref: '#/components/schemas/metaid-link'

metaid-link:
type: object
description: Represents a single MetaID link.
properties:
metaid:
type: string
description: Source Meta ID for this link
href:
type: string
format: uri
description: URL link
label:
type: string
description: Label for the link
type:
type: string
description: Type of the link, like text/htm
required:
- metaid
- href
- label
- type

extension:
description: extension at some level
type: object
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ Windows:
```sh
build.bat
```


### To look at the templates:
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v7.9.0 author template -g aspnetcore -o /local/templates-aspnetcore
296 changes: 296 additions & 0 deletions a_metaid_alt0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
{
"version": "2.0",
"class": "dataset",
"label": "12909: Doctor certified sickness absence for employees (per cent), PxcMetaTitleBy occupation, country background, contents PxcMetaTitleAnd quarter",
"source": "Statistics Norway",
"updated": "2026-02-26T07:00:00Z",
"note": [
"Large changes in the sickness absence rates from one year to another should be interpreted with caution. Occupations with few observations will experience large changes even if the change in sickness absence days are small in absolute numbers.",
"The table does not include stateless employees or employees with unknown country background."
],
"role": {
"time": [
"Tid"
],
"metric": [
"ContentsCode"
]
},
"id": [
"Yrke",
"LandBakgr",
"ContentsCode",
"Tid"
],
"size": [
2,
2,
2,
1
],
"dimension": {
"Yrke": {
"label": "occupation",
"category": {
"index": {
"1": 0,
"2": 1
},
"label": {
"1": "Managers",
"2": "Professionals"
}
},
"extension": {
"elimination": false,
"show": "code_value"
},
"link": {
"describedby": [
{
"extension": {
"Yrke": "urn:ssb:classification:klass:7 urn:ssb:conceptvariable:vardok:1118"
}
}
]
}
},
"LandBakgr": {
"label": "country background",
"category": {
"index": {
"999": 0,
"00": 1
},
"label": {
"999": "Total",
"00": "Nordic countries except Norway"
}
},
"extension": {
"elimination": true,
"eliminationValueCode": "999",
"show": "value"
},
"link": {
"describedby": [
{
"extension": {
"00": "urn:ssb:conceptvariable:vardok:007",
"LandBakgr": "urn:ssb:classification:klass:545"
}
}
]
}
},
"ContentsCode": {
"label": "contents",
"category": {
"index": {
"Sykefraversprosent": 0,
"SykefraversprosEndr": 1
},
"label": {
"Sykefraversprosent": "Sickness absence rate (doctor certified)",
"SykefraversprosEndr": "Sickness absence rate (doctor certified), per cent change last year"
},
"unit": {
"Sykefraversprosent": {
"base": "per cent",
"decimals": 1
},
"SykefraversprosEndr": {
"base": "per cent",
"decimals": 1
}
}
},
"extension": {
"elimination": false,
"refperiod": {
"Sykefraversprosent": "Quarter",
"SykefraversprosEndr": "Quarter"
},
"show": "value",
"measuringType": {
"Sykefraversprosent": "Average",
"SykefraversprosEndr": "Average"
},
"priceType": {
"Sykefraversprosent": "NotApplicable",
"SykefraversprosEndr": "NotApplicable"
},
"adjustment": {
"Sykefraversprosent": "None",
"SykefraversprosEndr": "None"
}
},
"link": {
"describedby": [
{
"extension": {
"Sykefraversprosent": "urn:ssb:conceptvariable:vardok:2236",
"SykefraversprosEndr": "urn:ssb:conceptvariable:vardok:2236"
}
}
]
}
},
"Tid": {
"label": "quarter",
"category": {
"index": {
"2024K4": 0
},
"label": {
"2024K4": "2024K4"
}
},
"extension": {
"elimination": false,
"show": "code"
}
}
},
"extension": {
"px": {
"infofile": "None",
"tableid": "12909",
"decimals": 1,
"official-statistics": false,
"aggregallowed": false,
"copyright": false,
"language": "en",
"contents": "12909: Doctor certified sickness absence for employees (per cent),",
"descriptiondefault": false,
"heading": [
"ContentsCode",
"Tid"
],
"stub": [
"Yrke",
"LandBakgr"
],
"matrix": "Sykefraversprosent",
"subject-code": "al",
"subject-area": "Labour market and earnings",
"metaid-links": [
{
"relation": "(gui-field =) statistics-homepage (sort of a IANA subclass)",
"dimension": null,
"catagory": null,
"metaid": "STATISTICS:sykefratot",
"href": "https://www.ssb.no/en/sykefratot",
"label": "Statistics homepage",
"type": "text/html"
},
{
"relation": "(gui-field =) about-statistics",
"dimension": null,
"catagory": null,
"metaid": "STATISTICS:sykefratot",
"href": "https://www.ssb.no/en/sykefratot#om-statistikken",
"label": "About the statistics",
"type": "text/html"
},
{
"relation": "(gui-field =) definitions",
"dimension": "Yrke",
"catagory": null,
"metaid": "urn:ssb:classification:klass:7",
"href": "https://www.ssb.no/en/klass/klassifikasjoner/7",
"label": "Classification for variableLabel.",
"type": "text/html"
},
{
"relation": "(gui-field =) definitions",
"dimension": "Yrke",
"catagory": null,
"metaid": "urn:ssb:conceptvariable:vardok:1118",
"href": "https://www.ssb.no/a/metadata/conceptvariable/vardok/1118/en",
"label": "Definition of variableLabel.",
"type": "text/html"
},
{
"relation": "(gui-field =) definitions",
"dimension": "LandBakgr",
"catagory": null,
"metaid": "urn:ssb:classification:klass:545",
"href": "https://www.ssb.no/en/klass/klassifikasjoner/545",
"label": "Classification for variableLabel.",
"type": "text/html"
},
{
"relation": "(gui-field =) definitions",
"dimension": "LandBakgr",
"catagory": "00",
"metaid": "urn:ssb:conceptvariable:vardok:007",
"href": "https://www.ssb.no/a/metadata/conceptvariable/vardok/007/en",
"label": "Definition of valueLabel for vaiable variableLabel.",
"type": "text/html"
},

{
"relation": "(gui-field =) definitions",
"dimension": "ContentsCode",
"catagory": "Sykefraversprosent",
"metaid": "urn:ssb:conceptvariable:vardok:2236",
"href": "https://www.ssb.no/a/metadata/conceptvariable/vardok/2236/en",
"label": "Definition of valueLabel for vaiable variableLabel.",
"type": "text/html"
},
{
"relation": "(gui-field =) definitions",
"dimension": "ContentsCode",
"catagory": "SykefraversprosEndr",
"metaid": "urn:ssb:conceptvariable:vardok:2236",
"href": "https://www.ssb.no/a/metadata/conceptvariable/vardok/2236/en",
"label": "Definition of valueLabel for vaiable variableLabel.",
"type": "text/html"
},
{
"relation": "acticles on big strike(IANA subclass)",
"dimension": "Yrke",
"catagory": "lærere",
"metaid": "urn:ssb:conceptvariable:vardok:2236",
"href": "https://www.ssb.no/a/metadata/conceptvariable/vardok/2236/en",
"label": "Definition of valueLabel for vaiable variableLabel.",
"type": "text/html"
}
],
"discontinued": null,
"contact": [
{
"name": "Unn H. Høydahl, Statistics Norway +47 40 90 23 77",
"organization": "",
"phone": "",
"mail": "",
"raw": "Unn H. Høydahl, Statistics Norway +47 40 90 23 77, #uhh@ssb.no "
},
{
"name": " Arbeidsmarked, Statistics Norway +47 62 88 50 00",
"organization": "",
"phone": "",
"mail": "",
"raw": "# Arbeidsmarked, Statistics Norway +47 62 88 50 00, #arbeidsmarked@ssb.no "
},
{
"name": "Stine Bakke, Statistics Norway +47 91 52 62 51",
"organization": "",
"phone": "",
"mail": "",
"raw": "#Stine Bakke, Statistics Norway +47 91 52 62 51, #eba@ssb.no "
}
]
},
"value": [
4.9,
-2.6,
4.2,
3.7,
4.8,
-2.5,
5,
-2.5
]
}
Loading