Hi,
I'm trying to implement an Owlim plug-in, I followed the steps of the
documentation.
The plug-in seems work correctly, I've got a question about the management the
response of the query:
select * where {
?item fast:searchDAM "qs=italy"
}
the above query returns one element instead of a elements list because
result.addBinding(bindingName, value) overwrite data.
How Can I get all elements? Exactly How Can I bind my data, achieved by
createWrapperCall method, in the same bindingName "item"?
Below you can find a partial implementation of my preprocess method:
@Override
public RequestContext preprocess(Request request) {
...............
long literalId = createWrapperCall(pattern.getObjectVar().getValue());
Value literal = entities.get(literalId);
String[] idList = getData(literal);
for(String bindingName : projection.getBindingNames()) {
for(int i=0; i<idList.length; i++) {
Value value = new URIImpl(idList[i]);
result.addBinding(bindingName, value);
}
}
return new Context(result);
..................
}
Thanks
Giuseppe
________________________________
Le informazioni contenute nella presente e-mail potrebbero essere confidenziali
e sono dirette unicamente ai destinatari sopra indicati. In caso di ricezione
da parte di persona diversa ? vietato qualunque tipo di distribuzione o copia.
Chi riceva questo messaggio per errore ? pregato di inoltrarlo al mittente e di
distruggere questa e-mail.
This e-mail may contain confidential information and is intended only for the
use of the addressee(s) named above. If the reader of this message is not the
intended recipient of this message, please note that distribution or copying of
this communication is forbidden. Anyone who receives this communication in
error should return it immediately to the sender and destroy the message.
_______________________________________________
OWLIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/owlim-discussion