Hi Rupert, all

I just update stanbol to the last version and I figure out that entityhub/query don't answer to my previously running requests.
Do this endpoint don't still like me ? :)

So I run the full launcher, and restart from the online documentation (in entityhub enpoint / rest api ) and try examples.

so I, for example :
-------
$ curl -X POST -H "Content-Type:application/json" --data "@fieldQueryjson" http://localhost:8080/entityhub/query
-------

Where
--------
@fieldQueryjson
{
    "selected": [
        "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label",
        "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type"],
    "offset": "0",
    "limit": "3",
    "constraints": [
{
    "type": "value",
    "field": "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label",
    "value": "Paris",
}
        
        ]
}
---------

Answer :
---------
{
    "query": {
        "selected": [
            "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type",
            "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label"
        ],
        "constraints": [{
            "type": "value",
            "value": "Paris",
            "field": "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label"
        }],
        "limit": 3
    },
    "results": []
----------

Others examples do the same.

Do I miss something ?

Another point :

I see that for constraints type:text, the field patternType is now mandatory... even if documentation says that default value is to "none" and in previous version we can miss this property without problems.

When no pattern type is in the request, message is :
Constraint parsing Errors:

Illegal value for field 'patternType'.
Supported values are: [none, regex, wildcard]
Parsed Constraint:
{
    "type": "text",
    "languages": ["de"],
    "text": "Frankf*",
    "field": "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label"
}

Thanks
++

Reply via email to