MellonScholarlyCommunication / css-suite

css-functionality
2 stars 0 forks source link

css-scp - add content types for linked-data content #2

Open phochste opened 2 years ago

phochste commented 2 years ago

jsonld, turtle, N3, trig, ntriples, nquads,rdf*

Dexagod commented 2 years ago

In this case, would you want this to be an -oct, --outputcontenttype flag that converts all rdf content to the specific contentType? And when copying to a pod, would you want the files to have the appropriate extension or have no extension at all?

phochste commented 2 years ago

I think in your code you have a mime type guesser. When you upload a PDF file , the content type of the file will be automatically application/pdf.

When you upload an RDF document ..does it automatically know it is a text/turtle (or will it be a text/plain).

If a content type is forced via --oct option, then the extention must not be touched. It is up to the end-user then to make the right choice of file names.