Hi Zoran,

Originally, I devised the marshal/unmarshal method in my proposal like this:

Marshal:
 input: HTML as a String.
 output: RDF (XML, TTL, etc.) as an OutputStream.

Unmarshal:
 input: RDF (XML, TTL, etc.) as an InputStream.
 output: HTML as a String.

Maybe, I misunderstodd the marshal/unmarshal concepts.
Actually, as you say it makes more sense now to me that the unmarshal
should look like this:

Unmarshal:
 input: HTML as an InputStream.
 output: RDF as a String (XML, TTL, ) or as Object Model (RDF4J Model).

And in this case, we could let marshal unimplemented, similarly to the
TidyMarkup DataFormat.
So, the user can decide what to do with the resulting RDF.


Cheers,
Roberto.

El jue., 18 de jul. de 2019 a la(s) 13:00, Zoran Regvart ([email protected])
escribió:

> Hi Roberto,
> perhaps I'm reading this wrong. Are we discussing marshalling or
> unmarshalling of RDF data?
>
> I would consider generating serialized output from object model to be
> marshalling.
>
> In that case can't we just generate the RDF XML, or JSON-LD and let
> the user include this data in any way they wish, in their HTML or as a
> file or serve it over HTTP...
>
> zoran
>
> On Thu, Jul 18, 2019 at 6:20 PM Beto Flores <[email protected]> wrote:
> >
> > Hi all.
> >
> > I have sent an email to the Any23 mailing list asking for help about the
> > unmarshal operation.
> >
> > And Hans Brende suggested to me, that and simple approach for this issue
> > could be to generate a simple HTML with embbeded JSON-LD data inside.
> Let's
> > say:
> >
> > <html>
> > static content
> > <script type="application/ld+json">
> >    JSON-LD data goes here!
> > </script>
> > static content
> > </html>
> >
> > On the other hand, I found this library on github:
> > https://github.com/rhizomik/redefer-rdf2html
> >
> > An example of the HTML that it produces is here:
> >
> http://rhizomik.net/redefer-services/rdf2html?rdf=http://dbpedia.org/resource/RDFa&mode=html&namespaces=true&language=en
> >
> > Even though it looks nicer in my opinion, I think that its licenses could
> > be an issue. It states 'Copyright (C) 2014 Roberto García' and it uses
> 'GNU
> > General Public License 3.0'.
> >
> > I am a novice in those licensing aspects, so should I contact the creator
> > of this library, or go for the suggestion of the Any23 developer.
> >
> > Thanks,
> > Roberto.
>
>
>
> --
> Zoran Regvart
>

Reply via email to