Skip to content

Commit

Permalink
updated links to IATI assets - breaks the initial codelist / country …
Browse files Browse the repository at this point in the history
…info parse otherwise
  • Loading branch information
rorads authored and Eimantas Stonys committed Aug 8, 2018
1 parent 0b487de commit 4fa9954
Show file tree
Hide file tree
Showing 33 changed files with 225 additions and 225 deletions.
2 changes: 1 addition & 1 deletion OIPA/iati/factory/iati_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ class Meta:
code = "code"
type = SubFactory(HumanitarianScopeTypeFactory)
vocabulary = SubFactory(HumanitarianScopeVocabularyFactory)
vocabulary_uri = "http://iatistandard.org/202/activity-standard/\
vocabulary_uri = "http://reference.iatistandard.org/202/activity-standard/\
iati-activities/iati-activity/humanitarian-scope/"


Expand Down
2 changes: 1 addition & 1 deletion OIPA/iati/parser/IATI_1_05.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def iati_activities__iati_activity__activity_date(self, element):
tag:activity-date"""
# TODO: should iati Rules be checked?
# http://iatistandard.org/201/activity-standard/iati-activities/iati-activity/activity-date/
# http://reference.iatistandard.org/201/activity-standard/iati-activities/iati-activity/activity-date/
type_name = element.attrib.get('type')
type_code = self.activity_date_type_mapping.get(type_name)

Expand Down
2 changes: 1 addition & 1 deletion OIPA/iati/parser/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2423,7 +2423,7 @@ def other_identifier(
if owner_ref:
pass
# TODO: check for valid org id
# http://iatistandard.org/202/activity-standard/iati-activities/iati-activity/other-identifier/owner-org/
# http://reference.iatistandard.org/202/activity-standard/iati-activities/iati-activity/other-identifier/owner-org/
# - 2016-12-07

validated_narratives = narratives(
Expand Down
68 changes: 34 additions & 34 deletions OIPA/iati/schemas/1.01/iati-activities-schema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

This W3C XML Schema defines an XML document type for information
about one or more aid-related activities, following the standard
published at http://iatistandard.org/
published at http://reference.iatistandard.org/

This document type may be extended with additional elements and
attributes, but they must belong to an explicit XML namespace.
Expand Down Expand Up @@ -123,7 +123,7 @@
<xsd:documentation xml:lang="en">
Default ISO 4217 currency code for all financial values in
this activity report. See
http://iatistandard.org/codelists/currency
http://reference.iatistandard.org/codelists/currency
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand Down Expand Up @@ -167,11 +167,11 @@
content.

For the value of the @type attribute, see
http://iatistandard.org/codelists/organisation-type
http://reference.iatistandard.org/codelists/organisation-type

For the value of the @ref attribute, see the list of
officially-registered organizations at
http://iatistandard.org/codelists/organisation
http://reference.iatistandard.org/codelists/organisation
</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
Expand All @@ -187,7 +187,7 @@
A code describing the organisation's role in the activity
(donor, agency, etc.).

See http://iatistandard.org/codelists/organisation_role
See http://reference.iatistandard.org/codelists/organisation_role
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand All @@ -205,7 +205,7 @@
geographical location, use the location element.

For the value of the @code attribute, see
http://iatistandard.org/codelists/country
http://reference.iatistandard.org/codelists/country
</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
Expand Down Expand Up @@ -238,7 +238,7 @@
use the location element.

For the value of the @code attribute, see
http://iatistandard.org/codelists/region
http://reference.iatistandard.org/codelists/region
</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
Expand Down Expand Up @@ -267,7 +267,7 @@
disbursements, e.g. "bilateral" or "multilateral".

For the value of the @code attribute, see
http://iatistandard.org/codelists/collaboration_type
http://reference.iatistandard.org/codelists/collaboration_type
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand All @@ -279,7 +279,7 @@
Assistance (ODA). Type types will be defined by IATI.

For the value of the @code attribute, see
http://iatistandard.org/codelists/flow_type
http://reference.iatistandard.org/codelists/flow_type
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand All @@ -293,7 +293,7 @@
individual transaction level.

For the value of the @code attribute, see
http://iatistandard.org/codelists/aid_type
http://reference.iatistandard.org/codelists/aid_type
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand All @@ -307,7 +307,7 @@
transactions.

For the value of the @code attribute, see
http://iatistandard.org/codelists/finance_type
http://reference.iatistandard.org/codelists/finance_type
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand All @@ -328,7 +328,7 @@
format.

See the list of officially-registered organizations at
http://iatistandard.org/codelists/organisation
http://reference.iatistandard.org/codelists/organisation
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand All @@ -348,7 +348,7 @@
<xsd:annotation>
<xsd:documentation xml:lang="en">
Sector code and name. For the value of the @code attribute,
see http://iatistandard.org/codelists/sector
see http://reference.iatistandard.org/codelists/sector
</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
Expand All @@ -365,7 +365,7 @@
aid with comparison and classification. If omitted,
assume DAC.

See http://iatistandard.org/codelists/vocabulary
See http://reference.iatistandard.org/codelists/vocabulary
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand All @@ -389,7 +389,7 @@
Planned starting date for the activity in ISO 8601 date
format, e.g. "2010-10-01". For the value of the @type
attribute, see
http://iatistandard.org/codelists/activity_date_type
http://reference.iatistandard.org/codelists/activity_date_type
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
Expand All @@ -416,7 +416,7 @@
<xsd:documentation xml:lang="en">
The current status of the project (e.g. "planned"), using a
list defined by IATI. For the value of the @code attribute,
see http://iatistandard.org/codelists/activity_status
see http://reference.iatistandard.org/codelists/activity_status
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand Down Expand Up @@ -487,7 +487,7 @@
using a code list created by IATI. The content is free text
that can optionally provide more detail. For the value of the
@code attribute, see
http://iatistandard.org/codelists/tied_status
http://reference.iatistandard.org/codelists/tied_status
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand All @@ -501,7 +501,7 @@
attribute can also help to segment the markers into separate
vocabularies. This element can be repeated for each policy
marker. For the value of the @code attribute, see
http://iatistandard.org/codelists/policy_marker
http://reference.iatistandard.org/codelists/policy_marker
</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
Expand All @@ -517,7 +517,7 @@
into different vocabularies (e.g. Rio, Environment) to aid
with comparison and classification.

See http://iatistandard.org/codelists/vocabulary
See http://reference.iatistandard.org/codelists/vocabulary
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand All @@ -529,7 +529,7 @@
IATI. If a marker is not significant, the policy-marker
element will not be present.

See http://iatistandard.org/codelists/policy_significance
See http://reference.iatistandard.org/codelists/policy_significance
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand Down Expand Up @@ -572,7 +572,7 @@
optional free-text description of the type.

For the value of the @code attribute, see
http://iatistandard.org/codelists/transaction_type
http://reference.iatistandard.org/codelists/transaction_type
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand All @@ -585,7 +585,7 @@

For the value of the @ref attribute, see the list of
officially-registered organizations at
http://iatistandard.org/codelists/organisation
http://reference.iatistandard.org/codelists/organisation
</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
Expand Down Expand Up @@ -614,7 +614,7 @@

For the value of the @ref attribute, see the list of
officially-registered organizations at
http://iatistandard.org/codelists/organisation
http://reference.iatistandard.org/codelists/organisation
</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
Expand Down Expand Up @@ -663,7 +663,7 @@
default-flow-type element.

For the value of the @code attribute, see
http://iatistandard.org/codelists/flow_type
http://reference.iatistandard.org/codelists/flow_type
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand All @@ -675,7 +675,7 @@
transaction-by-transaction basis if needed.

For the value of the @code attribute, see
http://iatistandard.org/codelists/aid_type
http://reference.iatistandard.org/codelists/aid_type
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand All @@ -687,7 +687,7 @@
transaction-by-transaction basis, if needed.

For the value of the @code attribute, see
http://iatistandard.org/codelists/finance_type
http://reference.iatistandard.org/codelists/finance_type
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand All @@ -699,7 +699,7 @@
transaction-by-transaction basis if needed.

For the value of the @code attribute, see
http://iatistandard.org/codelists/tied_status
http://reference.iatistandard.org/codelists/tied_status
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand Down Expand Up @@ -733,7 +733,7 @@
entity), from an IATI-defined subset of the UCPD/Aiddata
code list.

See http://iatistandard.org/codelists/location_type
See http://reference.iatistandard.org/codelists/location_type
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand Down Expand Up @@ -773,7 +773,7 @@
(e.g. "GB" for the United Kingdom).

For the @code attribute, see
http://iatistandard.org/codelists/country
http://reference.iatistandard.org/codelists/country
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand All @@ -783,7 +783,7 @@
The UNSALB level-one administrative code for a
subdivision of a country.

See http://iatistandard.org/codelists/admin1
See http://reference.iatistandard.org/codelists/admin1
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand All @@ -793,7 +793,7 @@
The UNSALB level-two administrative code for a
subdivision of a country.

See http://iatistandard.org/codelists/admin2
See http://reference.iatistandard.org/codelists/admin2
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand Down Expand Up @@ -833,7 +833,7 @@
the location (e.g. "2" for within 25 km of the
specified latitude/longitude).

See http://iatistandard.org/codelists/geographical_precision
See http://reference.iatistandard.org/codelists/geographical_precision
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand All @@ -857,7 +857,7 @@
<xsd:documentation xml:lang="en">
Reference to the gazetteer containing the entry.

See http://iatistandard.org/codelists/gazetteer_agency
See http://reference.iatistandard.org/codelists/gazetteer_agency
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand Down Expand Up @@ -889,7 +889,7 @@
transactions.

For the value of the @type attribute, see
http://iatistandard.org/codelists/related_activity_type
http://reference.iatistandard.org/codelists/related_activity_type
</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
Expand Down
10 changes: 5 additions & 5 deletions OIPA/iati/schemas/1.01/iati-common.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@
organisation name as content.

For the value of the @type attribute, see
http://iatistandard.org/codelists/organisation-type
http://reference.iatistandard.org/codelists/organisation-type

For the value of the @ref attribute, see the list of
officially-registered organizations at
http://iatistandard.org/codelists/organisation
http://reference.iatistandard.org/codelists/organisation
</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
Expand Down Expand Up @@ -120,7 +120,7 @@
least once, and may be repeated for multiple categories.

For the value of the @code attribute, see
http://iatistandard.org/codelists/document_category
http://reference.iatistandard.org/codelists/document_category
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Expand All @@ -138,7 +138,7 @@
<xsd:documentation xml:lang="en">
The MIME type of the external document,
e.g. "application/pdf". A partial list of MIME types
appears at http://iatistandard.org/codelists/file_format
appears at http://reference.iatistandard.org/codelists/file_format
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand Down Expand Up @@ -301,7 +301,7 @@
iati-activity/@default-currency attribute is specified.

Currency codes are listed at
http://iatistandard.org/codelists/currency
http://reference.iatistandard.org/codelists/currency
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand Down
2 changes: 1 addition & 1 deletion OIPA/iati/schemas/1.01/iati-organisations-schema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

This W3C XML Schema defines an XML document type for information
about an aid organisation, following the standard published at
http://iatistandard.org
http://reference.iatistandard.org

This document type may be extended with additional elements and
attributes, but they must belong to an explicit XML namespace.
Expand Down
4 changes: 2 additions & 2 deletions OIPA/iati/schemas/1.01/iati-registry-record-schema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
<xsd:documentation xml:lang="en">
A code specifying whether the information in this record has been verified.

See http://iatistandard.org/codelists/verification_status
See http://reference.iatistandard.org/codelists/verification_status
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand All @@ -181,7 +181,7 @@
A MIME type describing the content of the file,
e.g. "application/x-iati+xml" for an IATI XML file.

See http://iatistandard.org/codelists/file_format for a partial list
See http://reference.iatistandard.org/codelists/file_format for a partial list
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand Down
Loading

0 comments on commit 4fa9954

Please sign in to comment.