rescs:dash/contactpoint/ContactPointShape leaf node


URI

http://rescs.org/dash/contactpoint/ContactPointShape

Label

Contact point

Description

A contact point - for example, a Customer Complaints department.

Target Classes (1)

Shape Properties

Instances of schema:ContactPoint can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

schema:ContactPoint
schema:availableLanguage 1 1 xsd:string
schema:contactType 1 xsd:string
schema:email 1 1 xsd:string
schema:telephone 1 xsd:string
schema:Thing
schema:alternateName xsd:string
schema:description 1
schema:identifier 1
schema:image 1
schema:name 1 1 xsd:string
schema:sameAs
schema:url

Implementation

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <http://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rescs.org/dash/contactpoint/ContactPointShape> a sh:NodeShape ;
    rdfs:label "Contact point"^^xsd:string ;
    rdfs:comment "A contact point - for example, a Customer Complaints department."^^xsd:string ;
    sh:and ( [ sh:node <http://rescs.org/dash/structuredvalue/StructuredValueShape> ] [ sh:property [ sh:datatype xsd:string ;
                        sh:description "A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point." ;
                        sh:minCount 1 ;
                        sh:name "contactType" ;
                        sh:path schema:contactType ],
                    [ sh:datatype xsd:string ;
                        sh:description "The telephone number." ;
                        sh:maxCount 1 ;
                        sh:name "telephone" ;
                        sh:path schema:telephone ],
                    [ sh:datatype xsd:string ;
                        sh:description "A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]." ;
                        sh:maxCount 1 ;
                        sh:minCount 1 ;
                        sh:name "availableLanguage" ;
                        sh:path schema:availableLanguage ;
                        sh:pattern "[a-z]{3}" ],
                    [ sh:datatype xsd:string ;
                        sh:description "Email address." ;
                        sh:maxCount 1 ;
                        sh:minCount 1 ;
                        sh:name "email" ;
                        sh:path schema:email ;
                        sh:pattern "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$" ] ] ) ;
    sh:targetClass schema:ContactPoint .