Class IdentifiersOrg
java.lang.Object
de.uni_halle.informatik.biodata.mp.resolver.identifiersorg.IdentifiersOrg
- All Implemented Interfaces:
Registry
The
IdentifiersOrg
class serves as a central hub for managing and processing identifiers related to the MIRIAM registry.
MIRIAM is a standard for annotating computational models in biology with machine-readable information.
This class provides static methods and utilities to handle, validate, and correct resource URLs based on the MIRIAM standards. It ensures that identifiers and URLs conform to recognized formats and corrects common errors in identifiers from various biological databases. The class also initializes necessary resources and configurations at the start through a static block.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdentifiersOrgURI
getNamespaceForPrefix
(String prefix) getPatternByNamespaceName
(String namespaceName) getPrefixByNamespaceName
(String namespaceName) boolean
resolveBackwards
(String url) Checks and processes a given resource URL to ensure it conforms to expected formats and corrections.boolean
Existing models on BiGG and Biomodels use some namespaces that were removed from identifiers.org.
-
Constructor Details
-
IdentifiersOrg
public IdentifiersOrg()
-
-
Method Details
-
getNamespaceForPrefix
- Specified by:
getNamespaceForPrefix
in interfaceRegistry
-
getPrefixByNamespaceName
- Specified by:
getPrefixByNamespaceName
in interfaceRegistry
-
getPatternByNamespaceName
- Specified by:
getPatternByNamespaceName
in interfaceRegistry
-
resolveBackwards
Checks and processes a given resource URL to ensure it conforms to expected formats and corrections. This method handles specific cases such as URLs containing "omim", "ncbigi", and "reactome". It also processes general identifiers.org URLs and other alternative formats.- Specified by:
resolveBackwards
in interfaceRegistry
- Parameters:
url
- The URL to be checked and potentially modified.- Returns:
- An
Optional
containing the processed URL if valid, or empty if the URL should be skipped.
-
validRegistryUrlPrefix
Existing models on BiGG and Biomodels use some namespaces that were removed from identifiers.org. While for some namespaces updated mappings were available (seefixIdentifiersOrgUri(de.uni_halle.informatik.biodata.mp.resolver.identifiersorg.IdentifiersOrgURI)
), this checks for those that could not be migrated.- Specified by:
validRegistryUrlPrefix
in interfaceRegistry
-
isValid
-
fixIdentifiersOrgUri
-