Taxonomy reader

Dear Sir or Madam,

Does Aspose support loading the full (any given) taxonomy, to later build its tree like representation? Probably similar to Taxonomy Viewer

@AlexanderNovickov,

Aspose.Finance (Aspose.Finance for .NET and Aspose.Finance for Python via .NET) allows you to work with XBRL Taxonomies, which are the hierarchical structures used to define business facts. See the docs for your reference: Developer Guide - C# Finance Library API|Documentation. While it does not provide a built-in “Taxonomy Viewer” UI component, it provides the programmatic access needed to build one. The API does not provide a built-in taxonomy explorer or hierarchical tree builder like typical Taxonomy Viewer tools. You must construct the tree yourself from the loaded structures. Aspose provides the data layer (the “engine”) rather than the presentation layer. To create tool like Taxonomy Viewer similar to specialized XBRL tools, you might need to fetch the elements via the API and bind them to a UI tree control (e.g., TreeView in .NET).

Hi Amjad,

With all my respect the documentation page doesn’t contain much information about working with the taxonomies, it’s rather about working with iXBRL files. My question is, can I provide to your API an entry point to a taxonomy (xsd file) and get all the taxonomy read in some kind of structure in memory, from which I’ll be able to get the information about the facts, hypercubes, dimensions, cross-references etc?

Regards,
Alex

@AlexanderNovickov,

Aspose.Finance is primarily designed for working with XBRL and iXBRL instance documents. You can use the API to read a taxonomy entry point (.xsd) and access its underlying structure in memory.
To load a taxonomy, you typically start with the XbrlDocument or XbrlInstance classes. You may use the SchemaRefCollection via xbrlInstance.SchemaRefs.Add() to point to your entry point .xsd file. You can extract specific components from the loaded schema to get relevant information.

Hi Amjad,
Thank you for your reply. Here is my code:
Console.WriteLine(“Hello, World!”);
Aspose.Finance.License license = new Aspose.Finance.License();
license.SetLicense(“c:\Code\Finance\Finance\Aspose.Financefor.NET.lic”);
XbrlDocument d = new XbrlDocument(“c:\Vob\GitRepos\Documents\XBRL\FRC-2023-Taxonomy-v1.0.1\FRS-101\2023-01-01\FRS-101-2023-01-01.xsd”);
Debug.WriteLine(d.XbrlInstances.Count);

d.XbrlInstances.Count returns 0.
What am I doing wrong?
Regards,
Alex

@AlexanderNovickov,

You are using XbrlDocument constructor and trying to load only the XBRL schema (XSD) file, which defines the structure and rules of an XBRL document. I am afraid, this file may not contain any actual financial data or “instances”. The XbrlInstances.Count property returns 0 because no instance documents have been loaded or added. To resolve this, you need to load an actual XBRL instance file (usually with an .xbrl or .xml extension containing data) into the XbrlDocument.

Hi Amjad,
XSD file is an entry point, the whole taxonomy is spread through 90+ files in the different folders. Is my understanding correct and there’s no easy way to load the whole taxonomy using the Finance product?

Regards,
Alex

@AlexanderNovickov,

We have opened the following new ticket(s) in our internal issue tracking system. We will evaluate on loading and managing taxonomies with Aspose.Finance while exploring hierarchical structures. We will try to figure it out according to the terms mentioned in Free Support Policies.

Issue ID(s): FINANCENET-414

Once we have an update on it, we will let you know here.