This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
master-contact-domain.lisp
32 lines (31 loc) · 1.79 KB
/
master-contact-domain.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(define-resource contact-punt ()
:class (s-prefix "schema:ContactPoint")
:properties `((:aanschrijfprefix :language-string-set ,(s-prefix "vcard:honorific-prefix"))
(:email :string ,(s-prefix "schema:email"))
(:fax :string ,(s-prefix "schema:faxNumber"))
(:naam :string ,(s-prefix "foaf:name"))
(:website :url ,(s-prefix "foaf:page"))
(:telefoon :string ,(s-prefix "schema:telephone")))
:has-one `((adres :via ,(s-prefix "locn:address")
:as "adres"))
:features '(include-uri)
:resource-base (s-url "http://data.lblod.info/id/contact-punten/")
:on-path "contact-punten")
(define-resource adres ()
:class (s-prefix "locn:Address")
:properties `((:busnummer :string ,(s-prefix "adres:Adresvoorstelling.busnummer"))
(:huisnummer :string ,(s-prefix "adres:AdresVoorstelling.huisnummer"))
(:straatnaam :string ,(s-prefix "locn:thoroughfare"))
(:postcode :string ,(s-prefix "locn:postCode"))
(:gemeentenaam :string ,(s-prefix "adres:gemeentenaam"))
(:land :language-string-set ,(s-prefix "adres:land"))
(:locatieaanduiding :string ,(s-prefix "locn:locatorDesignator"))
(:locatienaam :language-string-set ,(s-prefix "locn:locatorName"))
(:postbus :string ,(s-prefix "locn:poBox"))
(:postnaam :string ,(s-prefix "locn:postName"))
(:volledig-adres :string ,(s-prefix "locn:fullAddress"))
(:adres-register-id :number ,(s-prefix "lblodlg:adresRegisterId"))
(:adres-register-uri :url ,(s-prefix "adres:verwijstNaar")))
:features '(include-uri)
:resource-base (s-url "http://data.lblod.info/id/adressen/")
:on-path "adressen")