Improve JSON serialization of FieldQuery
----------------------------------------

                 Key: STANBOL-298
                 URL: https://issues.apache.org/jira/browse/STANBOL-298
             Project: Stanbol
          Issue Type: Improvement
          Components: Entity Hub
            Reporter: Rupert Westenthaler


1. convert keys that use plural

* dataTypes -> dataType
* languages -> language

the old keys are deprecated but still supported

2. add support for both single and multiple values for

* datatype
* language
* text (already implemented by STANBOL-297)

String values of such keys are supported for single values. JSON arrays are 
supported for single and multiple values.
For serialization String values has to be used in case of a single value

3. add support for "prefix:localName" style values for "datatype"

Currently for datatype users has to parse the full URI (e.g. 
"http://www.iks-project.eu/ontology/rick/model/text";).
In future there should be also support for using "entityhub:text" as well as 
"xsd:int" ...
Serialization has also to use the "prefix:localname" style.

4. attach the executed field query to result sets formatted in any available 
RDF serialization.

Currently the fieldQuery as executed is only returned for the JSON 
serialization. Here the goal is to return the JSON as String value for the 
Triple

    <http://www.iks-project.eu/ontology/rick/query/QueryResultSet> 
<http://www.iks-project.eu/ontology/rick/query/fieldQuery> 
"{field-query-as-JSON}"

5. adapt the online documentation to reflect this changes

All such MUST NOT break existing clients



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to