Skip to content

Commit

Permalink
mention the use of ISO 3166-1 adjuncts, use OMG's preferred prefix, f…
Browse files Browse the repository at this point in the history
…ixes issue #6
  • Loading branch information
hroptatyr committed Aug 24, 2022
1 parent fe6b3a2 commit f098326
Show file tree
Hide file tree
Showing 10 changed files with 3,080 additions and 3,077 deletions.
772 changes: 386 additions & 386 deletions BusinessCentersIndividuals.ttl

Large diffs are not rendered by default.

72 changes: 36 additions & 36 deletions MarketsIndividuals-hist.ttl

Large diffs are not rendered by default.

5,144 changes: 2,572 additions & 2,572 deletions MarketsIndividuals.ttl

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ The Makefile contains some recipes to assemble a file that resembles FIBO's.

For MarketsIndividuals the primary source is the latest list of Market Identifier Codes
in the new data structure and format, to be obtained here:
<https://www.iso20022.org/market-identifier-codes>.
<https://www.iso20022.org/market-identifier-codes>. The choice of vocabulary is largely
identical to FIBO's, except for `fibo-fbc-fct-mkt:operatesInCountry` which refers to
ISO 3166-1 codes per means of [ISO3166-1-CountryCodes-Adjunct](https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes-Adjunct/),
i.e. `lcc-3166-1-adj:BM` is used instead of `lcc-3166-1:Bermuda`.

For BusinessCentersIndividuals the primary source is the latest business-center spec
file as published by FpML working group: <https://www.fpml.org/coding-scheme/>.
Expand Down
18 changes: 9 additions & 9 deletions patches/bci.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ index a0b4c78..6992a4e 100644
+ a fibo-fnd-plc-loc:BusinessCenter ;
+ a owl:NamedIndividual ;
+ dct:description "the international business center of Ho Chi Minh (formerly Saigon)" ;
+ lcc-cr:isPartOf cc:VN ;
+ lcc-cr:isPartOf lcc-3166-1-adj:VN ;
+ rdfs:label "Ho Chi Minh (formerly Saigon)" .
+
+fibo-fbc-fct-bci:
+ a fibo-fnd-plc-loc:BusinessCenter ;
+ a owl:NamedIndividual ;
+ dct:description "the international business center of " ;
+ lcc-cr:isPartOf cc:BR , cc:ES , cc:EU , cc:GB , cc:IL , cc:NY , cc:US ;
+ lcc-cr:isPartOf lcc-3166-1-adj:BR , lcc-3166-1-adj:ES , lcc-3166-1-adj:EU , lcc-3166-1-adj:GB , lcc-3166-1-adj:IL , lcc-3166-1-adj:NY , lcc-3166-1-adj:US ;
+ rdfs:label "" .
+
fibo-fbc-fct-bci:AEAB
Expand Down Expand Up @@ -104,7 +104,7 @@ index a0b4c78..6992a4e 100644
+ a fibo-fnd-plc-loc:BusinessCenter ;
+ a owl:NamedIndividual ;
+ dct:description "the international business center of Dusseldorf" ;
+ lcc-cr:isPartOf cc:DE ;
+ lcc-cr:isPartOf lcc-3166-1-adj:DE ;
+ owl:sameAs fibo-fbc-fct-bci:Duesseldorf ;
+ rdfs:label "Dusseldorf" .

Expand Down Expand Up @@ -159,8 +159,8 @@ index a0b4c78..6992a4e 100644
a fibo-fnd-plc-loc:BusinessCenter ;
a owl:NamedIndividual ;
dct:description "the international business center of Guatemala City" ;
- lcc-cr:isPartOf cc:GT ;
+ lcc-cr:isPartOf cc:GT , cc:GU ;
- lcc-cr:isPartOf lcc-3166-1-adj:GT ;
+ lcc-cr:isPartOf lcc-3166-1-adj:GT , lcc-3166-1-adj:GU ;
rdfs:label "Guatemala City" ;
skos:closeMatch <http://dbpedia.org/resource/Guatemala_City> , <http://sws.geonames.org/3598132/> ;
time:timeZone <http://dbpedia.org/resource/America/Guatemala> .
Expand All @@ -182,7 +182,7 @@ index a0b4c78..6992a4e 100644
+ a fibo-fnd-plc-loc:BusinessCenter ;
+ a owl:NamedIndividual ;
+ dct:description "the international business center of Kiev" ;
+ lcc-cr:isPartOf cc:UA ;
+ lcc-cr:isPartOf lcc-3166-1-adj:UA ;
+ owl:sameAs fibo-fbc-fct-bci:Kyiv ;
+ rdfs:label "Kiev" .

Expand All @@ -208,7 +208,7 @@ index a0b4c78..6992a4e 100644
+ a fibo-fnd-plc-loc:BusinessCenter ;
+ a owl:NamedIndividual ;
+ dct:description "the international business center of Makati" ;
+ lcc-cr:isPartOf cc:PH ;
+ lcc-cr:isPartOf lcc-3166-1-adj:PH ;
+ owl:sameAs fibo-fbc-fct-bci:Makati_City ;
+ rdfs:label "Makati" .

Expand Down Expand Up @@ -255,7 +255,7 @@ index a0b4c78..6992a4e 100644
+ a fibo-fnd-plc-loc:BusinessCenter ;
+ a owl:NamedIndividual ;
+ dct:description "the international business center of Teheran" ;
+ lcc-cr:isPartOf cc:IR ;
+ lcc-cr:isPartOf lcc-3166-1-adj:IR ;
+ owl:sameAs fibo-fbc-fct-bci:Tehran ;
+ rdfs:label "Teheran" .

Expand Down Expand Up @@ -301,7 +301,7 @@ index a0b4c78..6992a4e 100644
+ a fibo-fnd-plc-loc:BusinessCenter ;
+ a owl:NamedIndividual ;
+ dct:description "the international business center of Ulan Bator" ;
+ lcc-cr:isPartOf cc:MN ;
+ lcc-cr:isPartOf lcc-3166-1-adj:MN ;
+ owl:sameAs fibo-fbc-fct-bci:Ulaanbaatar ;
+ rdfs:label "Ulan Bator" .

Expand Down
134 changes: 67 additions & 67 deletions patches/mkti.patch

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion shacl/BusinessCentersIndividuals.shacl.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@prefix cc: <https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes-Adjunct/> .
@prefix lcc-3166-1-adj: <https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes-Adjunct/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix fibo-fbc-fct-bc: <https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/BusinessCenters/> .
@prefix fibo-fbc-fct-bci: <https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/BusinessCentersIndividuals/> .
Expand Down
2 changes: 1 addition & 1 deletion shacl/MarketsIndividuals.shacl.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@prefix cc: <https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes-Adjunct/> .
@prefix lcc-3166-1-adj: <https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes-Adjunct/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix fibo-fbc-fct-bc: <https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/BusinessCenters/> .
@prefix fibo-fbc-fct-bci: <https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/BusinessCentersIndividuals/> .
Expand Down
4 changes: 2 additions & 2 deletions sql/FpML.tarql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PREFIX cc: <https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes-Adjunct/>
PREFIX lcc-3166-1-adj: <https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes-Adjunct/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX fibo-fbc-fct-bc: <https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/BusinessCenters/>
PREFIX fibo-fbc-fct-bci: <https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/BusinessCentersIndividuals/>
Expand Down Expand Up @@ -40,7 +40,7 @@ WHERE {
" ", "_"),
"\\.", "") AS ?_iril)
BIND(URI(CONCAT(STR(fibo-fbc-fct-bci:),?_iril)) AS ?iedge)
BIND(URI(CONCAT(STR(cc:),SUBSTR(?Code,1,2))) AS ?_cccc)
BIND(URI(CONCAT(STR(lcc-3166-1-adj:),SUBSTR(?Code,1,2))) AS ?_cccc)

BIND(CONCAT("the FpML business center code for ", ?Description) AS ?_desc)
BIND(CONCAT("the international business center of ",?_ilbl) AS ?_desi)
Expand Down
4 changes: 2 additions & 2 deletions sql/ISO10383.tarql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PREFIX cc: <https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes-Adjunct/>
PREFIX lcc-3166-1-adj: <https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes-Adjunct/>
PREFIX dbo: <https://dbpedia.org/ontology/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX fibo-fbc-fct-bci: <https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/BusinessCentersIndividuals/>
Expand Down Expand Up @@ -55,7 +55,7 @@ WHERE {
BIND(URI(CONCAT(STR(fibo-fbc-fct-mkti:),'Exchange-',?MIC)) AS ?exedge)
BIND(URI(CONCAT(STR(fibo-fbc-fct-mkti:),'MIC-',?MIC)) AS ?micedge)
BIND(IF(?MIC != ?OPERATING_MIC,URI(CONCAT(STR(fibo-fbc-fct-mkti:),'Exchange-',?OPERATING_MIC)),?null) AS ?sgop)
BIND(URI(CONCAT(STR(cc:), ?ISO_COUNTRY_CODE__ISO_3166_)) AS ?_iso)
BIND(URI(CONCAT(STR(lcc-3166-1-adj:), ?ISO_COUNTRY_CODE__ISO_3166_)) AS ?_iso)
BIND(URI(CONCAT(STR(fibo-fbc-fct-bci:), REPLACE(?CITY, " ", "_"))) AS ?_mun)
BIND(URI(CONCAT(STR(gleif:), 'L-', ?LEI, '-LEI')) AS ?_lei)

Expand Down

0 comments on commit f098326

Please sign in to comment.