Coder Social home page Coder Social logo

Comments (3)

andylolz avatar andylolz commented on July 30, 2024 1

Seems worth tagging @davidmegginson and @Bjwebb here, since I guess this was an early design decision.

from iati-schemas.

davidmegginson avatar davidmegginson commented on July 30, 2024

Thinking back 9 years, I'm pretty sure it was because schemas and vocabularies are maintained separately. The schema can change without a change in the vocabularies, and vice-versa, so we didn't want to hard-code the vocabularies into the schemas. Also, initially many (most?) of the vocabularies were maintained by the OECD DAC people, not IATI, and a good number still have outside maintainers (for example, OCHA controls some of the humanitarian vocabularies).

Using XSD was a hard decision for other reasons. RelaxNG is a much-more flexible schema language, which would allow us to have elements until iati-activity appear in any order -- it seemed stupid to force a spurious validation error on an XML dataset just because someone put sector and transaction in the wrong (arbitrarily-chosen) order. But we knew that XSD had much-wider tool support, especially in commercial products, and didn't want to throw up a different barrier for users.

from iati-schemas.

jpmckinney avatar jpmckinney commented on July 30, 2024

Makes sense!

In terms of versioning schemas and codelists separately: The vocabularies can be xsd:import'ed into the schema (as they are in the EU example). To not fix a given version of the schema to a specific version of a given vocabulary, the vocabulary URL can redirect to the latest allowed version for that schema.

Anyhow, I don't know if this is something worth considering for future versions of IATI, or if the status quo is good enough and an infrequent pain-point.

from iati-schemas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.