This library contains functionality related to RDF triplestores based on Sparql.
| Don't use this library, instead use Swiss.FCh.MasterData. This library will be deprecated and merged with fch-masterdata. |
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.
See: https://github.com/swiss/fch-sparql/blob/main/CONTRIBUTING.md
See: https://github.com/swiss/fch-sparql/blob/main/SECURITY.md
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