Skip to content

Commit

Permalink
Update parser.js
Browse files Browse the repository at this point in the history
The subsets in EDAM have changed since 1.25, changing from `http://purl.obolibrary.org/obo/edam#topics` to `http://edamontology.org/topics`. This causes them to be interpreted as top-level classes by the parser, and these subsets (only the ones for topics, operations, data and formats) to be displayed in EDAM browser. This correction allows to avoid this problem by restricting the control on the top-level superclass IDs.
  • Loading branch information
hmenager authored Jul 5, 2024
1 parent ade1837 commit 1fa11d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RdfXmlParser } from "rdfxml-streaming-parser";
import { classVal, subClassVal, schemaMap, metaMap, tsvMap } from "./maps.js";
//current supported classes top level (topic, data, operation, format, deprecated)
var edamRe = new RegExp(
"^((http|https)://edamontology.org/(data|format|operation|topic)|http://www.w3.org/2002/07/owl#DeprecatedClass)",
"^((http|https)://edamontology.org/(data|format|operation|topic)_|http://www.w3.org/2002/07/owl#DeprecatedClass)",
"i"
);

Expand Down

0 comments on commit 1fa11d7

Please sign in to comment.