Data Pipeline to stardog

Hi, I'm newbie to Stardog and I'm trying to write data pipeline from various sources to feed stardog, i have 2 questions

  1. My data sources can be in xml, json. And I'm so confuse about how to ingest them into Stardog automatically. Do I need to convert them into table and then import them via Virtual Graph mapping by writing python code ? do i need to prepare the ontology design already to map them ? (You can recommend me common data pipeline to feed Stardog)

  2. My second question is about Stardog Designer, how can people map the resource to the edge (relationship) ? I strive to point the resource mapping to the name of relationship edge but don't work. If it is unable to do, how to design self referential relationship or n - n relationship if i have join table ?