@@ -485,16 +485,18 @@ scope
485
485
: read_patron
486
486
response fields
487
487
: name occ data type description
488
- --------- ------ --------------- ------------------------------
488
+ --------- ------ --------------- ---------------------------------
489
489
name 1..1 string full name of the patron
490
490
email 0..1 email email address of the patron
491
+ address 0..1 string freeform address of the patron
491
492
expires 0..1 datetime patron account expiry
492
493
status 0..1 account state current state (0, 1, 2, or 3)
493
- --------- ------ --------------- -------------------------------
494
+ --------- ------ --------------- --------------------------------
494
495
mapping to RDF
495
496
: see [ patrons in RDF]
496
497
497
- Additional fields such as address may be added in a later revision.
498
+ Application SHOULD refer to a specialized API, such as LDAP, to get more
499
+ detailed patron information.
498
500
499
501
** Example**
500
502
@@ -517,6 +519,7 @@ X-OAuth-Scopes: read_fees read_items read_patron write_items
517
519
{
518
520
"name": "Jane Q. Public",
519
521
522
+ "address": "Park Street 2, Springfield",
520
523
"expires": "2015-05-18",
521
524
"status": 0
522
525
}
@@ -947,7 +950,10 @@ with [particip:endDate]. The patron identifier is given with
947
950
948
951
A patron account belongs to a person or another [ foaf: Agent ] , connected to with
949
952
[ sioc: account_of ] and [ foaf: account ] . The full name of a patron is given with
950
- [ foaf: name ] and its email address can be given with [ foaf: mbox ] .
953
+ [ foaf: name ] and its email address can be given with [ foaf: mbox ] . The address
954
+ field SHOULD NOT be mapped to RDF properties such as [ schema: address ] and
955
+ [ vcard: hasAddress ] which expect a structured object instead of a plain literal
956
+ value. The generic property [ dbp: address ] can be used instead.
951
957
952
958
~~~ {.ttl}
953
959
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@@ -963,16 +969,19 @@ paia:PatronAccount a owl:Class ;
963
969
foaf:name, foaf:mbox .
964
970
~~~
965
971
972
+ [ dbp:address ] : http://live.dbpedia.org/property/address
966
973
[ foaf:AccountName ] : http://xmlns.com/foaf/0.1/AccountName
967
- [ sioc:User ] : http://rdfs.org/sioc/ns#User
968
- [ sioc:account_of ] : http://rdfs.org/sioc/ns#account_of
969
- [ foaf:OnlineAccount ] : http://xmlns.com/foaf/0.1/OnlineAccount
970
974
[ foaf:Agent ] : http://xmlns.com/foaf/0.1/Agent
975
+ [ foaf:OnlineAccount ] : http://xmlns.com/foaf/0.1/OnlineAccount
971
976
[ foaf:account ] : http://xmlns.com/foaf/0.1/account
972
- [ foaf:name ] : http://xmlns.com/foaf/0.1/name
973
977
[ foaf:mbox ] : http://xmlns.com/foaf/0.1/mbox
974
- [ particip:endDate ] : http://purl.org/vocab/participation/schema#endDate
978
+ [ foaf:name ] : http://xmlns.com/foaf/0.1/name
975
979
[ particip:Role ] : http://purl.org/vocab/participation/schema#Role
980
+ [ particip:endDate ] : http://purl.org/vocab/participation/schema#endDate
981
+ [ schema:address ] : http://schema.org/address
982
+ [ sioc:User ] : http://rdfs.org/sioc/ns#User
983
+ [ sioc:account_of ] : http://rdfs.org/sioc/ns#account_of
984
+ [ vcard:hasAddress ] : www.w3.org/TR/vcard-rdf/
976
985
977
986
An instance of paia: patronAccount is assumed to be active, unless it is also
978
987
an instance of ** paia: InactivePatronAccount ** .
0 commit comments