Open bourgeoa opened 1 year ago
- can a serialized RDF content be inserted in an html document as a replacement to an existing data island or creating a new one ?
This is a relatively easy thing to do. Data islands are simply <script type="..."> ... </script>
elements, so are easily replaced within an HTML document. Some care must be taken with escaping reserved characters within the data islands, among other potential gotchas, but most if not all of these can be handled with automation.
- How to resolve the need for 2 contentType's : text/html and an RDF one for the data Island ?
There's no "need for 2 contentType
s". The HTML document is text/html
(or other HTML media type), and the <script type="...">
attribute is set as appropriate to the island, e.g., type="application/ld+json"
or type="text/turtle"
.
Is it an issue for rdflib or solid server ?
html can be part of content negociation on a server with an Accept Header for GET and PATCH. PUT/POST/DELETE are meant on an entire document
The same can be done in rdflib