Skip to content
Snippets Groups Projects

Fix: Migrate resourceType structured data to linked data

Merged Hanna Führ requested to merge Issue/2083-migrateResourceTypeStructuralData into dev
1 unresolved thread

coscine/issues#2083

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
15
16 var graphs = new List<IGraph>();
17
18 foreach (var entry in entries)
19 {
20 var resourceTypeGraphName = $"{ResourceTypeUrlPrefix}/{entry.Id}";
21 var graph = RdfStoreConnector.GetGraph(resourceTypeGraphName);
22
23 // check if a triple with a dcat:DataService already exists in the resourcetype graph
24 var getTriples = graph.GetTriplesWithObject(DcatDataService);
25
26 if (!getTriples.Any())
27 {
28 graph.Assert(
29 new Triple(
30 graph.CreateBlankNode(),
  • Kimia Beheshti approved this merge request

    approved this merge request

  • Kimia Beheshti unapproved this merge request

    unapproved this merge request

  • Kimia Beheshti mentioned in commit e380f0fd

    mentioned in commit e380f0fd

  • Please register or sign in to reply
    Loading