Hey all,
I'm running some tests querying a Marmotta server to transform a resource
into JSON, and I have a question about the structure of the data as it's
returned from Marmotta. When posting a program[1] to a vanilla Marmotta
install (version 3.3.0), all the data fields are returned as arrays that
specify the data type as well as the value itself:
"created":
[
{
"type":"literal",
"value":"Tue Aug 02 19:30:25 CDT 2016"
}
]
In the case of multi-valued fields, I get several instances of this
structure:
"type":
[
{
"type":"literal",
"value":"http://www.w3.org/ns/ldp#Container"
},
{
"type":"literal",
"value":"http://www.w3.org/ns/ldp#RDFSource"
},
{
"type":"literal",
"value":"http://fedora.info/definitions/v4/repository#Resource"
},
]
We would like to receive the data in a much simpler format, ideally just
"field":"value". How do I customize how Marmotta structures its returned
data?
Thanks!
nikhil
[1] https://github.com/fcrepo4-exts/fcrepo-camel-toolbox/blob/master/fcrepo-
ldpath/src/main/resources/default.ldpath
--
......... ........ ....... ...... ..... .... ... .. . . . . .
. Nikhil Trivedi
. Senior Systems Analyst
. Art Institute of Chicago
. http://www.artic.edu/
.
. P . 312.629.6541
.