2

Is it possible to represent a JSON Object as triples, using any RDF standard syntax?

I need to insert a JSON object into Apache JENA. So I need to convert A JSON object like:

{
"name":"John",
"age":30,
"cars":[ "Ford", "BMW", "Fiat" ]
}

Into a format accepted by Jena, the Triple Store.

Apache Jena accepts those formats (https://jena.apache.org/documentation/io/):

  • Turtle
  • RDF/XML
  • N-Triples
  • JSON-LD
  • RDF/JSON
  • TriG
  • N-Quads
  • TriX
  • RDF Binary
tremendows
  • 4,262
  • 3
  • 34
  • 51
  • 1
    Broadly speaking, yes this is possible. Given that your data is not represented in a standardized form, however, you will need to write the conversion manually, by mapping the JSON attributes and values to RDF resources (classes and properties). – Jeen Broekstra May 23 '17 at 04:04
  • Same question with 2 answers: https://stackoverflow.com/q/49365220/7879193 – Stanislav Kralin Mar 29 '18 at 18:49

0 Answers0