Project

General

Profile

Feature #1184

Updated by Bernhard Koschiček-Krombholz over 2 years ago

Completed the feature in feature_api_rdflib. 

 Supported RDF formats: 
 * XML/RDF 
 * pretty XML 
 * Turtle 
 * Notion 3 
 * N-Triples 

 The RDF output is generated through the json-ld of "Linked Places":https://github.com/LinkedPasts/linked-places-format. There is an "issue":https://github.com/LinkedPasts/linked-places-format/issues/25 open for the LPF, that they should include CIDOC-CRM for the LPF. If this is happening, the output of the RDF will be better structured.  

 It is a start, so in anybody needs a specific output, please write another ticket and specify what is needed.   

 The API supports now the parameter _format_ for each Entity endpoint, which will take following values: xml, pretty-xml, n3, turtle, nt, lp, geojson.  
 _________________ 
 Please add RDFS as additional output format. Reasons are: 
 * It is a common format, format e.g. CIDOC CRM uses it too 
 * It is a good opportunity for refactoring to keep data and output format separate, separate which will be helpful for future format additions 

 @ Berni: as a start, start you could: 
 * think about how the URL should look like, e.g. we talked about something like "/api/0.1/entity/105.rdf"  
 * add an rdfs link in util.py at add_system_data (in a new branch) 

 Feel free to ask anytime if questions arise, maybe we try to communicate with notes in this issue. 

Back