The Knowledge Graph Conference Icon
The Knowledge Graph Conference
  • 馃彔Home
  • 馃搮Events
  • 馃懁Members
  • 馃數Announcements
  • 馃數Ask
  • 馃數Ask The Ontologists
  • 馃數Events
  • 馃數Jobs
  • 馃數Promotions
  • 馃數Share
Powered by Tightknit
Ask
Ask

Converting MySQL Schema to RDF: Seeking Advice and Frameworks

Avatar of Mohan K.Mohan K.
路Nov 08, 2023 04:31 PM

Hi, I have a use case where I need to convert my MySQL .DDL and .JSON schema model to RDF serialization format. I found that I need to use the R2RML, RML frameworks. I was wondering if anyone had a similar situation and methods or framework used for conversion. Looking forward to hearing from you. Thanks for your help.

16 comments

路 Sorted by Oldest
    • Avatar of Gautam K.
      Gautam K.
      路

      Hi, you can use RDFLIb or RML engine to convert it, do use any ontology for conversion?

    • Avatar of Mohan K.
      Mohan K.
      路

      Hi Gautam, I have my normal MySQL workbench model and .JSON models. I want to convert it to RDF so that I upload it into a Protege tool to build more vocabulary.

    • Avatar of Fran莽ois S.
      Fran莽ois S.
      路

      you can also use OntoRefine, OntoPic studio, or the Stardog studio

    • Avatar of Fran莽ois S.
      Fran莽ois S.
      路

      If this is just a one time conversion you may not need RML. Just open the file / DB in python and write a conversion function for each using RDFLib

    • Avatar of Mohan K.
      Mohan K.
      路

      Yes, it's one time, after that I want to use the Protege tool for further development of Ontologies

    • Avatar of Mohan K.
      Mohan K.
      路

      Could you please share some more details in converting through a python and conversion function

    • Avatar of Fran莽ois S.
      Fran莽ois S.
      路

      For example for JSON, open your file using the json module, then for each object, use RDFLib to create a RDF triple corresponding to your ontology. There's really not much more than this. Obviously you need to have a good understanding of your ontology and of the data, but that will be necessary in any approach.

    • Avatar of Gautam K.
      Gautam K.
      路

      Mohan K. what Francois mentioned is correct, and why do you want to import rdf file in protege, if there is a bigger dataset then it won't work

    • Avatar of Gautam K.
      Gautam K.
      路

      You need protege for ontology modelling

    • Avatar of Mohan K.
      Mohan K.
      路

      Thanks Gautam K. and Fran莽ois S., I have around 150 MySQL workbench table definition and around 1000 JSON schema files with description. I want to import MySQL workbench DDLs first and build or enhance Data model and create the Knowledge Graph objects. Similar one I want to do it for JSON schema objects.

    • Avatar of Mohan K.
      Mohan K.
      路

      It is difficult to model everything from scratch. I want to first upload the converted RDFs and build Ontologies in JSON-LD objects so that I can create it in KG database

    • Avatar of Mohan K.
      Mohan K.
      路

      Please let me know if you need more information

    • Avatar of Gautam K.
      Gautam K.
      路

      How will you make converted RDF without an ontology?

    • Avatar of Gautam K.
      Gautam K.
      路

      is it clarify anything to you?

    • Avatar of Mohan K.
      Mohan K.
      路

      Thanks, assume that I have a Customer and Orders related RDBMS model. Now I need to convert them into RDFs.