Read-only mirror of https://github.com/swiss/fch-sparql — Bundeskanzlei. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
michael-jehle f0dddcafaf
Feature/quality rules (#10)
* fix: code quality rules enabled

* style: syntax highlighting for csharp activated
2026-03-12 14:29:00 +01:00
.github feat: initial publication on GitHub 2026-03-09 14:06:34 +01:00
src Feature/quality rules (#10) 2026-03-12 14:29:00 +01:00
.editorconfig feat: initial publication on GitHub 2026-03-09 14:06:34 +01:00
.gitignore feat: initial publication on GitHub 2026-03-09 14:06:34 +01:00
CHANGELOG.md fix: targeting of multiple dotnet versions corrected 2026-03-10 11:31:36 +01:00
CONTRIBUTING.md feat: initial publication on GitHub 2026-03-09 14:06:34 +01:00
LICENSE feat: initial publication on GitHub 2026-03-09 14:06:34 +01:00
README.md Feature/quality rules (#10) 2026-03-12 14:29:00 +01:00
SECURITY.md feat: initial publication on GitHub 2026-03-09 14:06:34 +01:00
THIRD_PARTY_LICENSES.md chore: update THIRD_PARTY_LICENSES.md 2026-03-10 10:32:18 +00:00

Introduction

This library contains functionality related to RDF triplestores based on Sparql.

⚠️ WARNING
Don't use this library, instead use Swiss.FCh.MasterData. This library will be deprecated and merged with fch-masterdata.

Master Data

MasterData that is stored as a concept on LINDAS can be queryied by e generic query provided by the library. The defined termset has to be provided as parameter.

To do so, the IMasterDataClient can be used. This service can be registered in your DI container by calling IServiceCollection.AddSparqlClient().

Damit die generische Query richtig funktioniert, müssen folgende Parameter übergeben werden.

An example call can the look like this:

var queryResult =
    await _masterDataClient.GetMasterData(
        DefinedTermsets.Countries,
        ct,
        additionalAttributes: additionalAttributes,
        endpointUrl: SparqlEndpoints.LdAdmin,
        dataModel: DataModels.SchemaOrg);

To make these queries more convenient, the library Swiss.FCh.MasterData was developed, which we recommend to end users.

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.x and git 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