Re: polymorphic RDF mapping

Hi,

Are you looking for a mapping tool and mapping language which transforms 
this JSON into RDF?

There are many of those, the most popular ones are based upon RML, but 
there are also some SPARQL and ShEx based ones.
A full overview can be found in this survey:

Declarative RDF graph generation from heterogeneous (semi-)structured 
data: A systematic literature review by Van Assche et al. 
https://doi.org/10.1016/j.websem.2022.100753 
<https://dylanvanassche.be/assets/pdf/systematic-review-of-mapping-languages.pdf>

A popular RML mapping engine is RMLMapper 
<https://github.com/RMLio/rmlmapper-java> with RML as mapping language 
which can transform this JSON into RDF (and many other data 
formats/sources).
RML is currently being standardized at the W3C Community Group on 
Knowledge Graph Construction, so there are 2 versions of RML (original 
<https://rml.io/specs/rml/>, W3C CG <https://w3id.org/rml/portal/>) at 
this moment until the standardization process is over.
RMLMapper supports both and also R2RML.

Kind regards,
Dylan Van Assche

On 9/27/24 10:57, fano.ramparany@orange.com wrote:
>
> Hi,
>
> Are there any polymorphic RDF mapping tool?
>
> More concretely , we use a json data source which publish heterogenous 
> json documents such as in the following example:
>
> [
>
>     {
>
>         "type" : "person",
>
>         "name" : "peter",
>
>         "age" : 30
>
>     },
>
>     {
>
>         "type" : "parcel",
>
>         "id" : "p320",
>
>         "weight" : 2,
>
>         "recipient" : {
>
>              "name" : "daniel",
>
>     "address" : "2, Harbor Str., Hopville"
>
>         }­­­
>
>     }
>
> ]
>
> Thank you in advance for your help
>
> Orange Restricted
>
> ____________________________________________________________________________________________________________
> Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
> pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
> a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
> Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
>
> This message and its attachments may contain confidential or privileged information that may be protected by law;
> they should not be distributed, used or copied without authorisation.
> If you have received this email in error, please notify the sender and delete this message and its attachments.
> As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
> Thank you.

Received on Friday, 27 September 2024 09:09:12 UTC