-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schema.py: Allow passing as Python object
Allow the calling application to load the schema rather than flatten-tool Partial work around for: #447
- Loading branch information
Ed (ODSC)
committed
Dec 12, 2024
1 parent
e29ab09
commit fba9979
Showing
18 changed files
with
2,217 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addresses/0/type,addresses/0/address,addresses/0/postCode,addresses/0/country,statementID | ||
service,"Aston House, Cornwall Avenue, London",N3 1LF,GB,019a93f1-e470-42e9-957b-03559861b2e2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
annotations/0/statementPointerTarget,annotations/0/creationDate,annotations/0/createdBy/name,annotations/0/createdBy/uri,annotations/0/motivation,annotations/0/description,annotations/0/transformedContent,annotations/0/url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
identifiers/0/id,identifiers/0/scheme,identifiers/0/schemeName,identifiers/0/uri,statementID | ||
07444723,GB-COH,,,1dc0e987-5c57-4a1c-b3ad-61353b66a9b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
interests/0/type,interests/0/directOrIndirect,interests/0/beneficialOwnershipOrControl,interests/0/details,interests/0/share/exact,interests/0/share/maximum,interests/0/share/minimum,interests/0/share/exclusiveMinimum,interests/0/share/exclusiveMaximum,interests/0/startDate,interests/0/endDate,statementID | ||
shareholding,direct,True,,100,100,100,,,2016-04-06,,fbfd0547-d0c6-4a00-b559-5c5e91c34f5c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
statementID,statementType,statementDate,isComponent,entityType,unspecifiedEntityDetails/reason,unspecifiedEntityDetails/description,name,alternateNames,jurisdiction/name,jurisdiction/code,foundingDate,dissolutionDate,uri,replacesStatements,publicationDetails/publicationDate,publicationDetails/bodsVersion,publicationDetails/license,publicationDetails/publisher/name,publicationDetails/publisher/url,source/type,source/description,source/url,source/retrievedAt,publicListing/hasPublicListing,publicListing/companyFilingsURLs,entitySubtype/generalCategory,entitySubtype/localTerm,formedByStatute/name,formedByStatute/date,personType,unspecifiedPersonDetails/reason,unspecifiedPersonDetails/description,placeOfBirth/type,placeOfBirth/address,placeOfBirth/postCode,placeOfBirth/country,birthDate,deathDate,placeOfResidence/type,placeOfResidence/address,placeOfResidence/postCode,placeOfResidence/country,politicalExposure/status,componentStatementIDs,subject/describedByEntityStatement,interestedParty/describedByEntityStatement,interestedParty/describedByPersonStatement,interestedParty/unspecified/reason,interestedParty/unspecified/description,publicListing/securitiesListings | ||
1dc0e987-5c57-4a1c-b3ad-61353b66a9b7,entityStatement,2017-11-18,False,registeredEntity,,,CHRINON LTD,,,,2010-11-18,,,,2018-02-13,0.3,,CHRINON LTD,,,,,,True,http://example.com/,,,,,,,,,,,,,,,,,,,,,,,,, | ||
019a93f1-e470-42e9-957b-03559861b2e2,personStatement,2017-11-18,False,,,,,,,,,,,,2018-02-13,0.3,,CHRINON LTD,,,,,,,,,,,,knownPerson,,,,,,,1964-04,,,,,,,,,,,,, | ||
fbfd0547-d0c6-4a00-b559-5c5e91c34f5c,ownershipOrControlStatement,2017-11-18,False,,,,,,,,,,,,2018-02-13,0.3,,CHRINON LTD,,,,,,,,,,,,,,,,,,,,,,,,,,,1dc0e987-5c57-4a1c-b3ad-61353b66a9b7,,019a93f1-e470-42e9-957b-03559861b2e2,,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
names/0/type,names/0/fullName,names/0/familyName,names/0/givenName,names/0/patronymicName,statementID | ||
individual,Christopher Taggart,Taggart,Christopher,,019a93f1-e470-42e9-957b-03559861b2e2 | ||
alternative,Chris Taggart,,,,019a93f1-e470-42e9-957b-03559861b2e2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nationalities/0/name,nationalities/0/code,statementID | ||
United Kingdom of Great Britain and Northern Ireland (the),GB,019a93f1-e470-42e9-957b-03559861b2e2 |
1 change: 1 addition & 0 deletions
1
flattentool/tests/fixtures/basic_1.csv/pol_det_sou_assertedBy.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
politicalExposure/details/0/source/assertedBy/0/name,politicalExposure/details/0/source/assertedBy/0/uri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
politicalExposure/details/0/reason,politicalExposure/details/0/missingInfoReason,politicalExposure/details/0/jurisdiction/name,politicalExposure/details/0/jurisdiction/code,politicalExposure/details/0/startDate,politicalExposure/details/0/endDate,politicalExposure/details/0/source/type,politicalExposure/details/0/source/description,politicalExposure/details/0/source/url,politicalExposure/details/0/source/retrievedAt |
1 change: 1 addition & 0 deletions
1
flattentool/tests/fixtures/basic_1.csv/pub_securitiesListings.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
publicListing/securitiesListings/0/marketIdentifierCode,publicListing/securitiesListings/0/operatingMarketIdentifierCode,publicListing/securitiesListings/0/stockExchangeJurisdiction,publicListing/securitiesListings/0/stockExchangeName,publicListing/securitiesListings/0/security/idScheme,publicListing/securitiesListings/0/security/id,publicListing/securitiesListings/0/security/ticker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
source/assertedBy/0/name,source/assertedBy/0/uri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
taxResidencies/0/name,taxResidencies/0/code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
[ | ||
{ | ||
"statementID": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", | ||
"statementType": "entityStatement", | ||
"isComponent": false, | ||
"statementDate": "2017-11-18", | ||
"entityType": "registeredEntity", | ||
"name": "CHRINON LTD", | ||
"foundingDate": "2010-11-18", | ||
"identifiers": [ | ||
{ | ||
"scheme": "GB-COH", | ||
"id": "07444723" | ||
} | ||
], | ||
"publicListing": { | ||
"hasPublicListing": true, | ||
"companyFilingsURLs": ["http://example.com/"], | ||
"securitiesListings": [] | ||
}, | ||
"publicationDetails": { | ||
"publicationDate": "2018-02-13", | ||
"bodsVersion": "0.3", | ||
"publisher": { | ||
"name": "CHRINON LTD" | ||
} | ||
} | ||
}, | ||
{ | ||
"statementID": "019a93f1-e470-42e9-957b-03559861b2e2", | ||
"statementType": "personStatement", | ||
"isComponent": false, | ||
"statementDate": "2017-11-18", | ||
"personType": "knownPerson", | ||
"nationalities": [ | ||
{ | ||
"code": "GB", | ||
"name": "United Kingdom of Great Britain and Northern Ireland (the)" | ||
} | ||
], | ||
"names": [ | ||
{ | ||
"type": "individual", | ||
"fullName": "Christopher Taggart", | ||
"givenName": "Christopher", | ||
"familyName": "Taggart" | ||
}, | ||
{ | ||
"type": "alternative", | ||
"fullName": "Chris Taggart" | ||
} | ||
], | ||
"birthDate": "1964-04", | ||
"addresses": [ | ||
{ | ||
"type": "service", | ||
"address": "Aston House, Cornwall Avenue, London", | ||
"country": "GB", | ||
"postCode": "N3 1LF" | ||
} | ||
], | ||
"publicationDetails": { | ||
"publicationDate": "2018-02-13", | ||
"bodsVersion": "0.3", | ||
"publisher": { | ||
"name": "CHRINON LTD" | ||
} | ||
} | ||
}, | ||
{ | ||
"statementID": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", | ||
"statementType": "ownershipOrControlStatement", | ||
"isComponent": false, | ||
"statementDate": "2017-11-18", | ||
"subject": { | ||
"describedByEntityStatement": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7" | ||
}, | ||
"interestedParty": { | ||
"describedByPersonStatement": "019a93f1-e470-42e9-957b-03559861b2e2" | ||
}, | ||
"interests": [ | ||
{ | ||
"type": "shareholding", | ||
"directOrIndirect": "direct", | ||
"beneficialOwnershipOrControl": true, | ||
"startDate": "2016-04-06", | ||
"share": { | ||
"exact": 100, | ||
"minimum": 100, | ||
"maximum": 100 | ||
} | ||
} | ||
], | ||
"publicationDetails": { | ||
"publicationDate": "2018-02-13", | ||
"bodsVersion": "0.3", | ||
"publisher": { | ||
"name": "CHRINON LTD" | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.