@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix dpp: <https://ns.verisav.fr/dpp#> .
@prefix rma: <https://ns.verisav.fr/rma#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

# ============================================================================
# Example: Return Request with Shipping Label and Tracking
# This example demonstrates a return with shipping label and package tracking
# Product: Home appliance
# ============================================================================

<https://verisav.fr/data/rma-examples/return-with-shipping#return>
    a rma:ReturnRequest ;
    dcterms:title "Return Request - Defective Product"@en, "Demande de Retour - Produit Défectueux"@fr ;
    rma:returnRequestNumber "RMA-2025-08912" ;
    rma:returnReason "defective" ;
    rma:returnRequestDate "2025-11-10T08:00:00+01:00"^^xsd:dateTime ;
    rma:returnRequestStatus "in_transit" ;
    rma:expectedReturnDate "2025-11-18"^^xsd:date ;
    
    # Product concerned
    rma:concernsProduct <https://verisav.fr/data/rma-examples/return-with-shipping#product> ;
    
    # Requested by consumer
    rma:requestedBy <https://verisav.fr/data/rma-examples/return-with-shipping#consumer> ;
    
    # Handled by retailer
    rma:handledBy <https://verisav.fr/data/rma-examples/return-with-shipping#retailer> ;
    
    # Shipping label
    rma:hasShippingLabel <https://verisav.fr/data/rma-examples/return-with-shipping#label> ;
    
    # Tracking
    rma:hasTracking <https://verisav.fr/data/rma-examples/return-with-shipping#tracking> ;
    
    # Approval
    rma:hasApproval <https://verisav.fr/data/rma-examples/return-with-shipping#approval> .

<https://verisav.fr/data/rma-examples/return-with-shipping#product>
    a dpp:ProductPassport, schema:Product ;
    schema:name "Coffee Maker Pro" ;
    schema:sku "CM-PRO-001" ;
    schema:brand [
        a schema:Brand ;
        schema:name "KitchenPro"
    ] .

<https://verisav.fr/data/rma-examples/return-with-shipping#consumer>
    a schema:Person ;
    schema:name "Sophie Leroy" ;
    schema:email "sophie.leroy@example.com" .

<https://verisav.fr/data/rma-examples/return-with-shipping#retailer>
    a schema:Organization ;
    schema:name "HomeStore" ;
    schema:url "https://www.homestore.example" .

<https://verisav.fr/data/rma-examples/return-with-shipping#label>
    a rma:ShippingLabel ;
    rma:labelUrl <https://www.homestore.example/returns/labels/RMA-2025-08912.pdf> ;
    rma:carrierName "Colissimo" ;
    rma:carrierService "standard" ;
    rma:labelCreatedDate "2025-11-10T09:00:00+01:00"^^xsd:dateTime ;
    rma:labelExpiryDate "2025-11-20"^^xsd:date ;
    rma:hasTracking <https://verisav.fr/data/rma-examples/return-with-shipping#tracking> .

<https://verisav.fr/data/rma-examples/return-with-shipping#tracking>
    a rma:Tracking ;
    rma:trackingNumber "9V123456789FR" ;
    rma:trackingUrl <https://www.laposte.fr/particulier/outils/suivre-vos-envois?code=9V123456789FR> ;
    rma:trackingStatus "in_transit" ;
    rma:lastTrackingUpdate "2025-11-12T14:30:00+01:00"^^xsd:dateTime ;
    rma:estimatedDeliveryDate "2025-11-18"^^xsd:date ;
    rma:carrierName "Colissimo" .

<https://verisav.fr/data/rma-examples/return-with-shipping#approval>
    a rma:Approval ;
    rma:approvalDate "2025-11-10T09:00:00+01:00"^^xsd:dateTime ;
    rma:approvalStatus "approved" ;
    rma:approvalComment "Return approved - shipping label generated"@en, "Retour approuvé - étiquette d'expédition générée"@fr ;
    rma:approvedBy <https://verisav.fr/data/rma-examples/return-with-shipping#retailer> .

