@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ts: <https://test.uncefact.org/vocabulary/term-status/> .
@prefix unece: <https://test.uncefact.org/vocabulary/> .

<https://test.uncefact.org/vocabulary/allocation-rule/first-in-first-out> a skos:Concept ;
    skos:definition "Output is deemed to draw on the earliest conforming input held, until that input is exhausted."@en ;
    skos:inScheme unece:allocation-rule ;
    skos:notation "first-in-first-out" ;
    skos:prefLabel "First in, first out"@en ;
    skos:scopeNote "Produces a different downstream attribute from proportional on identical quantities, which is why the rule has to be stated rather than assumed."@en .

<https://test.uncefact.org/vocabulary/allocation-rule/last-in-first-out> a skos:Concept ;
    skos:definition "Output is deemed to draw on the most recent conforming input held."@en ;
    skos:inScheme unece:allocation-rule ;
    skos:notation "last-in-first-out" ;
    skos:prefLabel "Last in, first out"@en .

<https://test.uncefact.org/vocabulary/allocation-rule/priority> a skos:Concept ;
    skos:definition "Conforming input is assigned in full to nominated output before any is assigned to the remainder."@en ;
    skos:inScheme unece:allocation-rule ;
    skos:notation "priority" ;
    skos:prefLabel "Priority"@en ;
    skos:scopeNote "Covers one customer fully and the next not at all, where proportional would cover both partly. Both conserve and neither is a fraud; they are materially different things to buy. How priority was determined is stated separately."@en .

<https://test.uncefact.org/vocabulary/allocation-rule/proportional> a skos:Concept ;
    skos:definition "Conforming input is assigned across output in proportion to quantity, so every output unit carries the same share."@en ;
    skos:inScheme unece:allocation-rule ;
    skos:notation "proportional" ;
    skos:prefLabel "Proportional"@en ;
    skos:scopeNote "The common default, and the rule most schemes mandate where they mandate one at all."@en .

<https://test.uncefact.org/vocabulary/allocation-rule/scheme-defined> a skos:Concept ;
    skos:definition "The rule is set by the scheme the claim is made under, and is published by that scheme rather than enumerated here."@en ;
    skos:inScheme unece:allocation-rule ;
    skos:notation "scheme-defined" ;
    skos:prefLabel "Scheme defined"@en ;
    skos:scopeNote "Carries weighted averages over defined periods and rules that vary by attribute, which the other four cannot express. A reference to the published rule is stated separately, so a reader learns either the rule or where the rule is written."@en .

unece:allocation-rule a skos:ConceptScheme ;
    rdfs:label "Allocation Rule"@en ;
    skos:definition "Allocation Rule UN/CEFACT code list."@en ;
    skos:note "The rule belongs to the claim rather than to the transformation. What a plant physically did is recorded by its traceability events; what a claim asserts on the back of that is recorded here, and one transformation can support several claims under different rules for different attributes."@en ;
    skos:scopeNote "How conforming input was assigned to output where a claim rests on a chain of custody model that mixes conforming and non-conforming material. Two facilities with identical books and different rules produce claims that look alike and are not comparable."@en ;
    unece:codeListScope <https://test.uncefact.org/vocabulary/code-list-scope/shared> ;
    unece:termStatus ts:proposed .

