Hi,

First, big thanks Rupert for implementing this !

I have try it today I remark this :
When I use the find endpoint :

$ curl -X POST -d
"name=MOELLE&field=http://www.w3.org/2004/02/skos/core#prefLabel";
http://localh\
ost:8080/entityhub/sites/find
{
    "query": {
        "selected": ["http:\/\/www.w3.org\/2004\/02\/skos\/core#prefLabel"],
        "constraints": [{
            "type": "text",
            "patternType": "wildcard",
            "text": "MOELLE",
            "field": "http:\/\/www.w3.org\/2004\/02\/skos\/core#prefLabel"
        }],
        "limit": 5
    },
    "results": []

==> I have no answers

When I use the query endpoint :

$ curl -X POST -F "[email protected]"
http://localhost:8080/entityhub/sites/query
{
    "query": {
        "selected": [
            "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type",
            "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label",
            "http:\/\/www.w3.org\/2004\/02\/skos\/core#Concept"
        ],
        "constraints": [{
            "type": "value",
            "value": "MOELLE",
            "field": "http:\/\/www.w3.org\/2004\/02\/skos\/core#prefLabel"
        }],
        "limit": 30
    },
    "results": [{
        "id": "http:\/\/gasoil.edf.fr\/thesaurus\/0.1\/entree\/31367",
        "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type": [{
            "type": "reference",
            "value": "http:\/\/www.w3.org\/2004\/02\/skos\/core#Concept"
        }]
    }]

==> I have a good result.

I imagine that it's come from the "selected" field in /find that is on
skos:prefLabel and not on skos:concept.

I share with you this remark, without know if it's "normal comportment"
or not.
In any case, we can search on any ns with /query, and that's good ! :)

++

Reply via email to