Improvement of the namespace/schema_url mapping #31
Replies: 5 comments 6 replies
-
Hello @manusimidt thanks for creating and maintaining this library. It is very useful for us to parse SEC XBRL document. I was wondering if there is any timeline to implement namespace/schema_url mapping improvement as mentioned in this discussion? There are few new namespaces e.g. (xbrl.sec.gov/rr/2022, xbrl.sec.gov/dei/2023 etc.) are missing from the static ns_schema_map. Becuase of this few of the XBRL documents are failing to parse. If we can't implement above solution (by reading the current mapping from https://www.sec.gov/info/edgar/edgartaxonomies.xml), can we at least update the ns_schema_map so that we can continue with our parsing for this year's document? |
Beta Was this translation helpful? Give feedback.
-
Hi @manusimidt just wondering if you can fix above and cut the new release this week? Just planning for our release accordingly. |
Beta Was this translation helpful? Give feedback.
-
Hello! I ran into a similar issue today with 'The taxonomy with namespace http://xbrl.sec.gov/stpr/2022 could not be found'. Here was my quick solution to inject the correct mapping from: https://www.sec.gov/info/edgar/edgartaxonomies.xml
Once the ns_schema_map in taxonomy.py has been updated I was able to parse the filing as expected using parser.parse() |
Beta Was this translation helpful? Give feedback.
-
For a more comprehensive solution I use this:
When running today with verbose == True I get the following: sec_schema_map: 102 |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @manusimidt and @jakemdrew . Appreciate your help. |
Beta Was this translation helpful? Give feedback.
-
I stumbled across the following page which defines namespaces and schema urls for all taxonomies used by filers that submit to SEC EDGAR:
https://www.sec.gov/info/edgar/edgartaxonomies.xml
maybe the parser can use this xml file to map namespaces to xml schemas in the case it's not defined in the taxonomy extension schema.
Currently this is done by using the following mapping:
https://github.com/manusimidt/xbrl_parser/blob/34952a6a1185a81d767c591d3a42f53423b558d5/xbrl/taxonomy.py#L160-L188
Beta Was this translation helpful? Give feedback.
All reactions