Changes between Version 2 and Version 3 of CmdiClavasIntegration


Ignore:
Timestamp:
12/05/12 14:52:23 (11 years ago)
Author:
twagoo
Comment:

Added example for element in profile specification

Legend:

Unmodified
Added
Removed
Modified
  • CmdiClavasIntegration

    v2 v3  
    4141{{{
    4242#!xml
    43     <language clavas:id="http://cdb.iso.org/lg/CDB-00138580-001">Dutch</language>
     43<language clavas:id="http://cdb.iso.org/lg/CDB-00138580-001">Dutch</language>
    4444}}}
    4545
     
    4949
    5050Vocabularies can be designated as either closed or open, and Arbil will present them accordingly but will always allow arbitrary input (as it does now). We have to accept that values cannot always be validated against closed vocabularies coming form an external service (in contrast to closed controlled vocabularies that come from the schema as we already have). Applications like Arbil and harvesters could have validation steps in addition to schema validation that check the validity of the values in elements that have a vocabulary reference. Possibly Schematron could be used to implement this.
     51
     52Taking these things into account, an element specification in a CMDI component or profile could look something like:
     53
     54{{{
     55#!xml
     56<CMD_Element
     57    name="Institution"
     58    CardinalityMax="1"
     59    CardinalityMin="1"
     60    clavas:vocabulary="http://openskos.org/api/institutions"
     61    clavas:type="open"
     62    clavas:label="prefLabel"
     63/>
     64}}}
     65
     66The "clavas"-attributes could go straight into the generated profile XSD, pretty much like the "datcat"-attributes and read like that from the schema by client applications.
    5167
    5268=== CLAVAS vocabulary sources ===