Skip to content
Snippets Groups Projects
Commit 2f897ca7 authored by npedot's avatar npedot
Browse files

small fixes jsonld(wip)

parent 90cb73de
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ class QueryJdbcAdapter {
obj.put("@id", "tableurl")
obj.put("@type", "tablename")
for (i in 1..columnCount) {
obj.put(metaData.getColumnName(i), resultSet.getString(i))
obj.put("ex:"+metaData.getColumnName(i), resultSet.getString(i))
}
list.add(obj)
}
......@@ -105,7 +105,6 @@ class QueryJdbcAdapter {
graphObj.put("@graph", list)
val mapper = ObjectMapper()
mapper.enable(SerializationFeature.WRAP_ROOT_VALUE)
val result = mapper.writeValueAsString(graphObj)
println(result)
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment