Project

General

Profile

Actions

Feature #1184

closed

API: add additional output format RDFS

Added by Alexander Watzinger about 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2020-03-27
Estimated time:

Description

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. There is an issue 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, e.g. CIDOC CRM uses it too
  • It is a good opportunity for refactoring to keep data and output format separate, which will be helpful for future format additions
@ Berni: as a 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.


Related issues 2 (0 open2 closed)

Related to OpenAtlas - Feature #1386: API: Flask restful frameworkClosedBernhard Koschiček-Krombholz2020-10-15Actions
Blocked by OpenAtlas - Feature #1551: API: Relation type adaptions, adding relationDescriptionClosedBernhard Koschiček-Krombholz2021-07-27Actions
Actions #1

Updated by Alexander Watzinger about 4 years ago

  • Target version changed from 5.2.0 to 208
Actions #2

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

Actions #3

Updated by Bernhard Koschiček-Krombholz almost 3 years ago

This feature is moved quite away of my view. But since the API backend is now refactored, I will push this important issue back on track. A package to start is the rdflib, which is available as buster package:

https://packages.debian.org/buster/python3-rdflib-jsonld
https://rdflib.readthedocs.io/en/stable/

I'm really sorry, Stefan, that I delayed this feature so long.

Actions #4

Updated by Bernhard Koschiček-Krombholz almost 3 years ago

With the packages it is possible to convert the linked places to various other formats. One problem is, that all types are annotated as lpo (linked pasts ontology). So all cidoc properties,types and entities are mapped as lpo.

I'm no expert on semantic web. So I appreciate any comment on this problem. My first impulse is, that we try to change/extend the linked place format to our requirements. There is also an issue on github of LP for this: https://github.com/LinkedPasts/linked-places/issues/25.

Actions #5

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

  • Blocked by Feature #1551: API: Relation type adaptions, adding relationDescription added
Actions #6

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

  • Description updated (diff)
  • Status changed from Assigned to Resolved
Actions #7

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

  • Status changed from Resolved to Closed
  • Target version changed from 208 to 6.5.0
Actions

Also available in: Atom PDF