Home
Categories
Dictionary
Download
Project Details
Changes Log
FAQ
License

OperationResult



The OperationResult class is the result of almost all the methods in the ISparqlRequestGroup interface (and its children classes) which create expressions in the SPARQL request.

This interface has two main methods:

Adding a comment on the associated element

The OperationResult.setCommentOnElement(String comment) method allows to add a comment on the associated element. It is a shortcut to:
   OperationResult result = ...
   SparqlElement element = result.getSparqlElement();
   element.setComment(<the comment>);

Example

   SparqlRequest request = new SparqlRequest("sitac");
   request.addSelect("zone");
   request.addAdditionalVariable("index");
   request.addType("zone", "TaskZone");
   request.addPropertyValue("zone", "isTasked", true);
   OperationResult<PropertyRef> propRef = request.addPropertyRef("zone", "hasIndex", "index");
   propRef.setCommentOnElement("Comment on hasIndex");

Notes

  1. ^ The method will return null if the operation is not valid

See also


Categories: Requestcreation

Copyright 2025 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help