URI Templates
The Standard I003 - Chapter 2.3.2 defines ld.admin.ch
as the namespace for all Linked Data publications under the authority of the Federal Administration.
In order for the published data to retain a stable URI, the name of the publishing administrative unit (or its abbreviation) is not part of the namespace. The base URI ld.admin.ch
is prefixed with the subject as a subdomain (<subdomain>
). The project name (<dataset>
) is appended after the domain. Care should be taken not to choose names that are too generic. In particular it must be checked whether the project name does not already exist.
Namespaces thus have the path https://<subdomain>.ld.admin.ch/<dataset>/*
.
<subdomain>
is the topic (in English) that the dataset deals with.<dataset>
is the name of the dataset as chosen by the respective project.
Example: the data on the "International Standard Identifier for Libraries and Related Organizations" can be found at https://culture.ld.admin.ch/isil
Capitalization in Namespaces
The namespaces except the URI slug are generally defined with lower case letters exclusively (e.g. https://culture.ld.admin.ch/isil).
Guidelines for the URI slug
The last part (after the last '/') of the URI is called slug and has some special guidelines concerning capitalization and numerus that stem from well established principles:
- name resources in lower-case (e.g. https://register.ld.admin.ch/opendataswiss/category/national-economy)
- name classes in UpperCamelCase (e.g. https://schema.ld.admin.ch/ChemicalCompound)
- name classes with singular nouns (e.g. https://schema.ld.admin.ch/PoliticalMunicipality)
- name properties with lowerCamelCase (e.g. https://schema.ld.admin.ch/atomicNumber)