rec:PostalAddress leaf node


URI

https://w3id.org/rec#PostalAddress

Label

Postal address

Superclasses (1)

Targets (1)

Property Constraints (6)

Focus nodes of this shape (rec:PostalAddress) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
rec:addressLine1 address line 1
0 1 xsd:string
rec:addressLine2 address line 2
0 1 xsd:string
rec:city city
0 1 xsd:string
rec:country country
The country, e.g., USA, Sweden, Argentina, or optionally a two-letter ISO 3166-1 alpha-2 country code, e.g., "SE", "US", etc.
0 1 xsd:string
rec:postalCode postal code
0 1 xsd:string
rec:region region
0 1 xsd:string

Implementation

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rec: <https://w3id.org/rec#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

rec:PostalAddress a rdfs:Class,
        sh:NodeShape ;
    rdfs:label "Postal address"^^xsd:string ;
    rdfs:subClassOf rec:Information ;
    sh:property [ a sh:PropertyShape ;
            sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:name "address line 1"^^xsd:string ;
            sh:path rec:addressLine1 ],
        [ a sh:PropertyShape ;
            sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:name "postal code"^^xsd:string ;
            sh:path rec:postalCode ],
        [ a sh:PropertyShape ;
            sh:datatype xsd:string ;
            sh:description "The country, e.g., USA, Sweden, Argentina, or optionally a two-letter ISO 3166-1 alpha-2 country code, e.g., \"SE\", \"US\", etc."^^xsd:string ;
            sh:maxCount 1 ;
            sh:name "country"^^xsd:string ;
            sh:path rec:country ],
        [ a sh:PropertyShape ;
            sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:name "region"^^xsd:string ;
            sh:path rec:region ],
        [ a sh:PropertyShape ;
            sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:name "city"^^xsd:string ;
            sh:path rec:city ],
        [ a sh:PropertyShape ;
            sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:name "address line 2"^^xsd:string ;
            sh:path rec:addressLine2 ] .