solid-file-python icon indicating copy to clipboard operation
solid-file-python copied to clipboard

Structured data operations support

Open hrchu opened this issue 3 years ago • 5 comments

AS-IS:

  • solid-file-python does not aware of RDF resources.
  • solid-file-python cannot manipulate (PATCH) RDF resources.

TO-BE:

  • As a user, I can use solid-file-python to query and update RDF resources in a Pod, so I can get the benefit of the semantic web.
  • Users can use patchFile() to modifies the content of a resource. Adding or removing triples.
  • A patch request can be either in SPARQL or turtle format.
  • Ability to manipulate RDF in a Pythonic way (or just introduce rdflib instead.)

Reference

  • https://en.wikipedia.org/wiki/Resource_Description_Framework#Serialization_formats
  • https://github.com/jeff-zucker/solid-file-client#patchfile-fileurl-patchcontent-patchcontenttype-
  • https://github.com/jeff-zucker/solid-file-client/blob/master/docs/JSdoc/rdf-query.md
  • https://github.com/solid/solid-spec/blob/master/api-rest.md#alternative-using-sparql

hrchu avatar Sep 23 '21 08:09 hrchu

👍

jack20951948 avatar Sep 26 '21 07:09 jack20951948

ba361006 avatar Sep 26 '21 07:09 ba361006

https://docs.inrupt.com/developer-tools/javascript/client-libraries/tutorial/read-write-data/

hrchu avatar Sep 26 '21 08:09 hrchu

https://github.com/twonote/solid-file-python/blob/master/resources/postman/RDF.json

ba361006 avatar Sep 26 '21 08:09 ba361006

Here is an N3.js example code to help us to understand the Javascript implementation: https://gist.github.com/hrchu/b463193ab2dd7dacd30e33469676835e

hrchu avatar Dec 04 '21 12:12 hrchu