---
# System prepended metadata

title: dcat-ap-no i SSB

---

# dcat-ap-no i SSB

Vi vil beskrive disse datasettene https://data.ssb.no/api/v0/dataset/

Nedenfor er et forsøk på å beskrive det første datasettet med dcat-ap-no 2.0 i json-ld


```json=
{
  "@context": {
    "dcat": "http://www.w3.org/ns/dcat#",
    "dct": "http://purl.org/dc/terms/",
    "foaf": "http://xmlns.com/foaf/0.1/",
    "rov": "http://www.w3.org/ns/regorg#",
    "skos": "http://www.w3.org/2004/02/skos/core#",
    "vcard": "http://www.w3.org/2006/vcard/ns#"
  },
  "@graph": [
    {
      "@id": "https://data.ssb.no/api/v0/dataset/catalog",
      "@type": "dcat:Catalog",
      "dcat:dataset": {
        "@id": "https://data.ssb.no/api/v0/dataset/1104"
      },
      "dct:description": {
        "@language": "en",
        "@value": "API with 250 readymade datasets from Statistics Norway's StatBank"
      },
      "dct:identifier": "1",
      "dct:publisher": {
        "@id": "https://organization-catalogue.fellesdatakatalog.digdir.no/organizations/971526920"
      },
      "dct:title": {
        "@language": "en",
        "@value": "API: Readymade dataset"
      }
    },
    {
      "@id": "https://data.ssb.no/api/v0/dataset/1104",
      "@type": "dcat:Dataset",
      "dcat:theme": [
        {
          "@id": "https://psi.norge.no/los/tema/barnehage"
        },
        {
          "@id": "http://publications.europa.eu/resource/authority/data-theme/GOVE"
        }
      ],
      "dct:creator": {
        "@id": "https://organization-catalogue.fellesdatakatalog.digdir.no/organizations/971526920"
      },
      "dct:description": [
        {
          "@language": "no",
          "@value": "ikke alle datasett har beskrivelse ..."
        },
        {
          "@language": "en",
          "@value": "not every dataset has descripton ..."
        }
      ],
      "dct:identifier": "1104",
      "dct:publisher": {
        "@id": "https://organization-catalogue.fellesdatakatalog.digdir.no/organizations/971526920"
      },
      "dct:title": [
        {
          "@language": "no",
          "@value": "Befolkningsutvikling. Hele landet, siste kvartal"
        },
        {
          "@language": "en",
          "@value": "Population change. Whole country, latest quarter"
        }
      ],
      "dcat:distribution": [
        {
          "@type": "dcat:Distribution",
          "dcat:accessURL": {
            "@id": "https://data.ssb.no/api/v0/dataset/1104.html"
          },
          "dct:description": [
            {
              "@language": "no",
              "@value": "Datasett i JSON-stat format på norsk"
            },
            {
              "@language": "en",
              "@value": "Dataset in JSON-stat format in Norwegian"
            }
          ],
          "dct:format": "JSON",
          "dcat:downloadURL": {
            "@id": "https://data.ssb.no/api/v0/dataset/1104.json?lang=no"
          }
        },
        {
          "@type": "dcat:Distribution",
          "dcat:accessURL": {
            "@id": "https://data.ssb.no/api/v0/dataset/1104.html"
          },
          "dct:description": [
            {
              "@language": "no",
              "@value": "Datasett i CSV format på norsk"
            },
            {
              "@language": "en",
              "@value": "Dataset in CSV format in Norwegian"
            }
          ],
          "dct:format": "CSV",
          "dcat:downloadURL": {
            "@id": "https://data.ssb.no/api/v0/dataset/1104.csv?lang=no"
          }
        },
        {
          "@type": "dcat:Distribution",
          "dcat:accessURL": {
            "@id": "https://data.ssb.no/api/v0/dataset/1104.html"
          },
          "dct:description": [
            {
              "@language": "no",
              "@value": "Datasett i JSON-stat format på engelsk"
            },
            {
              "@language": "en",
              "@value": "Dataset in JSON-stat format in English"
            }
          ],
          "dct:format": "JSON",
          "dcat:downloadURL": {
            "@id": "https://data.ssb.no/api/v0/dataset/1104.json?lang=en"
          }
        },
        {
          "@type": "dcat:Distribution",
          "dcat:accessURL": {
            "@id": "https://data.ssb.no/api/v0/dataset/1104.html"
          },
          "dct:description": [
            {
              "@language": "no",
              "@value": "Datasett i CSV format på engelsk"
            },
            {
              "@language": "en",
              "@value": "Dataset in CSV format in English"
            }
          ],
          "dct:format": "CSV",
          "dcat:downloadURL": {
            "@id": "https://data.ssb.no/api/v0/dataset/1104.csv?lang=en"
          }
        }
      ],
      "dcat:keyword": [
        "01222",
        "births",
        "deaths",
        "emigration",
        "folkemengde",
        "immigration",
        "population"
    }
  ]
}
```

## Lenker

### Generelt
* https://data.norge.no/specification/dcat-ap-no/
* https://data.norge.no/validator (BETA)
* https://www.itb.ec.europa.eu/shacl/bregdcat-ap/upload
* https://github.com/Informasjonsforvaltning/dcat-ap-no-validator-service/tree/main/tests/files
* https://github.com/runejo/dcat-ap-no

### SSB registreringer
* Datasett:                     https://data.norge.no/datasets?orgPath=%2FSTAT%2F972417807%2F971526920
* API:                      https://data.norge.no/dataservices?orgPath=%2FSTAT%2F972417807%2F971526920
* Begrep:                       https://data.norge.no/concepts?orgPath=%2FSTAT%2F972417807%2F971526920
* Informasjonmodeller: https://data.norge.no/informationmodels?orgPath=%2FSTAT%2F972417807%2F971526920

## Tips

```sh
curl -H "Accept: application/ld+json" https://data.norge.no/datasets/44f30e8d-b653-4463-9e78-73aa7fbcfdf0  
```