Giter Club home page Giter Club logo

Comments (4)

manusimidt avatar manusimidt commented on May 23, 2024

The taxonomy (STPR 2021) that the parser can not find is in draft and not officially released.
See https://www.sec.gov/structureddata/osddrafttaxonomyfiles
I am not quite sure why these two submissions use this taxonomy, however I will add it to the mapping :)

from py-xbrl.

mrx23dot avatar mrx23dot commented on May 23, 2024

Why doesn't the recursion include base taxonomy downloads?
The lib already knows what's missing, so we wouldn't need to hardcode the new docs every year.

from py-xbrl.

manusimidt avatar manusimidt commented on May 23, 2024

The libary does indeed automatically download and parse all taxonomies that are imported in the respective taxonomy schema files.
However some filers (expecially from the US) do not import the taxonomies.

They declare the namespace:

<xbrli:xbrl xmlns:dei="http://xbrl.sec.gov/dei/2020-01-31">...</xbrli:xbrl>

but the following schema import is missing:

<xs:import 
  namespace="http://xbrl.sec.gov/dei/2020-01-31" 
  schemaLocation="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd"/>

Using a namespace without declaring the schema url for the taxonomy behind the namespace is bad practice. But the SEC tolerates this for the following standard taxonomies:
https://www.sec.gov/info/edgar/edgartaxonomies.shtml

Therefore the mapping is used in case the filing lacks the appropriate mapping between namespace and schema url.

from py-xbrl.

mrx23dot avatar mrx23dot commented on May 23, 2024

When we extract the imports cannot we just try to add the declared namespaces too?
(at least the ones that look like URL) Just make it universal.

from py-xbrl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.