我正在使用Android应用程序,并且必须连接返回JSON-LD的API,但我不知道如何解析响应。我必须为此使用哪些库?我一直在阅读有关RDF的内容,但我不清楚。有人可以帮我吗?
我附上了API响应。
{
"@context": {
"c": "http://www.w3.org/2002/12/cal#",
"dcterms": "http://purl.org/dc/terms/",
"geo": "http://www.w3.org/2003/01/geo/wgs84_pos#",
"loc": "http://purl.org/ctic/infraestructuras/localizacion#",
"org": "http://purl.org/ctic/infraestructuras/organizacion#",
"vcard": "http://www.w3.org/2006/vcard/ns#",
"title": "vcard:fn",
"id": "dcterms:identifier",
"relation": "dcterms:relation",
"references": "dcterms:references",
"address": "vcard:adr",
"area": "loc:barrio",
"district": "loc:distrito",
"locality": "vcard:locality",
"postal-code": "vcard:postal-code",
"street": "vcard:street-address",
"location": "vcard:geo",
"latitude": "geo:lat",
"longitude": "geo:long",
"organization": "vcard:org",
"organization-desc": "dcterms:description",
"accesibility": "org:accesibilidad",
"services": "org:servicios",
"schedule": "org:horario",
"organization-name": "vcard:organization-name",
"description": "c:summary",
"link": "c:url",
"uid": "c:uid",
"dtstart": "c:dtstart",
"dtend": "c:dtend",
"excluded-days": "c:exdate",
"event-location": "c:location",
"price": "c:resource",
"recurrence": "c:rrule",
"days": "c:byday",
"frequency": "c:freq",
"interval": "c:interval",
"audience": "dc:audience"
},
"@graph": [
{
"@id": "https://datos.madrid.es/egob/catalogo/tipo/evento/11019983-33-certamen-coreografico-madrid.json",
"title": "33º Certamen Coreográfico de Madrid",
"location": {
"latitude": 40.42802889001877,
"longitude": -3.710182353581842
}
},
{
"@id": "https://datos.madrid.es/egob/catalogo/tipo/evento/11034478-70-aniversario-radio-inter-pensando-siempre-ti.json",
"title": "70 Aniversario Radio Inter. Pensando siempre en ti",
"location": {
"latitude": 40.43371190964793,
"longitude": -3.7104543597957758
}
}