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"); String content = request.getSPARQL(true);Will have the following result:
SELECT ?zone WHERE { ?zone rdf:type sitac:TaskZone . ?zone sitac:isTasked "true" . ?zone sitac:hasIndex ?index . # Comment on hasIndex }
Copyright 2025 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence
Project Web Hosted by
Copyright 1999-2010 -
Geeknet, Inc., All Rights Reserved
About
-
Legal
-
Help