VIE icon indicating copy to clipboard operation
VIE copied to clipboard

Add Queryable Deferred API and implement StanbolService.query method

Open szabyg opened this issue 14 years ago • 1 comments

http://dev.iks-project.eu:8081/entityhub/query describes the field query API of stanbol which would be useful for frontend developers and qould be implemented in a more or less backend-independent manner. One could write:

var v = new VIE();
v.use(
    new v.StanbolService({
        url: "http://dev.iks-project.eu/stanbolfull",
        proxyDisabled: true
    })
);
v.query({
    select: [
        "rdfs:label", 
        "population"
    ],
    fieldQuery: {
        "rdfs:label": "mongolia*",
        "@type": "schema:Country"
    }
}).using('stanbol').execute().done(function(entities) {
    ...
});

szabyg avatar Dec 01 '11 11:12 szabyg

The question here is whether we want this as a VIE core functionality. I would say: Definitely! Here is the link to the API documentation

neogermi avatar Jan 27 '12 11:01 neogermi