Swiss.FCh.MasterData
3.2.4
Prefix Reserved
dotnet add package Swiss.FCh.MasterData --version 3.2.4
NuGet\Install-Package Swiss.FCh.MasterData -Version 3.2.4
<PackageReference Include="Swiss.FCh.MasterData" Version="3.2.4" />
<PackageVersion Include="Swiss.FCh.MasterData" Version="3.2.4" />
<PackageReference Include="Swiss.FCh.MasterData" />
paket add Swiss.FCh.MasterData --version 3.2.4
#r "nuget: Swiss.FCh.MasterData, 3.2.4"
#:package Swiss.FCh.MasterData@3.2.4
#addin nuget:?package=Swiss.FCh.MasterData&version=3.2.4
#tool nuget:?package=Swiss.FCh.MasterData&version=3.2.4
Introduction
This library allows to query master data from various RDF data stores of the federal administration.
Usage
Configuration
Register the available master data services in your DI container as follows.
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddMasterDataService(
new SwissFChMasterDataSettings
{
});
The SwissFChMasterDataSettings allow you to configure the following options.
RequestTimeoutMs: Http request timeout in millisecondsProxyAddress: specify an http proxy (e.g. http://your-example-proxy.com:8080)UserName: user name in case you are querying a protected RDF storePassword: password in case you are querying a protected RDF store
Querying Data
Inject the required master data service in your class and use the offered methods to query data.
var countries = await countryService.GetCountries(stoppingToken);
The library offers the following services that are ready to use:
IAgentService: Can query agencies and people that are possible actors in the processes of the federal assembly. You have to provide URIs that will be resolved by the service.ICantonService: Returns a list of all the cantons of Switzerland.IDepartmentService: Returns a list of all the departments of the federal administration.ICommitteeService: Returns a list of all committees of the federal administration.ICountryService: Returns a list of all the countries of the world.IOfficeService: Returns a list of all the offices of the federal administration.ISessionService: Returns a list of all the sessions (with begin and end dates) of the federal assembly.
Contribution
See: https://github.com/swiss/fch-sparql/blob/main/CONTRIBUTING.md
Security
See: https://github.com/swiss/fch-sparql/blob/main/SECURITY.md
Development Workflow
To publish a new version of the NuGet package, proceed as follows.
- apply and push your changes
- define and describe the new version in
CHANGELOG.md - push the corresponding label with
git tag vx.x.xandgit push origin vx.x.x - go to GitHub → Actions → 'Build and Publish to NuGet.org' and trigger a run while specifying the correct GIT label
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Swiss.FCh.Sparql (>= 6.2.4)
-
net8.0
- Swiss.FCh.Sparql (>= 6.2.4)
-
net9.0
- Swiss.FCh.Sparql (>= 6.2.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.