Skip to content

Commit

Permalink
remove duplicate cites (that are also deprecates)
Browse files Browse the repository at this point in the history
  • Loading branch information
nleanba committed Oct 23, 2024
1 parent 45e1c9c commit 7156eec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/gg2rdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,16 @@ export function gg2rdf(

t.addProperty(`a`, `trt:Treatment`);

// remove duplicate citations
// no cito:cites that are also trt:deprecates
if (
Object.hasOwn(t.properties, "cito:cites") &&
Object.hasOwn(t.properties, "trt:deprecates")
) {
t.properties["cito:cites"] = t.properties["cito:cites"]
.difference(t.properties["trt:deprecates"]);
}

outputSubject(t);
}

Expand Down

0 comments on commit 7156eec

Please sign in to comment.