Read Place Description Attributes
This example request illustrates how to get the attributes of a place description.
JSON
Request
GET /platform/places/description/1/attributes
Accept: application/ld+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Content-type: application/ld+json
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=86400
Transfer-encoding: chunked{
"@id" : "https://api.familysearch.org/platform/places/description/1",
"433" : [ {
"@id" : "fs-place-attribute:1",
"@type" : "fs-place-attribute-type:433",
"value" : "NORTH_AMERICA"
} ],
"@context" : {
"433" : {
"@id" : "fs-place-attribute-type:433",
"http://www.w3.org/2000/01/rdf-schema#label" : "FamilySearch Region"
},
"year" : "http://purl.org/dc/terms/temporal",
"value" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#value"
}
}
XML
Request
GET /platform/places/description/1/attributes
Accept: application/rdf+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Content-type: application/rdf+xml
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=86400
Transfer-encoding: chunked<?xml version='1.0' encoding='UTF-8'?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:dc="http://purl.org/dc/terms/" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<Description ID="1">
<subject resource="https://api.familysearch.org/platform/places/description/1"/>
<predicate resource="fs-place-attribute-type:433"/>
<object>NORTH_AMERICA</object>
<type resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement"/>
</Description>
<Description about="fs-place-attribute-type:433">
<rdfs:label>FamilySearch Region</rdfs:label>
</Description>
</RDF>
Updated 5 days ago