src/pybel/parser/parse_concept.py
def raise_for_missing_name(self, line: str, position: int, namespace: str, name: str) -> None:
        """Raise an exception if the namespace is not defined or if it does not validate the given name."""
        self.raise_for_missing_namespace(line, position, namespace, name)

        if self.has_enumerated_namespace(namespace) and name not in self.namespace_to_name_to_encoding[namespace]:
            raise MissingNamespaceNameWarning(self.get_line_number(), line, position, namespace, name)

        if self.has_regex_namespace(namespace) and not self.namespace_to_pattern[namespace].match(name):
            raise MissingNamespaceRegexWarning(self.get_line_number(), line, position, namespace, name)
Raise an exception if the namespace is not defined or if it does not validate the given name.
Raise an exception if the namespace is not defined or if it does not validate the given name.
Raise an exception if the namespace is not defined or if it does not validate the given name .
def raise_for_missing_name(self, line: str, position: int, namespace: str, name: str) -> None:
        self.raise_for_missing_namespace(line, position, namespace, name)
        if self.has_enumerated_namespace(namespace) and name not in self.namespace_to_name_to_encoding[namespace]:
            raise MissingNamespaceNameWarning(self.get_line_number(), line, position, namespace, name)
        if self.has_regex_namespace(namespace) and not self.namespace_to_pattern[namespace].match(name):
            raise MissingNamespaceRegexWarning(self.get_line_number(), line, position, namespace, name)
def raise_for_missing_name ( self , line : str , position : int , namespace : str , name : str ) -> None : self . raise_for_missing_namespace ( line , position , namespace , name ) if self . has_enumerated_namespace ( namespace ) and name not in self . namespace_to_name_to_encoding [ namespace ] : raise MissingNamespaceNameWarning ( self . get_line_number ( ) , line , position , namespace , name ) if self . has_regex_namespace ( namespace ) and not self . namespace_to_pattern [ namespace ] . match ( name ) : raise MissingNamespaceRegexWarning ( self . get_line_number ( ) , line , position , namespace , name )
Raise an exception if the namespace is not defined or if it does not validate the given name.
Raise an exception if the namespace is not defined or if it does not validate the given name .
"""Raise an exception if the namespace is not defined or if it does not validate the given name."""
self
line
str
position
int
namespace
str
name
str