Gepsio 2.1.0.8
See the version list below for details.
dotnet add package Gepsio --version 2.1.0.8
NuGet\Install-Package Gepsio -Version 2.1.0.8
<PackageReference Include="Gepsio" Version="2.1.0.8" />
paket add Gepsio --version 2.1.0.8
#r "nuget: Gepsio, 2.1.0.8"
// Install Gepsio as a Cake Addin #addin nuget:?package=Gepsio&version=2.1.0.8 // Install Gepsio as a Cake Tool #tool nuget:?package=Gepsio&version=2.1.0.8
Gepsio is a .NET-based document object model for XBRL documents. Load your XBRL document with the XbrlDocument class and work with your XBRL document exposed as a set of .NET classes with a variety of properties and methods. Loaded XBRL documents are automatically validated against the information against the XBRL specification, and exceptions are thrown when invalid XBRL documents are loaded. The Gepsio code base is unit tested using the XBRL-CONF-CR5-2012-01-24 unit tests designed by the XBRL organization.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.1.0.17 | 1,751 | 6/5/2022 |
2.1.0.16 | 2,425 | 4/1/2020 |
2.1.0.15 | 1,197 | 1/1/2020 |
2.1.0.14 | 2,191 | 8/4/2018 |
2.1.0.13 | 1,487 | 7/8/2018 |
2.1.0.12 | 1,516 | 6/2/2018 |
2.1.0.11 | 3,582 | 8/25/2017 |
2.1.0.10 | 2,908 | 8/1/2015 |
2.1.0.9 | 1,773 | 5/2/2015 |
2.1.0.8 | 2,305 | 11/6/2014 |
2.1.0.7 | 3,272 | 9/15/2013 |
2.1.0.6 | 3,309 | 9/10/2012 |
DESIGN
======
* XML services now separated from the main code base into an interface-based design, which positions the code base to cleanly migrate away from an XML DOM implementation and into an LINQ-to-XML implementation compatible with .NET, WinRT, Universal Apps, and Xamarin. See the blog post at http://gepsio.wordpress.com/2014/06/30/positioning-gepsios-xml-service-layer-for-mobile-apps-and-the-windows-store/ for more information.
* The XLINK specification is now implemented in a specific class, and XBRL linkbase nodes now leverage Gepsio's implementation of XLINK. The following classes have been already refactored to leverage this support (more refactoring will be coming in future releases):
* FootnoteArc
* CalculationLink
* RoleReference (NEW)
* ArcroleReference (NEW)
* The classes designed to support XML Schema constructs have been moved into a separate namespace called JeffFerguson.Gepsio.Xsd to provide a clean separation between the XSD implementation and the main XBRL code. Since the XSD classes are implemented in terms of the interfaces defined and implemented in the XML namespace, the XSD classes do not need an interface-based design; instead, it simply leverages the XML service layer.
NEW CLASSES
===========
* The RoleReference class contains information regarding a <roleRef> element found in an XBRL fragment.
* The RoleReferenceValidationError class contains validation errors discovered in the role reference of a loaded document.
* The ArcroleReference class contains information regarding a <arcroleRef> element found in an XBRL fragment.
* The ArcroleReferenceValidationError class contains validation errors discovered in the arc role reference of a loaded document.
NEW PROPERTIES AVAILABLE ON PREVIOUSLY EXISTING CLASSES
=======================================================
* The CalculationLink class now contains a property of type Uri called RoleUri. See the blog post at http://gepsio.wordpress.com/2014/03/12/searching-for-balance-sheet-calculations-with-the-sep-2013-ctp for more informaiton regarding the need for this property.
* The XbrlFragment class now contains a property of type List<RoleReference> called RoleReferences. This collection contains one RoleReference object for each <roleRef> element found in the XBRL fragment.
* The XbrlFragment class now contains a property of type List<ArcroleReference> called ArcroleReferences. This collection contains one ArcroleReference object for each <arcroleRef> element found in the XBRL fragment.
NEW METHODS AVAILABLE ON PREVIOUSLY EXISTING CLASSES
====================================================
* LinkbaseDocument
* GetCalculationLink(): Finds the CalculationLink object having the given role.
* XbrlDocument
* GetCalculationLink(): Finds the CalculationLink object having the given role.
* GetRoleType(): Finds the RoleType object having the given ID.
* XbrlFragment
* GetCalculationLink(): Finds the CalculationLink object having the given role.
* GetRoleType(): Finds the RoleType object having the given ID.
* XbrlSchema
* GetCalculationLink(): Finds the CalculationLink object having the given role.
* GetRoleType(): Finds the RoleType object having the given ID.
CONFORMANCE
===========
* Changed conformance suite test from using XBRL-CONF-CR3-2007-03-05 to using XBRL-CONF-CR5-2012-01-24 at its source to get around the now-defunct references to UBMatrix.com found in the XBRL-CONF-CR3-2007-03-05 suite. See the blog post at http://gepsio.wordpress.com/2014/07/02/gepsios-xbrl-conformance-suite-unit-test-in-need-of-an-upgrade/ for more information.
* Validation for footnote as sources in custom arc roles is now supported. See the blog post at http://gepsio.wordpress.com/2014/07/09/better-validation-coming-for-footnote-arcs-and-arc-roles/ for more information.
* Shares-based units are now validated to ensure that the shares measure is defined within the http://www.xbrl.org/2003/instance namespace. This validation is tested by test variation 3014.15A in the XBRL-CONF-CR5-2012-01-24 Conformance Suite.
* Monetary item types are now validated to ensure that its unit does not use a ratio-based complex type. This validation is tested by test variation 304.26 in the XBRL-CONF-CR5-2012-01-24 Conformance Suite.
* Gepsio now reads and supports schema attributes defined within complex types in schemas. Gepsio now looks at schema attributes for "precision" and "decimals" fixed values and uses those values, if available, if the "precision" and "decimals" attributes are not found on the item itself. Item validation for pure item types now also runs the decimal item type validation, since the pure item type is derived from the decimal item type.
* Failures detected during the schema read process are now reported as XBRL validation errors.
* Role references in XBRL fragments are now checked to ensure that the role URIs are unique amongst the set of all role references in the fragment.
* Arcrole references in XBRL fragments are now checked to ensure that the role URIs are unique amongst the set of all arcrole references in the fragment.
CONFORMANCE TESTS IN XBRL-CONF-CR5-2012-01-24 PASSED BY GEPSIO
==============================================================
* Identifier Scope [Section 4.3 The Item Element]
* 301-01-IdScopeValid.xml [301.01 Valid example of id attribute.]
* 301-03-IdScopePeriodDiff.xml [301.03 Mismatch of periodType attribute and referenced context's period type.]
* 301-04-IdScopeContextRefToUnit.xml [301.04 contextRef has IDREF to unit element.]
* 301-05-IdScopeUnitRefToContext.xml [301.05 unitRef has IDREF to context element.]
* 301-06-FootnoteScopeValid.xml [301.06 Valid example of footnote link href attribute.]
* 301-08-FootnoteToContext.xml [301.08 href attribute is referencing to context element.]
* 301-09-FootnoteToUnit.xml [301.09 href attribute is referencing to unit element.]
* 301-10-FootnoteFromOutOfScope.xml [301.10 The instance contains two footnote links. The second one contains an arc with a from value that does not have a corresponding loc in the same extended link.]
* 301-11-FootnoteToOutOfScope.xml [301.11 The instance contains two footnote links. The second one contains an arc with a to value that does not have a corresponding footnote resource in the same extended link.]
* 301-12-FootnoteLocOutOfScope.xml [301.12 The instance contains a footnote link. In the footnote link there is a loc element that has an href that points to a fact in another instance document.]
* 301-13-FootnoteLocInScope.xml [301.13 The instance contains a footnote link. In the footnote link there is a loc element that has an href that points to a fact in the instance document using the instance document file name with a fragment identifier.]
* 301-14-FootnoteFromResource.xml [301.14 The instance contains a footnote link. The arc in the footnote link has a from value that matches a footnote resource. This is not valid for the fact-footnote arc role on the arc. The from must point to a loc which in turns points to a fact in the same instance document.]
* 301-15-FootnoteToLoc.xml [301.15 The instance contains a footnote link. The arc in the footnote link has a from value that matches a footnote resource. This is not valid for the fact-footnote arc role on the arc. The from must point to a loc which in turns points to a fact in the same instance document.]
* 301-16-FootnoteWithoutLang.xml [301.16 The xml:lang attribute is missing on the footnote resource.]
* 301-17-FootnoteCustomArcRole.xml [301.17 The footnote custom arc role can relate two footnotes to each other instead of just fact to footnote. (Only the standard footnote arc role is restricted to being from item or tuple locators.) Maybe this might be used to indicate how some footnote is "footnoting" another footnote.]
* Context Segments and Scenarios [Section 4.4 The Context Element]
* 302-01-SegmentValid.xml [302.01 Valid segment in a context]
* 302-02-SegmentNamespaceInvalid.xml [302.02 Invalid segment in a context; contains an element defined in xbrli namespace]
* 302-03-ScenarioValid.xml [302.03 Valid scenario in a context]
* 302-04-ScenarioNamespaceInvalid.xml [302.04 Invalid scenario in a context; contains an element defined in xbrli namespace]
* 302-05-SegmentSubstitutionInvalid.xml [302.05 Invalid segment in a context; contains an element in substitution group of xbrli:item]
* 302-06-ScenarioSubstitutionInvalid.xml [302.06 Invalid scenario in a context; contains an element in substitution group of xbrli:item]
* 302-07-SegmentEmptyContent.xml [302.07 Segment in a context contains an element with empty content]
* 302-08-ScenarioEmptyContent.xml [302.08 Scenario in a context contains an element with empty content]
* 302-09-PeriodDateTimeValid.xml [302.09 Valid duration context with start date earlier than end date]
* 302-10-PeriodDateTimeInvalid.xml [302.10 Invalid duration context with start date later than end date]
* 302-11-DecimalAttributeOnSegmentInconsistent.xbrl [302.11 Two contexts are S-Equal even though a decimal-valued attribute in their segment elements have different lexical representations. The contexts are S-equal, so a calculation inconsistency MUST be signaled.]
* 302-12-DecimalAttributeOnScenarioInconsistent.xbrl [302.12 Two contexts are S-Equal even though a decimal-valued attribute in their scenario elements have different lexical representations. The contexts are S-equal, so a calculation inconsistency MUST be signaled.]
* Period Type Consistency [Section 4.3 The Item Element]
* 303-01-PeriodInstantValid.xml [303.01 instant context and item defined with PeriodType="instant"]
* 303-02-PeriodDurationValid.xml [303.02 duration context and item defined with PeriodType="duration"]
* 303-03-PeriodInstantInvalid.xml [303.03 duration context and item defined with PeriodType="instant"]
* 303-04-PeriodDurationInvalid.xml [303.04 instant context and item defined with PeriodType="duration"]
* 303-05-ForeverElementewithInstancePeriodTypeReportedasForever.xbrl [ForeverConcept with Instant Period Type is not allowed]
* Unit of Measure Consistency [Section 4.4 The Context Element]
* 304-01-monetaryItemTypeUnitsRestrictions.xml [304.01 An element with a monetary item type has an ISO currency code for its units (using the standard ISO namespace prefix).]
* 304-02-monetaryItemTypeUnitsRestrictions.xml [304.02 An element with a monetary item type has an ISO currency code for its units (using a non-standard ISO namespace prefix).]
* 304-03-monetaryItemTypeUnitsRestrictions.xml [304.03 An element with a type derived by restriction from the monetary item type has an ISO currency code for its units.]
* 304-04-monetaryItemTypeUnitsRestrictions.xml [304.04 An element with a type derived by restriction from monetary item type has an ISO currency code for its units (using a non-standard ISO namespace prefix).]
* 304-05-monetaryItemTypeUnitsRestrictions.xml [304.05 An element with a non-monetary item type has an ISO currency code for its units (using the standard ISO namespace prefix).]
* 304-06-monetaryItemTypeUnitsRestrictions.xml [304.06 An element with a monetary item type does not have an ISO currency code for its units - the namespace is wrong.]
* 304-07-monetaryItemTypeUnitsRestrictions.xml [304.07 An element with a monetaryItemType does not have an ISO currency code for its units - the local name is wrong.]
* 304-08-monetaryItemTypeUnitsRestrictions.xml [304.08 An element with a type derived by restriction from monetaryItemType does not have an ISO currency code for its units - the namespace is wrong.]
* 304-09-monetaryItemTypeUnitsRestrictions.xml [304.09 An element with a type derived by restriction from monetaryItemType does not have an ISO currency code for its units - the local name is wrong.]
* 304-10-pureItemTypeUnitsRestrictions.xml [304.10 An item with a pureItemType data type MUST have a unit element and the local part of the measure MUST be "pure" with a namespace prefix that resolves to a namespace of "http://www.xbrl.org/2003/instance".]
* 304-11-pureItemTypeUnitsRestrictions.xml [A measure element with a namespace prefix that resolves to the "http://www.xbrl.org/2003/instance" namespace MUST have a local part of either "pure" or "shares". The value 'impure' is not a valid measure in the XBRL instance namespace.]
* 304-12-pureItemTypeUnitsRestrictions.xml [Unlike for monetaryItemType and sharesItemType, there is no constraint (in 4.8.2 or elsewhere) requiring an item with a pureItemType data type to have a particular kind of unit.]
* 304-12a-pureItemTypeUnitsRestrictions.xml [Same as V-12, but the pure measure has no prefix and the default namespace is undefined.]
* 304-13-sharesItemTypeUnitsRestrictions.xml [304.13 For facts that are of the sharesItemType, units MUST have A single measure element. The local part of the measure MUST be "shares" and the namespace prefix that MUST resolve to http://www.xbrl.org/2003/instance]
* 304-14-sharesItemTypeUnitsRestrictions.xml [304.14 For facts that are DERIVED BY RESTRICTION from the sharesItemType, units MUST have A single measure element. The local part of the measure MUST be "shares" and the namespace prefix that MUST resolve to http://www.xbrl.org/2003/instance]
* 304-15-pureItemTypeUnitsRestrictions.xml [304.15 For facts that are of shares item type, units MUST have A single measure element. The local part of the measure MUST be "shares" and the namespace prefix that MUST resolve to http://www.xbrl.org/2003/instance. In this case the unit has two measure elements, both of which are pure.]
* 304-15a-sharesItemTypeUnitsRestrictions.xml [Same as V-15 but in this case the unit has has shares but no prefix and the default namespace is undefined.]
* 304-16-unitsInSimplestForm.xml [304.16 The units must not have numerator and denominator measures that cancel.]
* 304-17-sameOrderMeasuresValid.xml [304.17 The units equality test which two units have same order measures.]
* 304-18-sameOrderDivisionMeasuresValid.xml [304.18 The units equality test which two units have same order divisions.]
* 304-19-differentOrderMeasuresValid.xml [304.19 The units equality test which two units have different order measures.]
* 304-20-differentOrderDivisionMeasuresValid.xml [304.20 The units equality test which two units have division elements which their order of child measures are different.]
* 304-21-measuresInvalid.xml [304.21 it tries to essence-alias equality of two elements with different units : where one is pure-feet and the second is pure-pounds. so the alias essence check is invalid and it should throw an error in xbrl validation]
* 304-22-divisionMeasuresInvalid.xml [304.22 The test tried to essense-alias equality check of two elements with different units : where one is unit between "pure-inch / pound-feet" and other "pure-feet / pound-inch". The tests is invalid as it should throw an error during xbrl validation.]
* 304-23-Calculation-item-does-not-match-unit.xml [Variation of 304-15 where the type of the fact value does not match that of the type of the reported element. Shares type versus Monetary unit]
* 304-24-valid-ISO-unit-of-measue.xml [Valid ISO unit of measurement example]
* 304-25-measure-reported-with-prefix-undefined-instance.xbrl [Measure reported with prefix undefined is considered XBRL invalid]
* 304-26-monetaryItemTypeUnitsRestrictions.xml [Monetary item reported with unit having a denominator.]
* Decimal and Precision Mutual Exclusion and prohibition on nil items [Section 4.4 Items]
* 305-01-DecimalOnlySpecified.xml [305.01 item has only Decimals specified]
* 305-02-PrecisionOnlySpecified.xml [305.02 item has only Precision specified]
* 305-03-NoDecimalOrPrecisionSpecified.xml [305.03 item has neither Decimals nor Precision specified]
* 305-04-BothDecimalAndPrecisionSpecified.xml [305.04 item has both Decimals and Precision specified]
* 305-05-DecimalSpecifiedOnNilItem.xml [305.05 nil item has Decimals specified]
* 305-06-PrecisionSpecifiedOnNilItem.xml [305.06 nil item has Precision specified]
* 305_07_invalid_instance.xbrl [305.07 a genuine inconsistency due to roll up of child values]
* 305-08-UnitsSpecifiedOnNilItem.xml [305.08 nil items have no decimals or precision, with unitref, but the type specifies fixed values for decimals and precision.]
* Required Arc in Definition Linkbase [Section 5.5.6.4.1.5]
* 306-01-RequiredInstanceValid.xml [306.01 The instance contains two elements in the same context. The presence of one element forces the presence of the other.]
* 306-02-RequiredInstanceTupleValid.xml [306.02 The instance contains an item and a tuple. The presence of the tuple forces the presence of the item.]
* 306-03-RequiredInstanceInvalid.xml [306.03 The instance contains an item and a tuple. The presence of the tuple forces the presence of the item.]
* Schema References [Section 5 Taxonomies]
* 307-01-SchemaRefExample.xml [307.01 A schemaRef element MUST hold the URI of a schema. In this case it does.]
* 307-02-SchemaRefCounterExample.xml [307.01 A schemaRef element MUST hold the URI of a schema. In this case it does not because the second reference to a schema actually points to an XML document that is a label linkbase. ]
* 307-03-SchemaRefXMLBase.xml [307.03 schemaRef elements MUST hold the URI of Schemas. In this case the requirement is not satisfied because the schema reference has to be resolved using the XML base attribute that ensures the schemaRef URI resolves to the XML document in the base directory. This document, however, is a label linkbase, not a schema. If the XML base attribute value is not used then the schema in the same directory as the instance is discovered and no issues are noticed.]
* Duplicate instance roleRef and duplicate arcroleRefs [3.5.2.4.5 and 3.5.2.5.5 duplicate instance roleRef and arcroleRef elements.]
* 308-01-instance.xml [Instance contains two role references to the same URI, INVALID]
* 308-02-instance.xml [Instance contains two arcrole references to the same URI, INVALID]
* LAX validation tests [Test that LAX validation is performed]
* 314-lax-validation-01.xml [Segment has an element for which there is no definition, so it is allowed; item has an attribute with no definition, so it is allowed. The definitions are imported to the discovered taxonomy.]
* 314-lax-validation-02.xml [Segment has an element for which there is no definition, so it is allowed; item has an attribute with no definition, so it is allowed. The definitions are found by schemaLocation from the instance document.]
* 314-lax-validation-03.xml [Same as v-01 but segment has an element defined as integer with string contents]