@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl:    <http://www.w3.org/2002/07/owl#> .
@prefix sh:     <http://www.w3.org/ns/shacl#> .
@prefix schema: <http://schema.org/> .
@prefix foaf:   <http://xmlns.com/foaf/0.1/> .
@prefix eprel:  <../vocab#> .
@prefix common: <common.shapes.ttl#> .
@prefix product: <product.shapes.ttl#> .
@prefix :       <supplier.shapes.ttl#> .

# Entry shapes document for a supplier: data = supplier/{guid}. Also used
# nested, as the panel behind a product's schema:manufacturer.
#
# Inside a product document the supplier node carries only what the product
# record says (name, homepage, person type). Opening the panel loads
# supplier/{guid}, which adds the contact address and the links to models.

<> a foaf:Document ;
    rdfs:label "Linked EPREL shapes: supplier"@en , "Linked-EPREL-Shapes: Lieferant"@de ;
    owl:imports <product.shapes.ttl> , <common.shapes.ttl> , <../vocab> .

:SupplierShape
    a sh:NodeShape ;
    sh:targetClass schema:Organization ;
    sh:property [
        sh:path schema:name ;
        sh:name "Name"@en , "Name"@de ;
        sh:minCount 1 ;
        sh:order 1
    ] , [
        sh:path schema:givenName ;
        sh:name "Given name"@en , "Vorname"@de ;
        sh:order 2
    ] , [
        sh:path schema:familyName ;
        sh:name "Family name"@en , "Nachname"@de ;
        sh:order 3
    ] , [
        sh:path eprel:personType ;
        sh:order 4
    ] , [
        sh:path foaf:homepage ;
        sh:name "Website"@en , "Website"@de ;
        sh:order 5
    ] , [
        sh:path eprel:isClosed ;
        sh:name "Closed"@en , "Geschlossen"@de ;
        sh:description "Whether EPREL marks the organisation as closed."@en ;
        sh:order 6
    ] , [
        sh:path eprel:contactPoint ;
        sh:node common:AddressShape ;
        sh:order 7
    ] , [
        sh:path eprel:organisationGuid ;
        sh:order 8
    ] , [
        sh:path eprel:exampleProduct ;
        sh:node product:ProductShape ;
        sh:order 9
    ] , [
        sh:path eprel:models ;
        sh:order 10
    ] , [
        sh:path rdfs:comment ;
        sh:name "Note"@en , "Hinweis"@de ;
        sh:order 11
    ] .
