Hi Roberto, it would probably be easiest to use JSON-LD to format your data
inside an HTML script tag.

E.g.:

<script type="application/ld+json">
   JSON-LD data goes here!
</script>

Any23 has a JSONLDWriter you can use for this purpose.


On Mon, Jul 15, 2019 at 4:27 PM Beto Flores <[email protected]> wrote:

> Hi.
>
> I am Roberto Flores, a GSoC student working with Apache Camel. My project
> is implement an Any23 dataformat for Camel. The main two operations of a
> dataformat is to serialize and deserialize data.
> In this first coding period I have worked in the first part. I mean to take
> a HTML as input stream, process it with Any23 and return RDF data.
>
> Now, I will be working in the inverse operation, let's say transform an RDF
> model into a HTML.  I am not sure on how to implement it. I know that there
> are multiple ways of generating an  HTML with embedded RDF information
> (i.e. RDFa, Microformats, etc.). Moreover, there is no 1-to-1 mapping for
> this, the same RDF model could be represented  in numerous ways.
>
> So, I was wondering if you have faced this kind of issue before, or what do
> you think about it. Do you know a library or mechanism for generating an
> inverse workflows of the mainstream behaivor of Any23?. I am looking for an
> generic approach, something that produces a basic representation of RDF in
> HTML.
>
> Please let me know if you have some ideas or suggestions for this project.
>
> Thanks,
> Roberto
>

Reply via email to