Australian Tax Office XBRL - Accessing data outside of contexts

Feb 8, 2016 at 1:31 AM
Hello,

I am attempting to read an Australian Tax Office XBRL document, The document contains 2 XBRL contexts then flat data with a contextRef attribute matching the ID attribute of one of the contexts.

Am I able to access these linked data elements with Gepsio?
<xbrli:xbrl xsi:schemaLocation="http://xbrl.org/2006/xbrldi http://www.xbrl.org/2006/xbrldi-2006.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:smat2.0001.list.req.02.00="http://sbr.gov.au/rprt/ato/smat2/smat2.0001.list.request.02.00.report" xmlns:dtyp.02.16="http://sbr.gov.au/fdtn/sbr.02.16.dtyp" xmlns:RprtPyType.02.11="http://sbr.gov.au/dims/RprtPyType.02.11.dims" xmlns:dtyp.02.17="http://sbr.gov.au/fdtn/sbr.02.17.dtyp" xmlns:ref="http://www.xbrl.org/2006/ref" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:SqNumDim.02.01="http://sbr.gov.au/dims/SqNumDim.02.01.dims" xmlns:dtyp.02.00="http://sbr.gov.au/fdtn/sbr.02.00.dtyp" xmlns:dtyp.02.26="http://sbr.gov.au/fdtn/sbr.02.26.dtyp" xmlns:pyde.02.12="http://sbr.gov.au/icls/py/pyde/pyde.02.12.data" xmlns:emsup.02.20="http://sbr.gov.au/icls/em/emsup/emsup.02.20.data" xmlns:smat2.0001.prv.02.00="http://sbr.gov.au/rprt/ato/smat2/smat2.0001.private.02.00.module" xmlns:pyid.02.10="http://sbr.gov.au/icls/py/pyid/pyid.02.10.data" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:dtyp.02.13="http://sbr.gov.au/fdtn/sbr.02.13.dtyp" xmlns:dtyp.02.28="http://sbr.gov.au/fdtn/sbr.02.28.dtyp" xmlns:dtyp.02.03="http://sbr.gov.au/fdtn/sbr.02.03.dtyp" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:pyde.02.00="http://sbr.gov.au/icls/py/pyde/pyde.02.00.data" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:pyde.02.08="http://sbr.gov.au/icls/py/pyde/pyde.02.08.data" xmlns:tech.01.02="http://sbr.gov.au/fdtn/sbr.01.02.tech" xmlns:xbrldi="http://xbrl.org/2006/xbrldi" xmlns:pyde.02.01="http://sbr.gov.au/icls/py/pyde/pyde.02.01.data" xmlns:tech.01.03="http://sbr.gov.au/fdtn/sbr.01.03.tech" xmlns:emsup.02.08="http://sbr.gov.au/icls/em/emsup/emsup.02.08.data" xmlns:xbrli="http://www.xbrl.org/2003/instance">
  <link:schemaRef xlink:type="simple" xlink:href="../../../Desktop/sbr_au/sbr_au_reports/ato/smat2/smat2_0001/smat2.0001.list.request.02.00.report.xsd"/>
  
   <xbrli:context id="Context_Duration_ReportingParty">
    <xbrli:entity>
      <xbrli:identifier scheme="http://www.abr.gov.au/abn">11000703613</xbrli:identifier>
      <xbrli:segment>
        <xbrldi:explicitMember dimension="RprtPyType.02.11:ReportPartyTypeDimension">RprtPyType.02.11:ReportingParty</xbrldi:explicitMember>
      </xbrli:segment>
    </xbrli:entity>
    <xbrli:period>
      <xbrli:startDate>2014-07-01</xbrli:startDate>
      <xbrli:endDate>2014-07-01</xbrli:endDate>
    </xbrli:period>
  </xbrli:context>
 
  <xbrli:context id="Context_Duration_SuperFundMember">
    <xbrli:entity>
      <xbrli:identifier scheme="http://www.ato.gov.au/tfn">28918854</xbrli:identifier>
      <xbrli:segment>
        <xbrldi:explicitMember dimension="RprtPyType.02.11:ReportPartyTypeDimension">RprtPyType.02.11:SuperFundMember</xbrldi:explicitMember>
      </xbrli:segment>
    </xbrli:entity>
    <xbrli:period>
      <xbrli:startDate>2014-07-01</xbrli:startDate>
      <xbrli:endDate>2014-07-01</xbrli:endDate>
    </xbrli:period>
  </xbrli:context>
  
  <pyde.02.00:OrganisationNameDetails.OrganisationalName.Text contextRef="Context_Duration_ReportingParty">ABC Super Fund</pyde.02.00:OrganisationNameDetails.OrganisationalName.Text>
  <pyde.02.00:PersonNameDetails.FamilyName.Text contextRef="Context_Duration_SuperFundMember">Jones</pyde.02.00:PersonNameDetails.FamilyName.Text>
  <pyde.02.00:PersonNameDetails.GivenName.Text contextRef="Context_Duration_SuperFundMember">Tom</pyde.02.00:PersonNameDetails.GivenName.Text>
  <pyde.02.00:PersonNameDetails.OtherGivenName.Text contextRef="Context_Duration_SuperFundMember">James</pyde.02.00:PersonNameDetails.OtherGivenName.Text>
  <pyde.02.12:PersonDemographicDetails.Birth.DayofMonth contextRef="Context_Duration_SuperFundMember">---24</pyde.02.12:PersonDemographicDetails.Birth.DayofMonth>
  <pyde.02.12:PersonDemographicDetails.Birth.Month contextRef="Context_Duration_SuperFundMember">--11</pyde.02.12:PersonDemographicDetails.Birth.Month>
  <pyde.02.12:PersonDemographicDetails.Birth.Year contextRef="Context_Duration_SuperFundMember">1977</pyde.02.12:PersonDemographicDetails.Birth.Year>
  <pyid.02.10:Identifiers.SuperannuationMemberAccount.Identifier contextRef="Context_Duration_SuperFundMember">BB001</pyid.02.10:Identifiers.SuperannuationMemberAccount.Identifier>
  <emsup.02.20:SuperannuationPayment.Consolidation.Indicator contextRef="Context_Duration_SuperFundMember">false</emsup.02.20:SuperannuationPayment.Consolidation.Indicator>
  <pyde.02.00:AddressDetails.Line1.Text contextRef="Context_Duration_SuperFundMember">66 Edmond Street</pyde.02.00:AddressDetails.Line1.Text>
  <pyde.02.00:AddressDetails.LocalityName.Text contextRef="Context_Duration_SuperFundMember">Ballarat</pyde.02.00:AddressDetails.LocalityName.Text>
  <pyde.02.00:AddressDetails.Postcode.Text contextRef="Context_Duration_SuperFundMember">3350</pyde.02.00:AddressDetails.Postcode.Text>
  <pyde.02.00:AddressDetails.StateOrTerritory.Code contextRef="Context_Duration_SuperFundMember">VIC</pyde.02.00:AddressDetails.StateOrTerritory.Code>
  </xbrli:xbrl>
Coordinator
Feb 9, 2016 at 8:23 PM
Hello, and thank you for the question!

Just so that I am clear on your question --- are you looking for all of the XBRL facts that match a given context ID?
Coordinator
Feb 23, 2016 at 12:39 PM
Yes, that should be possible. If you can tell me what you're trying to do, I can write up a code sample. Are you trying to find the XBRL fact with a given context? What would you like the sample to do?
Feb 23, 2016 at 9:00 PM
Hello,

My apologies. I have been on Parental Leave so have only got back to this today.

Yes, I am trying to retrieve all facts that match a specific context id. I also don't have the xsd file referred to in the link:schemaRef tag
Coordinator
Feb 26, 2016 at 12:37 PM
rheffernan wrote:
My apologies. I have been on Parental Leave so have only got back to this today. Yes, I am trying to retrieve all facts that match a specific context id.
I will be happy to provide a sample for you of how to do that. Do you have the URL of the XBRL document that you're loading, and the context ID you're looking for?
I also don't have the xsd file referred to in the link:schemaRef tag
You don't need it, as long as Gepsio can chase down the URL and find it on the Internet for you.
Feb 28, 2016 at 2:54 AM
A sample of the document is the one I pasted in my original post, that is the complete document. It is not available via URL as they come to me as individual files.

I need to iterate ALL context IDs in the document.

The schemaRef file is a relative path and not an internet based URL, I don't have access to the file.
Coordinator
Feb 28, 2016 at 9:11 PM
Hi there - Gepsio will not be able to parse this instance as is, since it will not be able to resolve the <schemaRef> element. Is there any way to get a copy of the referenced schema?